Annotation of parser3/src/lib/ltdl/configure, revision 1.7
1.1 paf 1: #! /bin/sh
2: # Guess values for system-dependent variables and create Makefiles.
1.7 ! moko 3: # Generated by GNU Autoconf 2.69 for libltdl 2.4.2.
1.5 moko 4: #
5: # Report bugs to <bug-libtool@gnu.org>.
6: #
7: #
1.7 ! moko 8: # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
1.5 moko 9: #
1.1 paf 10: #
11: # This configure script is free software; the Free Software Foundation
12: # gives unlimited permission to copy, distribute and modify it.
1.5 moko 13: ## -------------------- ##
14: ## M4sh Initialization. ##
15: ## -------------------- ##
16:
17: # Be more Bourne compatible
18: DUALCASE=1; export DUALCASE # for MKS sh
19: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
1.2 paf 20: emulate sh
21: NULLCMD=:
1.5 moko 22: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
1.2 paf 23: # is contrary to our usage. Disable this feature.
24: alias -g '${1+"$@"}'='"$@"'
1.5 moko 25: setopt NO_GLOB_SUBST
26: else
27: case `(set -o) 2>/dev/null` in #(
28: *posix*) :
29: set -o posix ;; #(
30: *) :
31: ;;
32: esac
33: fi
34:
35:
36: as_nl='
37: '
38: export as_nl
39: # Printing a long string crashes Solaris 7 /usr/bin/printf.
40: as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43: # Prefer a ksh shell builtin over an external printf program on Solaris,
44: # but without wasting forks for bash or zsh.
45: if test -z "$BASH_VERSION$ZSH_VERSION" \
46: && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47: as_echo='print -r --'
48: as_echo_n='print -rn --'
49: elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50: as_echo='printf %s\n'
51: as_echo_n='printf %s'
52: else
53: if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54: as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55: as_echo_n='/usr/ucb/echo -n'
56: else
57: as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58: as_echo_n_body='eval
59: arg=$1;
60: case $arg in #(
61: *"$as_nl"*)
62: expr "X$arg" : "X\\(.*\\)$as_nl";
63: arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64: esac;
65: expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66: '
67: export as_echo_n_body
68: as_echo_n='sh -c $as_echo_n_body as_echo'
69: fi
70: export as_echo_body
71: as_echo='sh -c $as_echo_body as_echo'
1.2 paf 72: fi
73:
1.5 moko 74: # The user is always right.
75: if test "${PATH_SEPARATOR+set}" != set; then
76: PATH_SEPARATOR=:
77: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78: (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79: PATH_SEPARATOR=';'
80: }
1.2 paf 81: fi
82:
83:
1.5 moko 84: # IFS
85: # We need space, tab and new line, in precisely that order. Quoting is
86: # there to prevent editors from complaining about space-tab.
87: # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88: # splitting by setting IFS to empty value.)
89: IFS=" "" $as_nl"
90:
91: # Find who we are. Look in the path if we contain no directory separator.
92: as_myself=
93: case $0 in #((
94: *[\\/]* ) as_myself=$0 ;;
95: *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96: for as_dir in $PATH
97: do
98: IFS=$as_save_IFS
99: test -z "$as_dir" && as_dir=.
100: test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101: done
102: IFS=$as_save_IFS
103:
104: ;;
105: esac
106: # We did not find ourselves, most probably we were run as `sh COMMAND'
107: # in which case we are not to be found in the path.
108: if test "x$as_myself" = x; then
109: as_myself=$0
110: fi
111: if test ! -f "$as_myself"; then
112: $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113: exit 1
114: fi
115:
116: # Unset variables that we do not need and which cause bugs (e.g. in
117: # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118: # suppresses any "Segmentation fault" message there. '((' could
119: # trigger a bug in pdksh 5.2.14.
120: for as_var in BASH_ENV ENV MAIL MAILPATH
121: do eval test x\${$as_var+set} = xset \
122: && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123: done
1.2 paf 124: PS1='$ '
125: PS2='> '
126: PS4='+ '
127:
128: # NLS nuisances.
1.5 moko 129: LC_ALL=C
130: export LC_ALL
131: LANGUAGE=C
132: export LANGUAGE
133:
134: # CDPATH.
135: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136:
1.7 ! moko 137: # Use a proper internal environment variable to ensure we don't fall
! 138: # into an infinite loop, continuously re-executing ourselves.
! 139: if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
! 140: _as_can_reexec=no; export _as_can_reexec;
! 141: # We cannot yet assume a decent shell, so we have to provide a
! 142: # neutralization value for shells without unset; and this also
! 143: # works around shells that cannot unset nonexistent variables.
! 144: # Preserve -v and -x to the replacement shell.
! 145: BASH_ENV=/dev/null
! 146: ENV=/dev/null
! 147: (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
! 148: case $- in # ((((
! 149: *v*x* | *x*v* ) as_opts=-vx ;;
! 150: *v* ) as_opts=-v ;;
! 151: *x* ) as_opts=-x ;;
! 152: * ) as_opts= ;;
! 153: esac
! 154: exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
! 155: # Admittedly, this is quite paranoid, since all the known shells bail
! 156: # out after a failed `exec'.
! 157: $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
! 158: as_fn_exit 255
! 159: fi
! 160: # We don't want this to propagate to other subprocesses.
! 161: { _as_can_reexec=; unset _as_can_reexec;}
1.5 moko 162: if test "x$CONFIG_SHELL" = x; then
163: as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164: emulate sh
165: NULLCMD=:
166: # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167: # is contrary to our usage. Disable this feature.
168: alias -g '\${1+\"\$@\"}'='\"\$@\"'
169: setopt NO_GLOB_SUBST
170: else
171: case \`(set -o) 2>/dev/null\` in #(
172: *posix*) :
173: set -o posix ;; #(
174: *) :
175: ;;
176: esac
177: fi
178: "
179: as_required="as_fn_return () { (exit \$1); }
180: as_fn_success () { as_fn_return 0; }
181: as_fn_failure () { as_fn_return 1; }
182: as_fn_ret_success () { return 0; }
183: as_fn_ret_failure () { return 1; }
184:
185: exitcode=0
186: as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187: as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188: as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189: as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190: if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191:
192: else
193: exitcode=1; echo positional parameters were not saved.
194: fi
1.7 ! moko 195: test x\$exitcode = x0 || exit 1
! 196: test -x / || exit 1"
1.5 moko 197: as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198: as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199: eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200: test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201:
202: test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
203: ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
204: ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205: ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206: PATH=/empty FPATH=/empty; export PATH FPATH
207: test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
208: || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
209: test \$(( 1 + 1 )) = 2 || exit 1"
210: if (eval "$as_required") 2>/dev/null; then :
211: as_have_required=yes
212: else
213: as_have_required=no
214: fi
215: if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216:
217: else
218: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219: as_found=false
220: for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
1.2 paf 221: do
1.5 moko 222: IFS=$as_save_IFS
223: test -z "$as_dir" && as_dir=.
224: as_found=:
225: case $as_dir in #(
226: /*)
227: for as_base in sh bash ksh sh5; do
228: # Try only shells that exist, to save several forks.
229: as_shell=$as_dir/$as_base
230: if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231: { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232: CONFIG_SHELL=$as_shell as_have_required=yes
233: if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234: break 2
235: fi
236: fi
237: done;;
238: esac
239: as_found=false
240: done
241: $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242: { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243: CONFIG_SHELL=$SHELL as_have_required=yes
244: fi; }
245: IFS=$as_save_IFS
246:
247:
248: if test "x$CONFIG_SHELL" != x; then :
1.7 ! moko 249: export CONFIG_SHELL
! 250: # We cannot yet assume a decent shell, so we have to provide a
! 251: # neutralization value for shells without unset; and this also
! 252: # works around shells that cannot unset nonexistent variables.
! 253: # Preserve -v and -x to the replacement shell.
! 254: BASH_ENV=/dev/null
! 255: ENV=/dev/null
! 256: (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
! 257: case $- in # ((((
! 258: *v*x* | *x*v* ) as_opts=-vx ;;
! 259: *v* ) as_opts=-v ;;
! 260: *x* ) as_opts=-x ;;
! 261: * ) as_opts= ;;
! 262: esac
! 263: exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
! 264: # Admittedly, this is quite paranoid, since all the known shells bail
! 265: # out after a failed `exec'.
! 266: $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
! 267: exit 255
1.5 moko 268: fi
269:
270: if test x$as_have_required = xno; then :
271: $as_echo "$0: This script requires a shell more modern than all"
272: $as_echo "$0: the shells that I found on your system."
273: if test x${ZSH_VERSION+set} = xset ; then
274: $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275: $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276: else
277: $as_echo "$0: Please tell bug-autoconf@gnu.org and
278: $0: bug-libtool@gnu.org about your system, including any
279: $0: error possibly output before this message. Then install
280: $0: a modern shell, or manually run the script under such a
281: $0: shell if you do have one."
1.2 paf 282: fi
1.5 moko 283: exit 1
284: fi
285: fi
286: fi
287: SHELL=${CONFIG_SHELL-/bin/sh}
288: export SHELL
289: # Unset more variables known to interfere with behavior of common tools.
290: CLICOLOR_FORCE= GREP_OPTIONS=
291: unset CLICOLOR_FORCE GREP_OPTIONS
292:
293: ## --------------------- ##
294: ## M4sh Shell Functions. ##
295: ## --------------------- ##
296: # as_fn_unset VAR
297: # ---------------
298: # Portably unset VAR.
299: as_fn_unset ()
300: {
301: { eval $1=; unset $1;}
302: }
303: as_unset=as_fn_unset
304:
305: # as_fn_set_status STATUS
306: # -----------------------
307: # Set $? to STATUS, without forking.
308: as_fn_set_status ()
309: {
310: return $1
311: } # as_fn_set_status
312:
313: # as_fn_exit STATUS
314: # -----------------
315: # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316: as_fn_exit ()
317: {
318: set +e
319: as_fn_set_status $1
320: exit $1
321: } # as_fn_exit
322:
323: # as_fn_mkdir_p
324: # -------------
325: # Create "$as_dir" as a directory, including parents if necessary.
326: as_fn_mkdir_p ()
327: {
328:
329: case $as_dir in #(
330: -*) as_dir=./$as_dir;;
331: esac
332: test -d "$as_dir" || eval $as_mkdir_p || {
333: as_dirs=
334: while :; do
335: case $as_dir in #(
336: *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337: *) as_qdir=$as_dir;;
338: esac
339: as_dirs="'$as_qdir' $as_dirs"
340: as_dir=`$as_dirname -- "$as_dir" ||
341: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342: X"$as_dir" : 'X\(//\)[^/]' \| \
343: X"$as_dir" : 'X\(//\)$' \| \
344: X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345: $as_echo X"$as_dir" |
346: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347: s//\1/
348: q
349: }
350: /^X\(\/\/\)[^/].*/{
351: s//\1/
352: q
353: }
354: /^X\(\/\/\)$/{
355: s//\1/
356: q
357: }
358: /^X\(\/\).*/{
359: s//\1/
360: q
361: }
362: s/.*/./; q'`
363: test -d "$as_dir" && break
364: done
365: test -z "$as_dirs" || eval "mkdir $as_dirs"
366: } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
367:
368:
369: } # as_fn_mkdir_p
1.7 ! moko 370:
! 371: # as_fn_executable_p FILE
! 372: # -----------------------
! 373: # Test if FILE is an executable regular file.
! 374: as_fn_executable_p ()
! 375: {
! 376: test -f "$1" && test -x "$1"
! 377: } # as_fn_executable_p
1.5 moko 378: # as_fn_append VAR VALUE
379: # ----------------------
380: # Append the text in VALUE to the end of the definition contained in VAR. Take
381: # advantage of any shell optimizations that allow amortized linear growth over
382: # repeated appends, instead of the typical quadratic growth present in naive
383: # implementations.
384: if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385: eval 'as_fn_append ()
386: {
387: eval $1+=\$2
388: }'
389: else
390: as_fn_append ()
391: {
392: eval $1=\$$1\$2
393: }
394: fi # as_fn_append
395:
396: # as_fn_arith ARG...
397: # ------------------
398: # Perform arithmetic evaluation on the ARGs, and store the result in the
399: # global $as_val. Take advantage of shells that can avoid forks. The arguments
400: # must be portable across $(()) and expr.
401: if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402: eval 'as_fn_arith ()
403: {
404: as_val=$(( $* ))
405: }'
406: else
407: as_fn_arith ()
408: {
409: as_val=`expr "$@" || test $? -eq 1`
410: }
411: fi # as_fn_arith
412:
413:
414: # as_fn_error STATUS ERROR [LINENO LOG_FD]
415: # ----------------------------------------
416: # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417: # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418: # script with STATUS, using 1 if that was 0.
419: as_fn_error ()
420: {
421: as_status=$1; test $as_status -eq 0 && as_status=1
422: if test "$4"; then
423: as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424: $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
425: fi
426: $as_echo "$as_me: error: $2" >&2
427: as_fn_exit $as_status
428: } # as_fn_error
1.2 paf 429:
1.5 moko 430: if expr a : '\(a\)' >/dev/null 2>&1 &&
431: test "X`expr 00001 : '.*\(...\)'`" = X001; then
1.2 paf 432: as_expr=expr
433: else
434: as_expr=false
435: fi
436:
1.5 moko 437: if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
1.2 paf 438: as_basename=basename
439: else
440: as_basename=false
441: fi
442:
1.5 moko 443: if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444: as_dirname=dirname
445: else
446: as_dirname=false
447: fi
1.2 paf 448:
1.5 moko 449: as_me=`$as_basename -- "$0" ||
1.2 paf 450: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451: X"$0" : 'X\(//\)$' \| \
1.5 moko 452: X"$0" : 'X\(/\)' \| . 2>/dev/null ||
453: $as_echo X/"$0" |
454: sed '/^.*\/\([^/][^/]*\)\/*$/{
455: s//\1/
456: q
457: }
458: /^X\/\(\/\/\)$/{
459: s//\1/
460: q
461: }
462: /^X\/\(\/\).*/{
463: s//\1/
464: q
465: }
466: s/.*/./; q'`
1.2 paf 467:
468: # Avoid depending upon Character Ranges.
469: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472: as_cr_digits='0123456789'
473: as_cr_alnum=$as_cr_Letters$as_cr_digits
474:
475:
1.5 moko 476: as_lineno_1=$LINENO as_lineno_1a=$LINENO
477: as_lineno_2=$LINENO as_lineno_2a=$LINENO
478: eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479: test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480: # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
481: sed -n '
482: p
483: /[$]LINENO/=
484: ' <$as_myself |
1.2 paf 485: sed '
1.5 moko 486: s/[$]LINENO.*/&-/
487: t lineno
488: b
489: :lineno
1.2 paf 490: N
1.5 moko 491: :loop
492: s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
1.2 paf 493: t loop
1.5 moko 494: s/-\n.*//
1.2 paf 495: ' >$as_me.lineno &&
1.5 moko 496: chmod +x "$as_me.lineno" ||
497: { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
1.2 paf 498:
1.7 ! moko 499: # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
! 500: # already done that, so ensure we don't try to do so again and fall
! 501: # in an infinite loop. This has already happened in practice.
! 502: _as_can_reexec=no; export _as_can_reexec
1.2 paf 503: # Don't try to exec as it changes $[0], causing all sort of problems
504: # (the dirname of $[0] is not the place where we might find the
1.5 moko 505: # original and so on. Autoconf is especially sensitive to this).
506: . "./$as_me.lineno"
1.2 paf 507: # Exit status is that of the last command.
508: exit
509: }
510:
1.5 moko 511: ECHO_C= ECHO_N= ECHO_T=
512: case `echo -n x` in #(((((
513: -n*)
514: case `echo 'xy\c'` in
515: *c*) ECHO_T=' ';; # ECHO_T is single tab character.
516: xy) ECHO_C='\c';;
517: *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
518: ECHO_T=' ';;
519: esac;;
520: *)
521: ECHO_N='-n';;
1.2 paf 522: esac
523:
1.5 moko 524: rm -f conf$$ conf$$.exe conf$$.file
525: if test -d conf$$.dir; then
526: rm -f conf$$.dir/conf$$.file
1.2 paf 527: else
1.5 moko 528: rm -f conf$$.dir
529: mkdir conf$$.dir 2>/dev/null
1.2 paf 530: fi
1.5 moko 531: if (echo >conf$$.file) 2>/dev/null; then
532: if ln -s conf$$.file conf$$ 2>/dev/null; then
533: as_ln_s='ln -s'
534: # ... but there are two gotchas:
535: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536: # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
1.7 ! moko 537: # In both cases, we have to default to `cp -pR'.
1.5 moko 538: ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
1.7 ! moko 539: as_ln_s='cp -pR'
1.5 moko 540: elif ln conf$$.file conf$$ 2>/dev/null; then
541: as_ln_s=ln
542: else
1.7 ! moko 543: as_ln_s='cp -pR'
1.2 paf 544: fi
545: else
1.7 ! moko 546: as_ln_s='cp -pR'
1.2 paf 547: fi
1.5 moko 548: rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549: rmdir conf$$.dir 2>/dev/null
1.2 paf 550:
551: if mkdir -p . 2>/dev/null; then
1.5 moko 552: as_mkdir_p='mkdir -p "$as_dir"'
1.2 paf 553: else
1.5 moko 554: test -d ./-p && rmdir ./-p
1.2 paf 555: as_mkdir_p=false
556: fi
557:
1.7 ! moko 558: as_test_x='test -x'
! 559: as_executable_p=as_fn_executable_p
1.2 paf 560:
561: # Sed expression to map a string onto a valid CPP name.
1.5 moko 562: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
1.2 paf 563:
564: # Sed expression to map a string onto a valid variable name.
1.5 moko 565: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
1.4 paf 566:
567: SHELL=${CONFIG_SHELL-/bin/sh}
568:
569:
1.5 moko 570: test -n "$DJDIR" || exec 7<&0 </dev/null
571: exec 6>&1
1.4 paf 572:
1.2 paf 573: # Name of the host.
1.5 moko 574: # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
1.2 paf 575: # so uname gets run too.
576: ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
577:
578: #
579: # Initializations.
580: #
1.1 paf 581: ac_default_prefix=/usr/local
1.5 moko 582: ac_clean_files=
1.2 paf 583: ac_config_libobj_dir=.
1.5 moko 584: LIBOBJS=
1.2 paf 585: cross_compiling=no
586: subdirs=
587: MFLAGS=
588: MAKEFLAGS=
589:
590: # Identity of this package.
1.5 moko 591: PACKAGE_NAME='libltdl'
592: PACKAGE_TARNAME='libltdl'
593: PACKAGE_VERSION='2.4.2'
594: PACKAGE_STRING='libltdl 2.4.2'
595: PACKAGE_BUGREPORT='bug-libtool@gnu.org'
596: PACKAGE_URL=''
1.2 paf 597:
598: ac_unique_file="ltdl.c"
599: # Factoring default headers for most tests.
600: ac_includes_default="\
601: #include <stdio.h>
1.5 moko 602: #ifdef HAVE_SYS_TYPES_H
1.2 paf 603: # include <sys/types.h>
604: #endif
1.5 moko 605: #ifdef HAVE_SYS_STAT_H
1.2 paf 606: # include <sys/stat.h>
607: #endif
1.5 moko 608: #ifdef STDC_HEADERS
1.2 paf 609: # include <stdlib.h>
610: # include <stddef.h>
611: #else
1.5 moko 612: # ifdef HAVE_STDLIB_H
1.2 paf 613: # include <stdlib.h>
614: # endif
615: #endif
1.5 moko 616: #ifdef HAVE_STRING_H
617: # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
1.2 paf 618: # include <memory.h>
619: # endif
620: # include <string.h>
621: #endif
1.5 moko 622: #ifdef HAVE_STRINGS_H
1.2 paf 623: # include <strings.h>
624: #endif
1.5 moko 625: #ifdef HAVE_INTTYPES_H
1.2 paf 626: # include <inttypes.h>
627: #endif
1.5 moko 628: #ifdef HAVE_STDINT_H
629: # include <stdint.h>
630: #endif
631: #ifdef HAVE_UNISTD_H
1.2 paf 632: # include <unistd.h>
633: #endif"
634:
1.5 moko 635: ac_subst_vars='am__EXEEXT_FALSE
636: am__EXEEXT_TRUE
637: LTLIBOBJS
638: LTDLOPEN
639: LT_CONFIG_H
640: CONVENIENCE_LTDL_FALSE
641: CONVENIENCE_LTDL_TRUE
642: INSTALL_LTDL_FALSE
643: INSTALL_LTDL_TRUE
644: ARGZ_H
645: LIBOBJS
646: sys_symbol_underscore
647: LIBADD_DL
648: LT_DLPREOPEN
649: LIBADD_DLD_LINK
650: LIBADD_SHL_LOAD
651: LIBADD_DLOPEN
652: LT_DLLOADERS
653: CPP
654: OTOOL64
655: OTOOL
656: LIPO
657: NMEDIT
658: DSYMUTIL
659: MANIFEST_TOOL
660: RANLIB
661: ac_ct_AR
662: AR
663: LN_S
664: NM
665: ac_ct_DUMPBIN
666: DUMPBIN
667: LD
668: FGREP
669: EGREP
670: GREP
671: SED
672: am__fastdepCC_FALSE
673: am__fastdepCC_TRUE
674: CCDEPMODE
675: AMDEPBACKSLASH
676: AMDEP_FALSE
677: AMDEP_TRUE
678: am__quote
679: am__include
680: DEPDIR
681: OBJEXT
682: EXEEXT
683: ac_ct_CC
684: CPPFLAGS
685: LDFLAGS
686: CFLAGS
687: CC
688: host_os
689: host_vendor
690: host_cpu
691: host
692: build_os
693: build_vendor
694: build_cpu
695: build
696: LIBTOOL
697: OBJDUMP
698: DLLTOOL
699: AS
700: am__untar
701: am__tar
702: AMTAR
703: am__leading_dot
704: SET_MAKE
705: AWK
706: mkdir_p
707: MKDIR_P
708: INSTALL_STRIP_PROGRAM
709: STRIP
710: install_sh
711: MAKEINFO
712: AUTOHEADER
713: AUTOMAKE
714: AUTOCONF
715: ACLOCAL
716: VERSION
717: PACKAGE
718: CYGPATH_W
719: am__isrc
720: INSTALL_DATA
721: INSTALL_SCRIPT
722: INSTALL_PROGRAM
723: target_alias
724: host_alias
725: build_alias
726: LIBS
727: ECHO_T
728: ECHO_N
729: ECHO_C
730: DEFS
731: mandir
732: localedir
733: libdir
734: psdir
735: pdfdir
736: dvidir
737: htmldir
738: infodir
739: docdir
740: oldincludedir
741: includedir
1.7 ! moko 742: runstatedir
1.5 moko 743: localstatedir
744: sharedstatedir
745: sysconfdir
746: datadir
747: datarootdir
748: libexecdir
749: sbindir
750: bindir
751: program_transform_name
752: prefix
753: exec_prefix
754: PACKAGE_URL
755: PACKAGE_BUGREPORT
756: PACKAGE_STRING
757: PACKAGE_VERSION
758: PACKAGE_TARNAME
759: PACKAGE_NAME
760: PATH_SEPARATOR
761: SHELL'
1.2 paf 762: ac_subst_files=''
1.5 moko 763: ac_user_opts='
764: enable_option_checking
765: enable_shared
766: enable_static
767: with_pic
768: enable_fast_install
769: enable_dependency_tracking
770: with_gnu_ld
771: with_sysroot
772: enable_libtool_lock
773: enable_ltdl_install
774: '
775: ac_precious_vars='build_alias
776: host_alias
777: target_alias
778: CC
779: CFLAGS
780: LDFLAGS
781: LIBS
782: CPPFLAGS
783: CPP'
784:
1.1 paf 785:
786: # Initialize some variables set by options.
1.2 paf 787: ac_init_help=
788: ac_init_version=false
1.5 moko 789: ac_unrecognized_opts=
790: ac_unrecognized_sep=
1.1 paf 791: # The variables have the same names as the options, with
792: # dashes changed to underlines.
1.2 paf 793: cache_file=/dev/null
1.1 paf 794: exec_prefix=NONE
795: no_create=
796: no_recursion=
797: prefix=NONE
798: program_prefix=NONE
799: program_suffix=NONE
800: program_transform_name=s,x,x,
801: silent=
802: site=
803: srcdir=
804: verbose=
805: x_includes=NONE
806: x_libraries=NONE
1.2 paf 807:
808: # Installation directory options.
809: # These are left unexpanded so users can "make install exec_prefix=/foo"
810: # and all the variables that are supposed to be based on exec_prefix
811: # by default will actually change.
812: # Use braces instead of parens because sh, perl, etc. also accept them.
1.5 moko 813: # (The list follows the same order as the GNU Coding Standards.)
1.1 paf 814: bindir='${exec_prefix}/bin'
815: sbindir='${exec_prefix}/sbin'
816: libexecdir='${exec_prefix}/libexec'
1.5 moko 817: datarootdir='${prefix}/share'
818: datadir='${datarootdir}'
1.1 paf 819: sysconfdir='${prefix}/etc'
820: sharedstatedir='${prefix}/com'
821: localstatedir='${prefix}/var'
1.7 ! moko 822: runstatedir='${localstatedir}/run'
1.1 paf 823: includedir='${prefix}/include'
824: oldincludedir='/usr/include'
1.5 moko 825: docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
826: infodir='${datarootdir}/info'
827: htmldir='${docdir}'
828: dvidir='${docdir}'
829: pdfdir='${docdir}'
830: psdir='${docdir}'
831: libdir='${exec_prefix}/lib'
832: localedir='${datarootdir}/locale'
833: mandir='${datarootdir}/man'
1.1 paf 834:
835: ac_prev=
1.5 moko 836: ac_dashdash=
1.1 paf 837: for ac_option
838: do
839: # If the previous option needs an argument, assign it.
840: if test -n "$ac_prev"; then
1.5 moko 841: eval $ac_prev=\$ac_option
1.1 paf 842: ac_prev=
843: continue
844: fi
845:
1.5 moko 846: case $ac_option in
847: *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
848: *=) ac_optarg= ;;
849: *) ac_optarg=yes ;;
850: esac
1.1 paf 851:
852: # Accept the important Cygnus configure options, so we can diagnose typos.
853:
1.5 moko 854: case $ac_dashdash$ac_option in
855: --)
856: ac_dashdash=yes ;;
1.1 paf 857:
858: -bindir | --bindir | --bindi | --bind | --bin | --bi)
859: ac_prev=bindir ;;
860: -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1.2 paf 861: bindir=$ac_optarg ;;
1.1 paf 862:
863: -build | --build | --buil | --bui | --bu)
1.2 paf 864: ac_prev=build_alias ;;
1.1 paf 865: -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1.2 paf 866: build_alias=$ac_optarg ;;
1.1 paf 867:
868: -cache-file | --cache-file | --cache-fil | --cache-fi \
869: | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
870: ac_prev=cache_file ;;
871: -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
872: | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1.2 paf 873: cache_file=$ac_optarg ;;
874:
875: --config-cache | -C)
876: cache_file=config.cache ;;
1.1 paf 877:
1.5 moko 878: -datadir | --datadir | --datadi | --datad)
1.1 paf 879: ac_prev=datadir ;;
1.5 moko 880: -datadir=* | --datadir=* | --datadi=* | --datad=*)
1.2 paf 881: datadir=$ac_optarg ;;
1.1 paf 882:
1.5 moko 883: -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
884: | --dataroo | --dataro | --datar)
885: ac_prev=datarootdir ;;
886: -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
887: | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
888: datarootdir=$ac_optarg ;;
889:
1.1 paf 890: -disable-* | --disable-*)
1.5 moko 891: ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1.1 paf 892: # Reject names that are not valid shell variable names.
1.5 moko 893: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
894: as_fn_error $? "invalid feature name: $ac_useropt"
895: ac_useropt_orig=$ac_useropt
896: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
897: case $ac_user_opts in
898: *"
899: "enable_$ac_useropt"
900: "*) ;;
901: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
902: ac_unrecognized_sep=', ';;
903: esac
904: eval enable_$ac_useropt=no ;;
905:
906: -docdir | --docdir | --docdi | --doc | --do)
907: ac_prev=docdir ;;
908: -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
909: docdir=$ac_optarg ;;
910:
911: -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
912: ac_prev=dvidir ;;
913: -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
914: dvidir=$ac_optarg ;;
1.1 paf 915:
916: -enable-* | --enable-*)
1.5 moko 917: ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1.1 paf 918: # Reject names that are not valid shell variable names.
1.5 moko 919: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
920: as_fn_error $? "invalid feature name: $ac_useropt"
921: ac_useropt_orig=$ac_useropt
922: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
923: case $ac_user_opts in
924: *"
925: "enable_$ac_useropt"
926: "*) ;;
927: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
928: ac_unrecognized_sep=', ';;
1.1 paf 929: esac
1.5 moko 930: eval enable_$ac_useropt=\$ac_optarg ;;
1.1 paf 931:
932: -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
933: | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
934: | --exec | --exe | --ex)
935: ac_prev=exec_prefix ;;
936: -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
937: | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
938: | --exec=* | --exe=* | --ex=*)
1.2 paf 939: exec_prefix=$ac_optarg ;;
1.1 paf 940:
941: -gas | --gas | --ga | --g)
942: # Obsolete; use --with-gas.
943: with_gas=yes ;;
944:
1.2 paf 945: -help | --help | --hel | --he | -h)
946: ac_init_help=long ;;
947: -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
948: ac_init_help=recursive ;;
949: -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
950: ac_init_help=short ;;
1.1 paf 951:
952: -host | --host | --hos | --ho)
1.2 paf 953: ac_prev=host_alias ;;
1.1 paf 954: -host=* | --host=* | --hos=* | --ho=*)
1.2 paf 955: host_alias=$ac_optarg ;;
1.1 paf 956:
1.5 moko 957: -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
958: ac_prev=htmldir ;;
959: -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
960: | --ht=*)
961: htmldir=$ac_optarg ;;
962:
1.1 paf 963: -includedir | --includedir | --includedi | --included | --include \
964: | --includ | --inclu | --incl | --inc)
965: ac_prev=includedir ;;
966: -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
967: | --includ=* | --inclu=* | --incl=* | --inc=*)
1.2 paf 968: includedir=$ac_optarg ;;
1.1 paf 969:
970: -infodir | --infodir | --infodi | --infod | --info | --inf)
971: ac_prev=infodir ;;
972: -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1.2 paf 973: infodir=$ac_optarg ;;
1.1 paf 974:
975: -libdir | --libdir | --libdi | --libd)
976: ac_prev=libdir ;;
977: -libdir=* | --libdir=* | --libdi=* | --libd=*)
1.2 paf 978: libdir=$ac_optarg ;;
1.1 paf 979:
980: -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
981: | --libexe | --libex | --libe)
982: ac_prev=libexecdir ;;
983: -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
984: | --libexe=* | --libex=* | --libe=*)
1.2 paf 985: libexecdir=$ac_optarg ;;
1.1 paf 986:
1.5 moko 987: -localedir | --localedir | --localedi | --localed | --locale)
988: ac_prev=localedir ;;
989: -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
990: localedir=$ac_optarg ;;
991:
1.1 paf 992: -localstatedir | --localstatedir | --localstatedi | --localstated \
1.5 moko 993: | --localstate | --localstat | --localsta | --localst | --locals)
1.1 paf 994: ac_prev=localstatedir ;;
995: -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1.5 moko 996: | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1.2 paf 997: localstatedir=$ac_optarg ;;
1.1 paf 998:
999: -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1000: ac_prev=mandir ;;
1001: -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1.2 paf 1002: mandir=$ac_optarg ;;
1.1 paf 1003:
1004: -nfp | --nfp | --nf)
1005: # Obsolete; use --without-fp.
1006: with_fp=no ;;
1007:
1008: -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1.2 paf 1009: | --no-cr | --no-c | -n)
1.1 paf 1010: no_create=yes ;;
1011:
1012: -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1013: | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1014: no_recursion=yes ;;
1015:
1016: -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1017: | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1018: | --oldin | --oldi | --old | --ol | --o)
1019: ac_prev=oldincludedir ;;
1020: -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1021: | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1022: | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1.2 paf 1023: oldincludedir=$ac_optarg ;;
1.1 paf 1024:
1025: -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1026: ac_prev=prefix ;;
1027: -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1.2 paf 1028: prefix=$ac_optarg ;;
1.1 paf 1029:
1030: -program-prefix | --program-prefix | --program-prefi | --program-pref \
1031: | --program-pre | --program-pr | --program-p)
1032: ac_prev=program_prefix ;;
1033: -program-prefix=* | --program-prefix=* | --program-prefi=* \
1034: | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1.2 paf 1035: program_prefix=$ac_optarg ;;
1.1 paf 1036:
1037: -program-suffix | --program-suffix | --program-suffi | --program-suff \
1038: | --program-suf | --program-su | --program-s)
1039: ac_prev=program_suffix ;;
1040: -program-suffix=* | --program-suffix=* | --program-suffi=* \
1041: | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1.2 paf 1042: program_suffix=$ac_optarg ;;
1.1 paf 1043:
1044: -program-transform-name | --program-transform-name \
1045: | --program-transform-nam | --program-transform-na \
1046: | --program-transform-n | --program-transform- \
1047: | --program-transform | --program-transfor \
1048: | --program-transfo | --program-transf \
1049: | --program-trans | --program-tran \
1050: | --progr-tra | --program-tr | --program-t)
1051: ac_prev=program_transform_name ;;
1052: -program-transform-name=* | --program-transform-name=* \
1053: | --program-transform-nam=* | --program-transform-na=* \
1054: | --program-transform-n=* | --program-transform-=* \
1055: | --program-transform=* | --program-transfor=* \
1056: | --program-transfo=* | --program-transf=* \
1057: | --program-trans=* | --program-tran=* \
1058: | --progr-tra=* | --program-tr=* | --program-t=*)
1.2 paf 1059: program_transform_name=$ac_optarg ;;
1.1 paf 1060:
1.5 moko 1061: -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1062: ac_prev=pdfdir ;;
1063: -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1064: pdfdir=$ac_optarg ;;
1065:
1066: -psdir | --psdir | --psdi | --psd | --ps)
1067: ac_prev=psdir ;;
1068: -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1069: psdir=$ac_optarg ;;
1070:
1.1 paf 1071: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1072: | -silent | --silent | --silen | --sile | --sil)
1073: silent=yes ;;
1074:
1.7 ! moko 1075: -runstatedir | --runstatedir | --runstatedi | --runstated \
! 1076: | --runstate | --runstat | --runsta | --runst | --runs \
! 1077: | --run | --ru | --r)
! 1078: ac_prev=runstatedir ;;
! 1079: -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
! 1080: | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
! 1081: | --run=* | --ru=* | --r=*)
! 1082: runstatedir=$ac_optarg ;;
! 1083:
1.1 paf 1084: -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1085: ac_prev=sbindir ;;
1086: -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1087: | --sbi=* | --sb=*)
1.2 paf 1088: sbindir=$ac_optarg ;;
1.1 paf 1089:
1090: -sharedstatedir | --sharedstatedir | --sharedstatedi \
1091: | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1092: | --sharedst | --shareds | --shared | --share | --shar \
1093: | --sha | --sh)
1094: ac_prev=sharedstatedir ;;
1095: -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1096: | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1097: | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1098: | --sha=* | --sh=*)
1.2 paf 1099: sharedstatedir=$ac_optarg ;;
1.1 paf 1100:
1101: -site | --site | --sit)
1102: ac_prev=site ;;
1103: -site=* | --site=* | --sit=*)
1.2 paf 1104: site=$ac_optarg ;;
1.1 paf 1105:
1106: -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1107: ac_prev=srcdir ;;
1108: -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1.2 paf 1109: srcdir=$ac_optarg ;;
1.1 paf 1110:
1111: -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1112: | --syscon | --sysco | --sysc | --sys | --sy)
1113: ac_prev=sysconfdir ;;
1114: -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1115: | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1.2 paf 1116: sysconfdir=$ac_optarg ;;
1.1 paf 1117:
1118: -target | --target | --targe | --targ | --tar | --ta | --t)
1.2 paf 1119: ac_prev=target_alias ;;
1.1 paf 1120: -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1.2 paf 1121: target_alias=$ac_optarg ;;
1.1 paf 1122:
1123: -v | -verbose | --verbose | --verbos | --verbo | --verb)
1124: verbose=yes ;;
1125:
1.2 paf 1126: -version | --version | --versio | --versi | --vers | -V)
1127: ac_init_version=: ;;
1.1 paf 1128:
1129: -with-* | --with-*)
1.5 moko 1130: ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1.1 paf 1131: # Reject names that are not valid shell variable names.
1.5 moko 1132: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1133: as_fn_error $? "invalid package name: $ac_useropt"
1134: ac_useropt_orig=$ac_useropt
1135: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1136: case $ac_user_opts in
1137: *"
1138: "with_$ac_useropt"
1139: "*) ;;
1140: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1141: ac_unrecognized_sep=', ';;
1.1 paf 1142: esac
1.5 moko 1143: eval with_$ac_useropt=\$ac_optarg ;;
1.1 paf 1144:
1145: -without-* | --without-*)
1.5 moko 1146: ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1.1 paf 1147: # Reject names that are not valid shell variable names.
1.5 moko 1148: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1149: as_fn_error $? "invalid package name: $ac_useropt"
1150: ac_useropt_orig=$ac_useropt
1151: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1152: case $ac_user_opts in
1153: *"
1154: "with_$ac_useropt"
1155: "*) ;;
1156: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1157: ac_unrecognized_sep=', ';;
1158: esac
1159: eval with_$ac_useropt=no ;;
1.1 paf 1160:
1161: --x)
1162: # Obsolete; use --with-x.
1163: with_x=yes ;;
1164:
1165: -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1166: | --x-incl | --x-inc | --x-in | --x-i)
1167: ac_prev=x_includes ;;
1168: -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1169: | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1.2 paf 1170: x_includes=$ac_optarg ;;
1.1 paf 1171:
1172: -x-libraries | --x-libraries | --x-librarie | --x-librari \
1173: | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1174: ac_prev=x_libraries ;;
1175: -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1176: | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1.2 paf 1177: x_libraries=$ac_optarg ;;
1.1 paf 1178:
1.5 moko 1179: -*) as_fn_error $? "unrecognized option: \`$ac_option'
1180: Try \`$0 --help' for more information"
1.1 paf 1181: ;;
1182:
1.2 paf 1183: *=*)
1184: ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1185: # Reject names that are not valid shell variable names.
1.5 moko 1186: case $ac_envvar in #(
1187: '' | [0-9]* | *[!_$as_cr_alnum]* )
1188: as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1189: esac
1190: eval $ac_envvar=\$ac_optarg
1.2 paf 1191: export $ac_envvar ;;
1192:
1.1 paf 1193: *)
1.2 paf 1194: # FIXME: should be removed in autoconf 3.0.
1.5 moko 1195: $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1.2 paf 1196: expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1.5 moko 1197: $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1198: : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1.1 paf 1199: ;;
1200:
1201: esac
1202: done
1203:
1204: if test -n "$ac_prev"; then
1.2 paf 1205: ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1.5 moko 1206: as_fn_error $? "missing argument to $ac_option"
1207: fi
1208:
1209: if test -n "$ac_unrecognized_opts"; then
1210: case $enable_option_checking in
1211: no) ;;
1212: fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1213: *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1214: esac
1.1 paf 1215: fi
1216:
1.5 moko 1217: # Check all directory arguments for consistency.
1218: for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1219: datadir sysconfdir sharedstatedir localstatedir includedir \
1220: oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1.7 ! moko 1221: libdir localedir mandir runstatedir
1.2 paf 1222: do
1.5 moko 1223: eval ac_val=\$$ac_var
1224: # Remove trailing slashes.
1.2 paf 1225: case $ac_val in
1.5 moko 1226: */ )
1227: ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1228: eval $ac_var=\$ac_val;;
1.2 paf 1229: esac
1.5 moko 1230: # Be sure to have absolute directory names.
1.2 paf 1231: case $ac_val in
1.5 moko 1232: [\\/$]* | ?:[\\/]* ) continue;;
1233: NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1.1 paf 1234: esac
1.5 moko 1235: as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1.1 paf 1236: done
1237:
1.2 paf 1238: # There might be people who depend on the old broken behavior: `$host'
1239: # used to hold the argument of --host etc.
1240: # FIXME: To remove some day.
1241: build=$build_alias
1242: host=$host_alias
1243: target=$target_alias
1244:
1245: # FIXME: To remove some day.
1246: if test "x$host_alias" != x; then
1247: if test "x$build_alias" = x; then
1248: cross_compiling=maybe
1249: elif test "x$build_alias" != "x$host_alias"; then
1250: cross_compiling=yes
1251: fi
1252: fi
1253:
1254: ac_tool_prefix=
1255: test -n "$host_alias" && ac_tool_prefix=$host_alias-
1.1 paf 1256:
1.2 paf 1257: test "$silent" = yes && exec 6>/dev/null
1.1 paf 1258:
1259:
1.5 moko 1260: ac_pwd=`pwd` && test -n "$ac_pwd" &&
1261: ac_ls_di=`ls -di .` &&
1262: ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1263: as_fn_error $? "working directory cannot be determined"
1264: test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1265: as_fn_error $? "pwd does not report name of working directory"
1266:
1267:
1.1 paf 1268: # Find the source files, if location was not specified.
1269: if test -z "$srcdir"; then
1270: ac_srcdir_defaulted=yes
1.5 moko 1271: # Try the directory containing this script, then the parent directory.
1272: ac_confdir=`$as_dirname -- "$as_myself" ||
1273: $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1274: X"$as_myself" : 'X\(//\)[^/]' \| \
1275: X"$as_myself" : 'X\(//\)$' \| \
1276: X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1277: $as_echo X"$as_myself" |
1278: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1279: s//\1/
1280: q
1281: }
1282: /^X\(\/\/\)[^/].*/{
1283: s//\1/
1284: q
1285: }
1286: /^X\(\/\/\)$/{
1287: s//\1/
1288: q
1289: }
1290: /^X\(\/\).*/{
1291: s//\1/
1292: q
1293: }
1294: s/.*/./; q'`
1.1 paf 1295: srcdir=$ac_confdir
1.5 moko 1296: if test ! -r "$srcdir/$ac_unique_file"; then
1.1 paf 1297: srcdir=..
1298: fi
1299: else
1300: ac_srcdir_defaulted=no
1301: fi
1.5 moko 1302: if test ! -r "$srcdir/$ac_unique_file"; then
1303: test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1304: as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1305: fi
1306: ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1307: ac_abs_confdir=`(
1308: cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1309: pwd)`
1310: # When building in place, set srcdir=.
1311: if test "$ac_abs_confdir" = "$ac_pwd"; then
1312: srcdir=.
1313: fi
1314: # Remove unnecessary trailing slashes from srcdir.
1315: # Double slashes in file names in object file debugging info
1316: # mess up M-x gdb in Emacs.
1317: case $srcdir in
1318: */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1319: esac
1320: for ac_var in $ac_precious_vars; do
1321: eval ac_env_${ac_var}_set=\${${ac_var}+set}
1322: eval ac_env_${ac_var}_value=\$${ac_var}
1323: eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1324: eval ac_cv_env_${ac_var}_value=\$${ac_var}
1325: done
1.2 paf 1326:
1327: #
1328: # Report the --help message.
1329: #
1330: if test "$ac_init_help" = "long"; then
1331: # Omit some internal or obsolete options to make the list less imposing.
1332: # This message is too long to be a string in the A/UX 3.1 sh.
1333: cat <<_ACEOF
1.5 moko 1334: \`configure' configures libltdl 2.4.2 to adapt to many kinds of systems.
1.2 paf 1335:
1336: Usage: $0 [OPTION]... [VAR=VALUE]...
1337:
1338: To assign environment variables (e.g., CC, CFLAGS...), specify them as
1339: VAR=VALUE. See below for descriptions of some of the useful variables.
1340:
1341: Defaults for the options are specified in brackets.
1342:
1343: Configuration:
1344: -h, --help display this help and exit
1345: --help=short display options specific to this package
1346: --help=recursive display the short help of all the included packages
1347: -V, --version display version information and exit
1.5 moko 1348: -q, --quiet, --silent do not print \`checking ...' messages
1.2 paf 1349: --cache-file=FILE cache test results in FILE [disabled]
1350: -C, --config-cache alias for \`--cache-file=config.cache'
1351: -n, --no-create do not create output files
1352: --srcdir=DIR find the sources in DIR [configure dir or \`..']
1353:
1354: Installation directories:
1355: --prefix=PREFIX install architecture-independent files in PREFIX
1356: [$ac_default_prefix]
1357: --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1358: [PREFIX]
1359:
1360: By default, \`make install' will install all the files in
1361: \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1362: an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1363: for instance \`--prefix=\$HOME'.
1364:
1365: For better control, use the options below.
1366:
1367: Fine tuning of the installation directories:
1.5 moko 1368: --bindir=DIR user executables [EPREFIX/bin]
1369: --sbindir=DIR system admin executables [EPREFIX/sbin]
1370: --libexecdir=DIR program executables [EPREFIX/libexec]
1371: --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1372: --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1373: --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1.7 ! moko 1374: --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1.5 moko 1375: --libdir=DIR object code libraries [EPREFIX/lib]
1376: --includedir=DIR C header files [PREFIX/include]
1377: --oldincludedir=DIR C header files for non-gcc [/usr/include]
1378: --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1379: --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1380: --infodir=DIR info documentation [DATAROOTDIR/info]
1381: --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1382: --mandir=DIR man documentation [DATAROOTDIR/man]
1383: --docdir=DIR documentation root [DATAROOTDIR/doc/libltdl]
1384: --htmldir=DIR html documentation [DOCDIR]
1385: --dvidir=DIR dvi documentation [DOCDIR]
1386: --pdfdir=DIR pdf documentation [DOCDIR]
1387: --psdir=DIR ps documentation [DOCDIR]
1.2 paf 1388: _ACEOF
1389:
1390: cat <<\_ACEOF
1391:
1392: Program names:
1393: --program-prefix=PREFIX prepend PREFIX to installed program names
1394: --program-suffix=SUFFIX append SUFFIX to installed program names
1395: --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1.3 paf 1396:
1397: System types:
1398: --build=BUILD configure for building on BUILD [guessed]
1399: --host=HOST cross-compile to build programs to run on HOST [BUILD]
1.2 paf 1400: _ACEOF
1401: fi
1402:
1403: if test -n "$ac_init_help"; then
1.5 moko 1404: case $ac_init_help in
1405: short | recursive ) echo "Configuration of libltdl 2.4.2:";;
1406: esac
1.2 paf 1407: cat <<\_ACEOF
1408:
1409: Optional Features:
1.5 moko 1410: --disable-option-checking ignore unrecognized --enable/--with options
1.2 paf 1411: --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1412: --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1.5 moko 1413: --enable-shared[=PKGS] build shared libraries [default=yes]
1414: --enable-static[=PKGS] build static libraries [default=yes]
1415: --enable-fast-install[=PKGS]
1416: optimize for fast installation [default=yes]
1417: --disable-dependency-tracking speeds up one-time build
1418: --enable-dependency-tracking do not reject slow dependency extractors
1.4 paf 1419: --disable-libtool-lock avoid locking (might break parallel builds)
1420: --enable-ltdl-install install libltdl
1421:
1422: Optional Packages:
1423: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1424: --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1.5 moko 1425: --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1426: both]
1427: --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1428: --with-sysroot=DIR Search for dependent libraries within DIR
1429: (or the compiler's sysroot if not specified).
1.2 paf 1430:
1431: Some influential environment variables:
1432: CC C compiler command
1433: CFLAGS C compiler flags
1434: LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1435: nonstandard directory <lib dir>
1.5 moko 1436: LIBS libraries to pass to the linker, e.g. -l<library>
1437: CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1438: you have headers in a nonstandard directory <include dir>
1.2 paf 1439: CPP C preprocessor
1440:
1441: Use these variables to override the choices made by `configure' or to help
1442: it to find libraries and programs with nonstandard names/locations.
1443:
1.5 moko 1444: Report bugs to <bug-libtool@gnu.org>.
1.2 paf 1445: _ACEOF
1.5 moko 1446: ac_status=$?
1.2 paf 1447: fi
1448:
1449: if test "$ac_init_help" = "recursive"; then
1450: # If there are subdirs, report their specific --help.
1451: for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1.5 moko 1452: test -d "$ac_dir" ||
1453: { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1454: continue
1.2 paf 1455: ac_builddir=.
1456:
1.5 moko 1457: case "$ac_dir" in
1458: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1459: *)
1460: ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1461: # A ".." for each directory in $ac_dir_suffix.
1462: ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1463: case $ac_top_builddir_sub in
1464: "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1465: *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1466: esac ;;
1467: esac
1468: ac_abs_top_builddir=$ac_pwd
1469: ac_abs_builddir=$ac_pwd$ac_dir_suffix
1470: # for backward compatibility:
1471: ac_top_builddir=$ac_top_build_prefix
1.2 paf 1472:
1473: case $srcdir in
1.5 moko 1474: .) # We are building in place.
1.2 paf 1475: ac_srcdir=.
1.5 moko 1476: ac_top_srcdir=$ac_top_builddir_sub
1477: ac_abs_top_srcdir=$ac_pwd ;;
1478: [\\/]* | ?:[\\/]* ) # Absolute name.
1.2 paf 1479: ac_srcdir=$srcdir$ac_dir_suffix;
1.5 moko 1480: ac_top_srcdir=$srcdir
1481: ac_abs_top_srcdir=$srcdir ;;
1482: *) # Relative name.
1483: ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1484: ac_top_srcdir=$ac_top_build_prefix$srcdir
1485: ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1486: esac
1487: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1488:
1489: cd "$ac_dir" || { ac_status=$?; continue; }
1490: # Check for guested configure.
1491: if test -f "$ac_srcdir/configure.gnu"; then
1492: echo &&
1493: $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1494: elif test -f "$ac_srcdir/configure"; then
1495: echo &&
1496: $SHELL "$ac_srcdir/configure" --help=recursive
1.2 paf 1497: else
1.5 moko 1498: $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1499: fi || ac_status=$?
1500: cd "$ac_pwd" || { ac_status=$?; break; }
1.2 paf 1501: done
1502: fi
1503:
1.5 moko 1504: test -n "$ac_init_help" && exit $ac_status
1.2 paf 1505: if $ac_init_version; then
1506: cat <<\_ACEOF
1.5 moko 1507: libltdl configure 2.4.2
1.7 ! moko 1508: generated by GNU Autoconf 2.69
1.2 paf 1509:
1.7 ! moko 1510: Copyright (C) 2012 Free Software Foundation, Inc.
1.2 paf 1511: This configure script is free software; the Free Software Foundation
1512: gives unlimited permission to copy, distribute and modify it.
1513: _ACEOF
1.5 moko 1514: exit
1.2 paf 1515: fi
1516:
1.5 moko 1517: ## ------------------------ ##
1518: ## Autoconf initialization. ##
1519: ## ------------------------ ##
1520:
1521: # ac_fn_c_try_compile LINENO
1522: # --------------------------
1523: # Try to compile conftest.$ac_ext, and return whether this succeeded.
1524: ac_fn_c_try_compile ()
1525: {
1526: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1527: rm -f conftest.$ac_objext
1528: if { { ac_try="$ac_compile"
1529: case "(($ac_try" in
1530: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1531: *) ac_try_echo=$ac_try;;
1532: esac
1533: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1534: $as_echo "$ac_try_echo"; } >&5
1535: (eval "$ac_compile") 2>conftest.err
1536: ac_status=$?
1537: if test -s conftest.err; then
1538: grep -v '^ *+' conftest.err >conftest.er1
1539: cat conftest.er1 >&5
1540: mv -f conftest.er1 conftest.err
1541: fi
1542: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1543: test $ac_status = 0; } && {
1544: test -z "$ac_c_werror_flag" ||
1545: test ! -s conftest.err
1546: } && test -s conftest.$ac_objext; then :
1547: ac_retval=0
1548: else
1549: $as_echo "$as_me: failed program was:" >&5
1550: sed 's/^/| /' conftest.$ac_ext >&5
1551:
1552: ac_retval=1
1553: fi
1554: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1555: as_fn_set_status $ac_retval
1556:
1557: } # ac_fn_c_try_compile
1558:
1559: # ac_fn_c_try_link LINENO
1560: # -----------------------
1561: # Try to link conftest.$ac_ext, and return whether this succeeded.
1562: ac_fn_c_try_link ()
1563: {
1564: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1565: rm -f conftest.$ac_objext conftest$ac_exeext
1566: if { { ac_try="$ac_link"
1567: case "(($ac_try" in
1568: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1569: *) ac_try_echo=$ac_try;;
1570: esac
1571: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1572: $as_echo "$ac_try_echo"; } >&5
1573: (eval "$ac_link") 2>conftest.err
1574: ac_status=$?
1575: if test -s conftest.err; then
1576: grep -v '^ *+' conftest.err >conftest.er1
1577: cat conftest.er1 >&5
1578: mv -f conftest.er1 conftest.err
1579: fi
1580: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1581: test $ac_status = 0; } && {
1582: test -z "$ac_c_werror_flag" ||
1583: test ! -s conftest.err
1584: } && test -s conftest$ac_exeext && {
1585: test "$cross_compiling" = yes ||
1.7 ! moko 1586: test -x conftest$ac_exeext
1.5 moko 1587: }; then :
1588: ac_retval=0
1589: else
1590: $as_echo "$as_me: failed program was:" >&5
1591: sed 's/^/| /' conftest.$ac_ext >&5
1592:
1593: ac_retval=1
1594: fi
1595: # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1596: # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1597: # interfere with the next link command; also delete a directory that is
1598: # left behind by Apple's compiler. We do this before executing the actions.
1599: rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1600: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1601: as_fn_set_status $ac_retval
1602:
1603: } # ac_fn_c_try_link
1604:
1605: # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1606: # -------------------------------------------------------
1607: # Tests whether HEADER exists and can be compiled using the include files in
1608: # INCLUDES, setting the cache variable VAR accordingly.
1609: ac_fn_c_check_header_compile ()
1610: {
1611: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1612: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1613: $as_echo_n "checking for $2... " >&6; }
1614: if eval \${$3+:} false; then :
1615: $as_echo_n "(cached) " >&6
1616: else
1617: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1618: /* end confdefs.h. */
1619: $4
1620: #include <$2>
1621: _ACEOF
1622: if ac_fn_c_try_compile "$LINENO"; then :
1623: eval "$3=yes"
1624: else
1625: eval "$3=no"
1626: fi
1627: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1628: fi
1629: eval ac_res=\$$3
1630: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1631: $as_echo "$ac_res" >&6; }
1632: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1633:
1634: } # ac_fn_c_check_header_compile
1635:
1636: # ac_fn_c_try_cpp LINENO
1637: # ----------------------
1638: # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1639: ac_fn_c_try_cpp ()
1640: {
1641: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1642: if { { ac_try="$ac_cpp conftest.$ac_ext"
1643: case "(($ac_try" in
1644: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1645: *) ac_try_echo=$ac_try;;
1646: esac
1647: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1648: $as_echo "$ac_try_echo"; } >&5
1649: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1650: ac_status=$?
1651: if test -s conftest.err; then
1652: grep -v '^ *+' conftest.err >conftest.er1
1653: cat conftest.er1 >&5
1654: mv -f conftest.er1 conftest.err
1655: fi
1656: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1657: test $ac_status = 0; } > conftest.i && {
1658: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1659: test ! -s conftest.err
1660: }; then :
1661: ac_retval=0
1662: else
1663: $as_echo "$as_me: failed program was:" >&5
1664: sed 's/^/| /' conftest.$ac_ext >&5
1665:
1666: ac_retval=1
1667: fi
1668: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1669: as_fn_set_status $ac_retval
1670:
1671: } # ac_fn_c_try_cpp
1672:
1673: # ac_fn_c_try_run LINENO
1674: # ----------------------
1675: # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1676: # that executables *can* be run.
1677: ac_fn_c_try_run ()
1678: {
1679: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1680: if { { ac_try="$ac_link"
1681: case "(($ac_try" in
1682: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1683: *) ac_try_echo=$ac_try;;
1684: esac
1685: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1686: $as_echo "$ac_try_echo"; } >&5
1687: (eval "$ac_link") 2>&5
1688: ac_status=$?
1689: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1690: test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1691: { { case "(($ac_try" in
1692: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1693: *) ac_try_echo=$ac_try;;
1694: esac
1695: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1696: $as_echo "$ac_try_echo"; } >&5
1697: (eval "$ac_try") 2>&5
1698: ac_status=$?
1699: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1700: test $ac_status = 0; }; }; then :
1701: ac_retval=0
1702: else
1703: $as_echo "$as_me: program exited with status $ac_status" >&5
1704: $as_echo "$as_me: failed program was:" >&5
1705: sed 's/^/| /' conftest.$ac_ext >&5
1706:
1707: ac_retval=$ac_status
1708: fi
1709: rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1710: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1711: as_fn_set_status $ac_retval
1712:
1713: } # ac_fn_c_try_run
1714:
1715: # ac_fn_c_check_func LINENO FUNC VAR
1716: # ----------------------------------
1717: # Tests whether FUNC exists, setting the cache variable VAR accordingly
1718: ac_fn_c_check_func ()
1719: {
1720: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1721: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1722: $as_echo_n "checking for $2... " >&6; }
1723: if eval \${$3+:} false; then :
1724: $as_echo_n "(cached) " >&6
1725: else
1726: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1727: /* end confdefs.h. */
1728: /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1729: For example, HP-UX 11i <limits.h> declares gettimeofday. */
1730: #define $2 innocuous_$2
1731:
1732: /* System header to define __stub macros and hopefully few prototypes,
1733: which can conflict with char $2 (); below.
1734: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1735: <limits.h> exists even on freestanding compilers. */
1736:
1737: #ifdef __STDC__
1738: # include <limits.h>
1739: #else
1740: # include <assert.h>
1741: #endif
1742:
1743: #undef $2
1744:
1745: /* Override any GCC internal prototype to avoid an error.
1746: Use char because int might match the return type of a GCC
1747: builtin and then its argument prototype would still apply. */
1748: #ifdef __cplusplus
1749: extern "C"
1750: #endif
1751: char $2 ();
1752: /* The GNU C library defines this for functions which it implements
1753: to always fail with ENOSYS. Some functions are actually named
1754: something starting with __ and the normal name is an alias. */
1755: #if defined __stub_$2 || defined __stub___$2
1756: choke me
1757: #endif
1758:
1759: int
1760: main ()
1761: {
1762: return $2 ();
1763: ;
1764: return 0;
1765: }
1766: _ACEOF
1767: if ac_fn_c_try_link "$LINENO"; then :
1768: eval "$3=yes"
1769: else
1770: eval "$3=no"
1771: fi
1772: rm -f core conftest.err conftest.$ac_objext \
1773: conftest$ac_exeext conftest.$ac_ext
1774: fi
1775: eval ac_res=\$$3
1776: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1777: $as_echo "$ac_res" >&6; }
1778: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1779:
1780: } # ac_fn_c_check_func
1781:
1782: # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1783: # ---------------------------------------------
1784: # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1785: # accordingly.
1786: ac_fn_c_check_decl ()
1787: {
1788: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1789: as_decl_name=`echo $2|sed 's/ *(.*//'`
1790: as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1791: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1792: $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1793: if eval \${$3+:} false; then :
1794: $as_echo_n "(cached) " >&6
1795: else
1796: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1797: /* end confdefs.h. */
1798: $4
1799: int
1800: main ()
1801: {
1802: #ifndef $as_decl_name
1803: #ifdef __cplusplus
1804: (void) $as_decl_use;
1805: #else
1806: (void) $as_decl_name;
1807: #endif
1808: #endif
1809:
1810: ;
1811: return 0;
1812: }
1813: _ACEOF
1814: if ac_fn_c_try_compile "$LINENO"; then :
1815: eval "$3=yes"
1816: else
1817: eval "$3=no"
1818: fi
1819: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1820: fi
1821: eval ac_res=\$$3
1822: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1823: $as_echo "$ac_res" >&6; }
1824: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1825:
1826: } # ac_fn_c_check_decl
1827:
1828: # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1829: # -------------------------------------------
1830: # Tests whether TYPE exists after having included INCLUDES, setting cache
1831: # variable VAR accordingly.
1832: ac_fn_c_check_type ()
1833: {
1834: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1835: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1836: $as_echo_n "checking for $2... " >&6; }
1837: if eval \${$3+:} false; then :
1838: $as_echo_n "(cached) " >&6
1839: else
1840: eval "$3=no"
1841: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1842: /* end confdefs.h. */
1843: $4
1844: int
1845: main ()
1846: {
1847: if (sizeof ($2))
1848: return 0;
1849: ;
1850: return 0;
1851: }
1852: _ACEOF
1853: if ac_fn_c_try_compile "$LINENO"; then :
1854: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1855: /* end confdefs.h. */
1856: $4
1857: int
1858: main ()
1859: {
1860: if (sizeof (($2)))
1861: return 0;
1862: ;
1863: return 0;
1864: }
1865: _ACEOF
1866: if ac_fn_c_try_compile "$LINENO"; then :
1867:
1868: else
1869: eval "$3=yes"
1870: fi
1871: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1872: fi
1873: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1874: fi
1875: eval ac_res=\$$3
1876: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1877: $as_echo "$ac_res" >&6; }
1878: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1879:
1880: } # ac_fn_c_check_type
1881: cat >config.log <<_ACEOF
1882: This file contains any messages produced by compilers while
1883: running configure, to aid debugging if configure makes a mistake.
1884:
1885: It was created by libltdl $as_me 2.4.2, which was
1.7 ! moko 1886: generated by GNU Autoconf 2.69. Invocation command line was
1.5 moko 1887:
1888: $ $0 $@
1889:
1890: _ACEOF
1891: exec 5>>config.log
1.2 paf 1892: {
1893: cat <<_ASUNAME
1894: ## --------- ##
1895: ## Platform. ##
1896: ## --------- ##
1897:
1898: hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1899: uname -m = `(uname -m) 2>/dev/null || echo unknown`
1900: uname -r = `(uname -r) 2>/dev/null || echo unknown`
1901: uname -s = `(uname -s) 2>/dev/null || echo unknown`
1902: uname -v = `(uname -v) 2>/dev/null || echo unknown`
1903:
1904: /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1905: /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1906:
1907: /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1908: /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1909: /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1.5 moko 1910: /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1.2 paf 1911: /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1912: /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1913: /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1914:
1915: _ASUNAME
1916:
1917: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1918: for as_dir in $PATH
1919: do
1920: IFS=$as_save_IFS
1921: test -z "$as_dir" && as_dir=.
1.5 moko 1922: $as_echo "PATH: $as_dir"
1923: done
1924: IFS=$as_save_IFS
1.2 paf 1925:
1926: } >&5
1927:
1928: cat >&5 <<_ACEOF
1929:
1930:
1931: ## ----------- ##
1932: ## Core tests. ##
1933: ## ----------- ##
1934:
1935: _ACEOF
1936:
1937:
1938: # Keep a trace of the command line.
1939: # Strip out --no-create and --no-recursion so they do not pile up.
1940: # Strip out --silent because we don't want to record it for future runs.
1941: # Also quote any args containing shell meta-characters.
1942: # Make two passes to allow for proper duplicate-argument suppression.
1943: ac_configure_args=
1944: ac_configure_args0=
1945: ac_configure_args1=
1946: ac_must_keep_next=false
1947: for ac_pass in 1 2
1948: do
1949: for ac_arg
1950: do
1951: case $ac_arg in
1952: -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1953: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1954: | -silent | --silent | --silen | --sile | --sil)
1955: continue ;;
1.5 moko 1956: *\'*)
1957: ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1.2 paf 1958: esac
1959: case $ac_pass in
1.5 moko 1960: 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1.2 paf 1961: 2)
1.5 moko 1962: as_fn_append ac_configure_args1 " '$ac_arg'"
1.2 paf 1963: if test $ac_must_keep_next = true; then
1.5 moko 1964: ac_must_keep_next=false # Got value, back to normal.
1.2 paf 1965: else
1.5 moko 1966: case $ac_arg in
1967: *=* | --config-cache | -C | -disable-* | --disable-* \
1968: | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1969: | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1970: | -with-* | --with-* | -without-* | --without-* | --x)
1971: case "$ac_configure_args0 " in
1972: "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1973: esac
1974: ;;
1975: -* ) ac_must_keep_next=true ;;
1976: esac
1.2 paf 1977: fi
1.5 moko 1978: as_fn_append ac_configure_args " '$ac_arg'"
1.2 paf 1979: ;;
1980: esac
1981: done
1982: done
1.5 moko 1983: { ac_configure_args0=; unset ac_configure_args0;}
1984: { ac_configure_args1=; unset ac_configure_args1;}
1.2 paf 1985:
1986: # When interrupted or exit'd, cleanup temporary files, and complete
1987: # config.log. We remove comments because anyway the quotes in there
1988: # would cause problems or look ugly.
1.5 moko 1989: # WARNING: Use '\'' to represent an apostrophe within the trap.
1990: # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1.2 paf 1991: trap 'exit_status=$?
1992: # Save into config.log some information that might help in debugging.
1993: {
1994: echo
1995:
1.5 moko 1996: $as_echo "## ---------------- ##
1.2 paf 1997: ## Cache variables. ##
1.5 moko 1998: ## ---------------- ##"
1.2 paf 1999: echo
2000: # The following way of writing the cache mishandles newlines in values,
1.5 moko 2001: (
2002: for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2003: eval ac_val=\$$ac_var
2004: case $ac_val in #(
2005: *${as_nl}*)
2006: case $ac_var in #(
2007: *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2008: $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2009: esac
2010: case $ac_var in #(
2011: _ | IFS | as_nl) ;; #(
2012: BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2013: *) { eval $ac_var=; unset $ac_var;} ;;
2014: esac ;;
2015: esac
2016: done
1.2 paf 2017: (set) 2>&1 |
1.5 moko 2018: case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2019: *${as_nl}ac_space=\ *)
1.2 paf 2020: sed -n \
1.5 moko 2021: "s/'\''/'\''\\\\'\'''\''/g;
2022: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2023: ;; #(
1.2 paf 2024: *)
1.5 moko 2025: sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1.2 paf 2026: ;;
1.5 moko 2027: esac |
2028: sort
2029: )
1.2 paf 2030: echo
2031:
1.5 moko 2032: $as_echo "## ----------------- ##
1.2 paf 2033: ## Output variables. ##
1.5 moko 2034: ## ----------------- ##"
1.2 paf 2035: echo
2036: for ac_var in $ac_subst_vars
2037: do
1.5 moko 2038: eval ac_val=\$$ac_var
2039: case $ac_val in
2040: *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2041: esac
2042: $as_echo "$ac_var='\''$ac_val'\''"
1.2 paf 2043: done | sort
2044: echo
2045:
2046: if test -n "$ac_subst_files"; then
1.5 moko 2047: $as_echo "## ------------------- ##
2048: ## File substitutions. ##
2049: ## ------------------- ##"
1.2 paf 2050: echo
2051: for ac_var in $ac_subst_files
2052: do
1.5 moko 2053: eval ac_val=\$$ac_var
2054: case $ac_val in
2055: *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2056: esac
2057: $as_echo "$ac_var='\''$ac_val'\''"
1.2 paf 2058: done | sort
2059: echo
2060: fi
2061:
2062: if test -s confdefs.h; then
1.5 moko 2063: $as_echo "## ----------- ##
1.2 paf 2064: ## confdefs.h. ##
1.5 moko 2065: ## ----------- ##"
1.2 paf 2066: echo
1.5 moko 2067: cat confdefs.h
1.2 paf 2068: echo
2069: fi
2070: test "$ac_signal" != 0 &&
1.5 moko 2071: $as_echo "$as_me: caught signal $ac_signal"
2072: $as_echo "$as_me: exit $exit_status"
1.2 paf 2073: } >&5
1.5 moko 2074: rm -f core *.core core.conftest.* &&
2075: rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1.2 paf 2076: exit $exit_status
1.5 moko 2077: ' 0
1.2 paf 2078: for ac_signal in 1 2 13 15; do
1.5 moko 2079: trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1.2 paf 2080: done
2081: ac_signal=0
2082:
2083: # confdefs.h avoids OS command line length limits that DEFS can exceed.
1.5 moko 2084: rm -f -r conftest* confdefs.h
2085:
2086: $as_echo "/* confdefs.h */" > confdefs.h
1.2 paf 2087:
2088: # Predefined preprocessor variables.
2089:
2090: cat >>confdefs.h <<_ACEOF
2091: #define PACKAGE_NAME "$PACKAGE_NAME"
2092: _ACEOF
2093:
2094: cat >>confdefs.h <<_ACEOF
2095: #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2096: _ACEOF
2097:
2098: cat >>confdefs.h <<_ACEOF
2099: #define PACKAGE_VERSION "$PACKAGE_VERSION"
2100: _ACEOF
2101:
2102: cat >>confdefs.h <<_ACEOF
2103: #define PACKAGE_STRING "$PACKAGE_STRING"
2104: _ACEOF
2105:
1.5 moko 2106: cat >>confdefs.h <<_ACEOF
2107: #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2108: _ACEOF
1.2 paf 2109:
2110: cat >>confdefs.h <<_ACEOF
1.5 moko 2111: #define PACKAGE_URL "$PACKAGE_URL"
1.2 paf 2112: _ACEOF
2113:
2114:
2115: # Let the site file select an alternate cache file if it wants to.
1.5 moko 2116: # Prefer an explicitly selected file to automatically selected ones.
2117: ac_site_file1=NONE
2118: ac_site_file2=NONE
2119: if test -n "$CONFIG_SITE"; then
2120: # We do not want a PATH search for config.site.
2121: case $CONFIG_SITE in #((
2122: -*) ac_site_file1=./$CONFIG_SITE;;
2123: */*) ac_site_file1=$CONFIG_SITE;;
2124: *) ac_site_file1=./$CONFIG_SITE;;
2125: esac
2126: elif test "x$prefix" != xNONE; then
2127: ac_site_file1=$prefix/share/config.site
2128: ac_site_file2=$prefix/etc/config.site
2129: else
2130: ac_site_file1=$ac_default_prefix/share/config.site
2131: ac_site_file2=$ac_default_prefix/etc/config.site
2132: fi
2133: for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2134: do
2135: test "x$ac_site_file" = xNONE && continue
2136: if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2137: { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2138: $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1.2 paf 2139: sed 's/^/| /' "$ac_site_file" >&5
1.5 moko 2140: . "$ac_site_file" \
2141: || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2142: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2143: as_fn_error $? "failed to load site script $ac_site_file
2144: See \`config.log' for more details" "$LINENO" 5; }
1.1 paf 2145: fi
2146: done
2147:
2148: if test -r "$cache_file"; then
1.5 moko 2149: # Some versions of bash will fail to source /dev/null (special files
2150: # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2151: if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2152: { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2153: $as_echo "$as_me: loading cache $cache_file" >&6;}
1.2 paf 2154: case $cache_file in
1.5 moko 2155: [\\/]* | ?:[\\/]* ) . "$cache_file";;
2156: *) . "./$cache_file";;
1.2 paf 2157: esac
2158: fi
1.1 paf 2159: else
1.5 moko 2160: { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2161: $as_echo "$as_me: creating cache $cache_file" >&6;}
1.2 paf 2162: >$cache_file
2163: fi
2164:
2165: # Check that the precious variables saved in the cache have kept the same
2166: # value.
2167: ac_cache_corrupted=false
1.5 moko 2168: for ac_var in $ac_precious_vars; do
1.2 paf 2169: eval ac_old_set=\$ac_cv_env_${ac_var}_set
2170: eval ac_new_set=\$ac_env_${ac_var}_set
1.5 moko 2171: eval ac_old_val=\$ac_cv_env_${ac_var}_value
2172: eval ac_new_val=\$ac_env_${ac_var}_value
1.2 paf 2173: case $ac_old_set,$ac_new_set in
2174: set,)
1.5 moko 2175: { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2176: $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1.2 paf 2177: ac_cache_corrupted=: ;;
2178: ,set)
1.5 moko 2179: { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2180: $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1.2 paf 2181: ac_cache_corrupted=: ;;
2182: ,);;
2183: *)
2184: if test "x$ac_old_val" != "x$ac_new_val"; then
1.5 moko 2185: # differences in whitespace do not lead to failure.
2186: ac_old_val_w=`echo x $ac_old_val`
2187: ac_new_val_w=`echo x $ac_new_val`
2188: if test "$ac_old_val_w" != "$ac_new_val_w"; then
2189: { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2190: $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2191: ac_cache_corrupted=:
2192: else
2193: { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2194: $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2195: eval $ac_var=\$ac_old_val
2196: fi
2197: { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2198: $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2199: { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2200: $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1.2 paf 2201: fi;;
2202: esac
2203: # Pass precious variables to config.status.
2204: if test "$ac_new_set" = set; then
2205: case $ac_new_val in
1.5 moko 2206: *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1.2 paf 2207: *) ac_arg=$ac_var=$ac_new_val ;;
2208: esac
2209: case " $ac_configure_args " in
2210: *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1.5 moko 2211: *) as_fn_append ac_configure_args " '$ac_arg'" ;;
1.2 paf 2212: esac
2213: fi
2214: done
2215: if $ac_cache_corrupted; then
1.5 moko 2216: { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2217: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2218: { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2219: $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2220: as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2221: fi
2222: ## -------------------- ##
2223: ## Main body of script. ##
2224: ## -------------------- ##
1.1 paf 2225:
2226: ac_ext=c
2227: ac_cpp='$CPP $CPPFLAGS'
1.2 paf 2228: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2229: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2230: ac_compiler_gnu=$ac_cv_c_compiler_gnu
2231:
2232:
1.5 moko 2233: ac_config_headers="$ac_config_headers config.h:config-h.in"
1.1 paf 2234:
2235:
2236: ac_aux_dir=
1.5 moko 2237: for ac_dir in config "$srcdir"/config; do
2238: if test -f "$ac_dir/install-sh"; then
1.1 paf 2239: ac_aux_dir=$ac_dir
2240: ac_install_sh="$ac_aux_dir/install-sh -c"
2241: break
1.5 moko 2242: elif test -f "$ac_dir/install.sh"; then
1.1 paf 2243: ac_aux_dir=$ac_dir
2244: ac_install_sh="$ac_aux_dir/install.sh -c"
2245: break
1.5 moko 2246: elif test -f "$ac_dir/shtool"; then
1.2 paf 2247: ac_aux_dir=$ac_dir
2248: ac_install_sh="$ac_aux_dir/shtool install -c"
2249: break
1.1 paf 2250: fi
2251: done
2252: if test -z "$ac_aux_dir"; then
1.5 moko 2253: as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
1.2 paf 2254: fi
1.5 moko 2255:
2256: # These three variables are undocumented and unsupported,
2257: # and are intended to be withdrawn in a future Autoconf release.
2258: # They can cause serious problems if a builder's source tree is in a directory
2259: # whose full name contains unusual characters.
2260: ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2261: ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2262: ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2263:
2264:
2265:
2266:
1.1 paf 2267:
1.4 paf 2268:
1.5 moko 2269:
2270:
2271: # I am me!
2272:
2273:
2274: ## ------------------------ ##
2275: ## Automake Initialisation. ##
2276: ## ------------------------ ##
2277:
2278: am__api_version='1.11'
2279:
1.1 paf 2280: # Find a good install program. We prefer a C program (faster),
2281: # so one script is as good as another. But avoid the broken or
2282: # incompatible versions:
2283: # SysV /etc/install, /usr/sbin/install
2284: # SunOS /usr/etc/install
2285: # IRIX /sbin/install
2286: # AIX /bin/install
1.2 paf 2287: # AmigaOS /C/install, which installs bootblocks on floppy discs
1.1 paf 2288: # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2289: # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2290: # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1.5 moko 2291: # OS/2's system install, which has a completely different semantic
1.1 paf 2292: # ./install, which can be erroneously created by make from ./install.sh.
1.5 moko 2293: # Reject install programs that cannot install multiple files.
2294: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2295: $as_echo_n "checking for a BSD-compatible install... " >&6; }
1.1 paf 2296: if test -z "$INSTALL"; then
1.5 moko 2297: if ${ac_cv_path_install+:} false; then :
2298: $as_echo_n "(cached) " >&6
1.1 paf 2299: else
1.2 paf 2300: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2301: for as_dir in $PATH
2302: do
2303: IFS=$as_save_IFS
2304: test -z "$as_dir" && as_dir=.
1.5 moko 2305: # Account for people who put trailing slashes in PATH elements.
2306: case $as_dir/ in #((
2307: ./ | .// | /[cC]/* | \
1.2 paf 2308: /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1.5 moko 2309: ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
1.2 paf 2310: /usr/ucb/* ) ;;
2311: *)
2312: # OSF1 and SCO ODT 3.0 have their own names for install.
2313: # Don't use installbsd from OSF since it installs stuff as root
2314: # by default.
2315: for ac_prog in ginstall scoinst install; do
2316: for ac_exec_ext in '' $ac_executable_extensions; do
1.7 ! moko 2317: if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1.5 moko 2318: if test $ac_prog = install &&
2319: grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2320: # AIX install. It has an incompatible calling convention.
2321: :
2322: elif test $ac_prog = install &&
2323: grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2324: # program-specific install script used by HP pwplus--don't use.
2325: :
2326: else
2327: rm -rf conftest.one conftest.two conftest.dir
2328: echo one > conftest.one
2329: echo two > conftest.two
2330: mkdir conftest.dir
2331: if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2332: test -s conftest.one && test -s conftest.two &&
2333: test -s conftest.dir/conftest.one &&
2334: test -s conftest.dir/conftest.two
2335: then
2336: ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2337: break 3
2338: fi
2339: fi
2340: fi
1.1 paf 2341: done
1.2 paf 2342: done
2343: ;;
2344: esac
2345:
1.5 moko 2346: done
2347: IFS=$as_save_IFS
2348:
2349: rm -rf conftest.one conftest.two conftest.dir
1.1 paf 2350:
2351: fi
2352: if test "${ac_cv_path_install+set}" = set; then
1.2 paf 2353: INSTALL=$ac_cv_path_install
1.1 paf 2354: else
1.5 moko 2355: # As a last resort, use the slow shell script. Don't cache a
2356: # value for INSTALL within a source directory, because that will
1.1 paf 2357: # break other packages using the cache if that directory is
1.5 moko 2358: # removed, or if the value is a relative name.
1.2 paf 2359: INSTALL=$ac_install_sh
1.1 paf 2360: fi
2361: fi
1.5 moko 2362: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2363: $as_echo "$INSTALL" >&6; }
1.1 paf 2364:
2365: # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2366: # It thinks the first close brace ends the variable substitution.
2367: test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2368:
1.2 paf 2369: test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1.1 paf 2370:
2371: test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2372:
1.5 moko 2373: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2374: $as_echo_n "checking whether build environment is sane... " >&6; }
1.1 paf 2375: # Just in case
2376: sleep 1
1.2 paf 2377: echo timestamp > conftest.file
1.5 moko 2378: # Reject unsafe characters in $srcdir or the absolute working directory
2379: # name. Accept space and tab only in the latter.
2380: am_lf='
2381: '
2382: case `pwd` in
2383: *[\\\"\#\$\&\'\`$am_lf]*)
2384: as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2385: esac
2386: case $srcdir in
2387: *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2388: as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2389: esac
2390:
1.1 paf 2391: # Do `set' in a subshell so we don't clobber the current shell's
2392: # arguments. Must try -L first in case configure is actually a
2393: # symlink; some systems play weird games with the mod time of symlinks
2394: # (eg FreeBSD returns the mod time of the symlink's containing
2395: # directory).
2396: if (
1.5 moko 2397: set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
1.1 paf 2398: if test "$*" = "X"; then
2399: # -L didn't work.
1.5 moko 2400: set X `ls -t "$srcdir/configure" conftest.file`
1.1 paf 2401: fi
1.2 paf 2402: rm -f conftest.file
2403: if test "$*" != "X $srcdir/configure conftest.file" \
2404: && test "$*" != "X conftest.file $srcdir/configure"; then
1.1 paf 2405:
2406: # If neither matched, then we have a broken ls. This can happen
2407: # if, for instance, CONFIG_SHELL is bash and it inherits a
2408: # broken ls alias from the environment. This has actually
2409: # happened. Such a system could not be considered "sane".
1.5 moko 2410: as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2411: alias in your environment" "$LINENO" 5
1.1 paf 2412: fi
2413:
1.2 paf 2414: test "$2" = conftest.file
1.1 paf 2415: )
2416: then
2417: # Ok.
2418: :
2419: else
1.5 moko 2420: as_fn_error $? "newly created file is older than distributed files!
2421: Check your system clock" "$LINENO" 5
1.1 paf 2422: fi
1.5 moko 2423: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2424: $as_echo "yes" >&6; }
1.1 paf 2425: test "$program_prefix" != NONE &&
1.5 moko 2426: program_transform_name="s&^&$program_prefix&;$program_transform_name"
1.1 paf 2427: # Use a double $ so make ignores it.
2428: test "$program_suffix" != NONE &&
1.5 moko 2429: program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2430: # Double any \ or $.
1.2 paf 2431: # By default was `s,x,x', remove it if useless.
1.5 moko 2432: ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2433: program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
1.2 paf 2434:
2435: # expand $ac_aux_dir to an absolute path
2436: am_aux_dir=`cd $ac_aux_dir && pwd`
2437:
1.5 moko 2438: if test x"${MISSING+set}" != xset; then
2439: case $am_aux_dir in
2440: *\ * | *\ *)
2441: MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2442: *)
2443: MISSING="\${SHELL} $am_aux_dir/missing" ;;
2444: esac
2445: fi
1.2 paf 2446: # Use eval to expand $SHELL
2447: if eval "$MISSING --run true"; then
2448: am_missing_run="$MISSING --run "
2449: else
2450: am_missing_run=
1.5 moko 2451: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2452: $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2453: fi
2454:
2455: if test x"${install_sh}" != xset; then
2456: case $am_aux_dir in
2457: *\ * | *\ *)
2458: install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2459: *)
2460: install_sh="\${SHELL} $am_aux_dir/install-sh"
2461: esac
1.2 paf 2462: fi
1.1 paf 2463:
1.5 moko 2464: # Installed binaries are usually stripped using `strip' when the user
2465: # run `make install-strip'. However `strip' might not be the right
2466: # tool to use in cross-compilation environments, therefore Automake
2467: # will honor the `STRIP' environment variable to overrule this program.
2468: if test "$cross_compiling" != no; then
2469: if test -n "$ac_tool_prefix"; then
2470: # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2471: set dummy ${ac_tool_prefix}strip; ac_word=$2
2472: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2473: $as_echo_n "checking for $ac_word... " >&6; }
2474: if ${ac_cv_prog_STRIP+:} false; then :
2475: $as_echo_n "(cached) " >&6
1.2 paf 2476: else
1.5 moko 2477: if test -n "$STRIP"; then
2478: ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1.1 paf 2479: else
1.2 paf 2480: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2481: for as_dir in $PATH
2482: do
2483: IFS=$as_save_IFS
2484: test -z "$as_dir" && as_dir=.
1.5 moko 2485: for ac_exec_ext in '' $ac_executable_extensions; do
1.7 ! moko 2486: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.5 moko 2487: ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2488: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.2 paf 2489: break 2
2490: fi
2491: done
1.5 moko 2492: done
2493: IFS=$as_save_IFS
1.2 paf 2494:
2495: fi
2496: fi
1.5 moko 2497: STRIP=$ac_cv_prog_STRIP
2498: if test -n "$STRIP"; then
2499: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2500: $as_echo "$STRIP" >&6; }
1.2 paf 2501: else
1.5 moko 2502: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2503: $as_echo "no" >&6; }
1.2 paf 2504: fi
2505:
2506:
1.5 moko 2507: fi
2508: if test -z "$ac_cv_prog_STRIP"; then
2509: ac_ct_STRIP=$STRIP
2510: # Extract the first word of "strip", so it can be a program name with args.
2511: set dummy strip; ac_word=$2
2512: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2513: $as_echo_n "checking for $ac_word... " >&6; }
2514: if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2515: $as_echo_n "(cached) " >&6
1.2 paf 2516: else
1.5 moko 2517: if test -n "$ac_ct_STRIP"; then
2518: ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1.1 paf 2519: else
1.5 moko 2520: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2521: for as_dir in $PATH
2522: do
2523: IFS=$as_save_IFS
2524: test -z "$as_dir" && as_dir=.
2525: for ac_exec_ext in '' $ac_executable_extensions; do
1.7 ! moko 2526: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.5 moko 2527: ac_cv_prog_ac_ct_STRIP="strip"
2528: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2529: break 2
2530: fi
2531: done
2532: done
2533: IFS=$as_save_IFS
2534:
1.1 paf 2535: fi
2536: fi
1.5 moko 2537: ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2538: if test -n "$ac_ct_STRIP"; then
2539: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2540: $as_echo "$ac_ct_STRIP" >&6; }
1.1 paf 2541: else
1.5 moko 2542: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2543: $as_echo "no" >&6; }
1.2 paf 2544: fi
2545:
1.5 moko 2546: if test "x$ac_ct_STRIP" = x; then
2547: STRIP=":"
1.2 paf 2548: else
1.5 moko 2549: case $cross_compiling:$ac_tool_warned in
2550: yes:)
2551: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2552: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2553: ac_tool_warned=yes ;;
2554: esac
2555: STRIP=$ac_ct_STRIP
1.2 paf 2556: fi
1.5 moko 2557: else
2558: STRIP="$ac_cv_prog_STRIP"
1.2 paf 2559: fi
2560:
1.5 moko 2561: fi
2562: INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
1.2 paf 2563:
1.5 moko 2564: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2565: $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2566: if test -z "$MKDIR_P"; then
2567: if ${ac_cv_path_mkdir+:} false; then :
2568: $as_echo_n "(cached) " >&6
2569: else
2570: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2571: for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2572: do
2573: IFS=$as_save_IFS
2574: test -z "$as_dir" && as_dir=.
2575: for ac_prog in mkdir gmkdir; do
2576: for ac_exec_ext in '' $ac_executable_extensions; do
1.7 ! moko 2577: as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
1.5 moko 2578: case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2579: 'mkdir (GNU coreutils) '* | \
2580: 'mkdir (coreutils) '* | \
2581: 'mkdir (fileutils) '4.1*)
2582: ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2583: break 3;;
2584: esac
2585: done
2586: done
2587: done
2588: IFS=$as_save_IFS
1.2 paf 2589:
1.5 moko 2590: fi
1.2 paf 2591:
1.5 moko 2592: test -d ./--version && rmdir ./--version
2593: if test "${ac_cv_path_mkdir+set}" = set; then
2594: MKDIR_P="$ac_cv_path_mkdir -p"
2595: else
2596: # As a last resort, use the slow shell script. Don't cache a
2597: # value for MKDIR_P within a source directory, because that will
2598: # break other packages using the cache if that directory is
2599: # removed, or if the value is a relative name.
2600: MKDIR_P="$ac_install_sh -d"
2601: fi
2602: fi
2603: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2604: $as_echo "$MKDIR_P" >&6; }
1.2 paf 2605:
1.5 moko 2606: mkdir_p="$MKDIR_P"
2607: case $mkdir_p in
2608: [\\/$]* | ?:[\\/]*) ;;
2609: */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2610: esac
1.2 paf 2611:
1.5 moko 2612: for ac_prog in gawk mawk nawk awk
2613: do
2614: # Extract the first word of "$ac_prog", so it can be a program name with args.
2615: set dummy $ac_prog; ac_word=$2
2616: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2617: $as_echo_n "checking for $ac_word... " >&6; }
2618: if ${ac_cv_prog_AWK+:} false; then :
2619: $as_echo_n "(cached) " >&6
1.1 paf 2620: else
1.5 moko 2621: if test -n "$AWK"; then
2622: ac_cv_prog_AWK="$AWK" # Let the user override the test.
1.2 paf 2623: else
2624: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2625: for as_dir in $PATH
2626: do
2627: IFS=$as_save_IFS
2628: test -z "$as_dir" && as_dir=.
1.5 moko 2629: for ac_exec_ext in '' $ac_executable_extensions; do
1.7 ! moko 2630: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.5 moko 2631: ac_cv_prog_AWK="$ac_prog"
2632: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.2 paf 2633: break 2
2634: fi
2635: done
1.5 moko 2636: done
2637: IFS=$as_save_IFS
1.2 paf 2638:
2639: fi
2640: fi
1.5 moko 2641: AWK=$ac_cv_prog_AWK
2642: if test -n "$AWK"; then
2643: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2644: $as_echo "$AWK" >&6; }
1.2 paf 2645: else
1.5 moko 2646: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2647: $as_echo "no" >&6; }
1.1 paf 2648: fi
2649:
1.5 moko 2650:
2651: test -n "$AWK" && break
1.2 paf 2652: done
2653:
1.5 moko 2654: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2655: $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2656: set x ${MAKE-make}
2657: ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2658: if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2659: $as_echo_n "(cached) " >&6
2660: else
2661: cat >conftest.make <<\_ACEOF
2662: SHELL = /bin/sh
2663: all:
2664: @echo '@@@%%%=$(MAKE)=@@@%%%'
2665: _ACEOF
2666: # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2667: case `${MAKE-make} -f conftest.make 2>/dev/null` in
2668: *@@@%%%=?*=@@@%%%*)
2669: eval ac_cv_prog_make_${ac_make}_set=yes;;
2670: *)
2671: eval ac_cv_prog_make_${ac_make}_set=no;;
2672: esac
2673: rm -f conftest.make
1.1 paf 2674: fi
1.5 moko 2675: if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2676: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2677: $as_echo "yes" >&6; }
2678: SET_MAKE=
1.1 paf 2679: else
1.5 moko 2680: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2681: $as_echo "no" >&6; }
2682: SET_MAKE="MAKE=${MAKE-make}"
1.1 paf 2683: fi
2684:
1.5 moko 2685: rm -rf .tst 2>/dev/null
2686: mkdir .tst 2>/dev/null
2687: if test -d .tst; then
2688: am__leading_dot=.
2689: else
2690: am__leading_dot=_
2691: fi
2692: rmdir .tst 2>/dev/null
2693:
2694: if test "`cd $srcdir && pwd`" != "`pwd`"; then
2695: # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2696: # is not polluted with repeated "-I."
2697: am__isrc=' -I$(srcdir)'
2698: # test to see if srcdir already configured
2699: if test -f $srcdir/config.status; then
2700: as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2701: fi
1.1 paf 2702: fi
2703:
1.5 moko 2704: # test whether we have cygpath
2705: if test -z "$CYGPATH_W"; then
2706: if (cygpath --version) >/dev/null 2>/dev/null; then
2707: CYGPATH_W='cygpath -w'
2708: else
2709: CYGPATH_W=echo
2710: fi
1.1 paf 2711: fi
1.5 moko 2712:
2713:
2714: # Define the identity of the package.
2715: PACKAGE='libltdl'
2716: VERSION='2.4.2'
2717:
2718:
2719: cat >>confdefs.h <<_ACEOF
2720: #define PACKAGE "$PACKAGE"
2721: _ACEOF
2722:
2723:
2724: cat >>confdefs.h <<_ACEOF
2725: #define VERSION "$VERSION"
2726: _ACEOF
2727:
2728: # Some tools Automake needs.
2729:
2730: ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2731:
2732:
2733: AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2734:
2735:
2736: AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2737:
2738:
2739: AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2740:
2741:
2742: MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1.2 paf 2743:
2744: # We need awk for the "check" target. The system "awk" is bad on
2745: # some platforms.
1.5 moko 2746: # Always define AMTAR for backward compatibility.
2747:
2748: AMTAR=${AMTAR-"${am_missing_run}tar"}
2749:
2750: am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2751:
2752:
2753:
2754:
2755:
2756:
2757:
2758: ## ------------------------------- ##
2759: ## Libtool specific configuration. ##
2760: ## ------------------------------- ##
2761: pkgdatadir='${datadir}'"/${PACKAGE}"
2762:
2763:
2764: ## ----------------------- ##
2765: ## Libtool initialisation. ##
2766: ## ----------------------- ##
2767: case `pwd` in
2768: *\ * | *\ *)
2769: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2770: $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2771: esac
2772:
2773:
2774:
2775: macro_version='2.4.2'
2776: macro_revision='1.3337'
2777:
2778:
2779:
2780:
2781:
2782:
2783:
2784:
2785:
2786:
2787:
2788:
1.2 paf 2789:
1.5 moko 2790: ltmain="$ac_aux_dir/ltmain.sh"
2791:
2792: # Make sure we can run config.sub.
2793: $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2794: as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2795:
2796: { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2797: $as_echo_n "checking build system type... " >&6; }
2798: if ${ac_cv_build+:} false; then :
2799: $as_echo_n "(cached) " >&6
2800: else
2801: ac_build_alias=$build_alias
2802: test "x$ac_build_alias" = x &&
2803: ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2804: test "x$ac_build_alias" = x &&
2805: as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2806: ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2807: as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2808:
2809: fi
2810: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2811: $as_echo "$ac_cv_build" >&6; }
2812: case $ac_cv_build in
2813: *-*-*) ;;
2814: *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2815: esac
2816: build=$ac_cv_build
2817: ac_save_IFS=$IFS; IFS='-'
2818: set x $ac_cv_build
2819: shift
2820: build_cpu=$1
2821: build_vendor=$2
2822: shift; shift
2823: # Remember, the first character of IFS is used to create $*,
2824: # except with old shells:
2825: build_os=$*
2826: IFS=$ac_save_IFS
2827: case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2828:
2829:
2830: { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2831: $as_echo_n "checking host system type... " >&6; }
2832: if ${ac_cv_host+:} false; then :
2833: $as_echo_n "(cached) " >&6
2834: else
2835: if test "x$host_alias" = x; then
2836: ac_cv_host=$ac_cv_build
2837: else
2838: ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2839: as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2840: fi
2841:
2842: fi
2843: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2844: $as_echo "$ac_cv_host" >&6; }
2845: case $ac_cv_host in
2846: *-*-*) ;;
2847: *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2848: esac
2849: host=$ac_cv_host
2850: ac_save_IFS=$IFS; IFS='-'
2851: set x $ac_cv_host
2852: shift
2853: host_cpu=$1
2854: host_vendor=$2
2855: shift; shift
2856: # Remember, the first character of IFS is used to create $*,
2857: # except with old shells:
2858: host_os=$*
2859: IFS=$ac_save_IFS
2860: case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2861:
2862:
2863: # Backslashify metacharacters that are still active within
2864: # double-quoted strings.
2865: sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
2866:
2867: # Same as above, but do not quote variable references.
2868: double_quote_subst='s/\(["`\\]\)/\\\1/g'
2869:
2870: # Sed substitution to delay expansion of an escaped shell variable in a
2871: # double_quote_subst'ed string.
2872: delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
1.2 paf 2873:
1.5 moko 2874: # Sed substitution to delay expansion of an escaped single quote.
2875: delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
1.2 paf 2876:
1.5 moko 2877: # Sed substitution to avoid accidental globbing in evaled expressions
2878: no_glob_subst='s/\*/\\\*/g'
1.2 paf 2879:
1.5 moko 2880: ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
2881: ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
2882: ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
2883:
2884: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
2885: $as_echo_n "checking how to print strings... " >&6; }
2886: # Test print first, because it will be a builtin if present.
2887: if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
2888: test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
2889: ECHO='print -r --'
2890: elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
2891: ECHO='printf %s\n'
1.1 paf 2892: else
1.5 moko 2893: # Use this function as a fallback that always works.
2894: func_fallback_echo ()
2895: {
2896: eval 'cat <<_LTECHO_EOF
2897: $1
2898: _LTECHO_EOF'
2899: }
2900: ECHO='func_fallback_echo'
2901: fi
2902:
2903: # func_echo_all arg...
2904: # Invoke $ECHO with all args, space-separated.
2905: func_echo_all ()
2906: {
2907: $ECHO ""
2908: }
2909:
2910: case "$ECHO" in
2911: printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
2912: $as_echo "printf" >&6; } ;;
2913: print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
2914: $as_echo "print -r" >&6; } ;;
2915: *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
2916: $as_echo "cat" >&6; } ;;
2917: esac
2918:
2919:
2920:
2921:
2922:
2923:
2924:
1.1 paf 2925:
2926:
1.5 moko 2927:
2928:
2929:
2930:
2931:
2932: DEPDIR="${am__leading_dot}deps"
2933:
2934: ac_config_commands="$ac_config_commands depfiles"
2935:
2936:
2937: am_make=${MAKE-make}
2938: cat > confinc << 'END'
2939: am__doit:
2940: @echo this is the am__doit target
2941: .PHONY: am__doit
2942: END
2943: # If we don't find an include directive, just comment out the code.
2944: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2945: $as_echo_n "checking for style of include used by $am_make... " >&6; }
2946: am__include="#"
2947: am__quote=
2948: _am_result=none
2949: # First try GNU make style include.
2950: echo "include confinc" > confmf
2951: # Ignore all kinds of additional output from `make'.
2952: case `$am_make -s -f confmf 2> /dev/null` in #(
2953: *the\ am__doit\ target*)
2954: am__include=include
2955: am__quote=
2956: _am_result=GNU
2957: ;;
2958: esac
2959: # Now try BSD make style include.
2960: if test "$am__include" = "#"; then
2961: echo '.include "confinc"' > confmf
2962: case `$am_make -s -f confmf 2> /dev/null` in #(
2963: *the\ am__doit\ target*)
2964: am__include=.include
2965: am__quote="\""
2966: _am_result=BSD
2967: ;;
2968: esac
1.1 paf 2969: fi
1.2 paf 2970:
1.1 paf 2971:
1.5 moko 2972: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2973: $as_echo "$_am_result" >&6; }
2974: rm -f confinc confmf
2975:
2976: # Check whether --enable-dependency-tracking was given.
2977: if test "${enable_dependency_tracking+set}" = set; then :
2978: enableval=$enable_dependency_tracking;
2979: fi
2980:
2981: if test "x$enable_dependency_tracking" != xno; then
2982: am_depcomp="$ac_aux_dir/depcomp"
2983: AMDEPBACKSLASH='\'
2984: fi
2985: if test "x$enable_dependency_tracking" != xno; then
2986: AMDEP_TRUE=
2987: AMDEP_FALSE='#'
2988: else
2989: AMDEP_TRUE='#'
2990: AMDEP_FALSE=
2991: fi
1.1 paf 2992:
1.2 paf 2993:
2994: ac_ext=c
2995: ac_cpp='$CPP $CPPFLAGS'
2996: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2997: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2998: ac_compiler_gnu=$ac_cv_c_compiler_gnu
2999: if test -n "$ac_tool_prefix"; then
3000: # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3001: set dummy ${ac_tool_prefix}gcc; ac_word=$2
1.5 moko 3002: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3003: $as_echo_n "checking for $ac_word... " >&6; }
3004: if ${ac_cv_prog_CC+:} false; then :
3005: $as_echo_n "(cached) " >&6
1.2 paf 3006: else
3007: if test -n "$CC"; then
3008: ac_cv_prog_CC="$CC" # Let the user override the test.
3009: else
3010: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3011: for as_dir in $PATH
3012: do
3013: IFS=$as_save_IFS
3014: test -z "$as_dir" && as_dir=.
1.5 moko 3015: for ac_exec_ext in '' $ac_executable_extensions; do
1.7 ! moko 3016: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.2 paf 3017: ac_cv_prog_CC="${ac_tool_prefix}gcc"
1.5 moko 3018: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.2 paf 3019: break 2
3020: fi
3021: done
1.5 moko 3022: done
3023: IFS=$as_save_IFS
1.2 paf 3024:
3025: fi
3026: fi
3027: CC=$ac_cv_prog_CC
3028: if test -n "$CC"; then
1.5 moko 3029: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3030: $as_echo "$CC" >&6; }
1.2 paf 3031: else
1.5 moko 3032: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3033: $as_echo "no" >&6; }
1.2 paf 3034: fi
3035:
1.5 moko 3036:
1.2 paf 3037: fi
3038: if test -z "$ac_cv_prog_CC"; then
3039: ac_ct_CC=$CC
3040: # Extract the first word of "gcc", so it can be a program name with args.
1.1 paf 3041: set dummy gcc; ac_word=$2
1.5 moko 3042: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3043: $as_echo_n "checking for $ac_word... " >&6; }
3044: if ${ac_cv_prog_ac_ct_CC+:} false; then :
3045: $as_echo_n "(cached) " >&6
1.2 paf 3046: else
3047: if test -n "$ac_ct_CC"; then
3048: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3049: else
3050: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3051: for as_dir in $PATH
3052: do
3053: IFS=$as_save_IFS
3054: test -z "$as_dir" && as_dir=.
1.5 moko 3055: for ac_exec_ext in '' $ac_executable_extensions; do
1.7 ! moko 3056: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.2 paf 3057: ac_cv_prog_ac_ct_CC="gcc"
1.5 moko 3058: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.2 paf 3059: break 2
3060: fi
3061: done
1.5 moko 3062: done
3063: IFS=$as_save_IFS
1.2 paf 3064:
3065: fi
3066: fi
3067: ac_ct_CC=$ac_cv_prog_ac_ct_CC
3068: if test -n "$ac_ct_CC"; then
1.5 moko 3069: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3070: $as_echo "$ac_ct_CC" >&6; }
1.2 paf 3071: else
1.5 moko 3072: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3073: $as_echo "no" >&6; }
1.2 paf 3074: fi
3075:
1.5 moko 3076: if test "x$ac_ct_CC" = x; then
3077: CC=""
3078: else
3079: case $cross_compiling:$ac_tool_warned in
3080: yes:)
3081: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3082: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3083: ac_tool_warned=yes ;;
3084: esac
3085: CC=$ac_ct_CC
3086: fi
1.2 paf 3087: else
3088: CC="$ac_cv_prog_CC"
3089: fi
3090:
3091: if test -z "$CC"; then
1.5 moko 3092: if test -n "$ac_tool_prefix"; then
3093: # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1.2 paf 3094: set dummy ${ac_tool_prefix}cc; ac_word=$2
1.5 moko 3095: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3096: $as_echo_n "checking for $ac_word... " >&6; }
3097: if ${ac_cv_prog_CC+:} false; then :
3098: $as_echo_n "(cached) " >&6
1.1 paf 3099: else
3100: if test -n "$CC"; then
3101: ac_cv_prog_CC="$CC" # Let the user override the test.
3102: else
1.2 paf 3103: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3104: for as_dir in $PATH
3105: do
3106: IFS=$as_save_IFS
3107: test -z "$as_dir" && as_dir=.
1.5 moko 3108: for ac_exec_ext in '' $ac_executable_extensions; do
1.7 ! moko 3109: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.2 paf 3110: ac_cv_prog_CC="${ac_tool_prefix}cc"
1.5 moko 3111: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.2 paf 3112: break 2
3113: fi
3114: done
1.5 moko 3115: done
3116: IFS=$as_save_IFS
1.2 paf 3117:
1.1 paf 3118: fi
3119: fi
1.2 paf 3120: CC=$ac_cv_prog_CC
1.1 paf 3121: if test -n "$CC"; then
1.5 moko 3122: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3123: $as_echo "$CC" >&6; }
1.1 paf 3124: else
1.5 moko 3125: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3126: $as_echo "no" >&6; }
1.2 paf 3127: fi
3128:
1.5 moko 3129:
3130: fi
1.1 paf 3131: fi
1.5 moko 3132: if test -z "$CC"; then
1.2 paf 3133: # Extract the first word of "cc", so it can be a program name with args.
3134: set dummy cc; ac_word=$2
1.5 moko 3135: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3136: $as_echo_n "checking for $ac_word... " >&6; }
3137: if ${ac_cv_prog_CC+:} false; then :
3138: $as_echo_n "(cached) " >&6
1.2 paf 3139: else
1.5 moko 3140: if test -n "$CC"; then
3141: ac_cv_prog_CC="$CC" # Let the user override the test.
1.2 paf 3142: else
1.5 moko 3143: ac_prog_rejected=no
1.2 paf 3144: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3145: for as_dir in $PATH
3146: do
3147: IFS=$as_save_IFS
3148: test -z "$as_dir" && as_dir=.
1.5 moko 3149: for ac_exec_ext in '' $ac_executable_extensions; do
1.7 ! moko 3150: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.5 moko 3151: if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3152: ac_prog_rejected=yes
3153: continue
3154: fi
3155: ac_cv_prog_CC="cc"
3156: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.2 paf 3157: break 2
3158: fi
3159: done
1.5 moko 3160: done
3161: IFS=$as_save_IFS
1.1 paf 3162:
1.5 moko 3163: if test $ac_prog_rejected = yes; then
3164: # We found a bogon in the path, so make sure we never use it.
3165: set dummy $ac_cv_prog_CC
3166: shift
3167: if test $# != 0; then
3168: # We chose a different compiler from the bogus one.
3169: # However, it has the same basename, so the bogon will be chosen
3170: # first if we set CC to just the basename; use the full file name.
3171: shift
3172: ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3173: fi
1.1 paf 3174: fi
3175: fi
3176: fi
1.2 paf 3177: CC=$ac_cv_prog_CC
1.1 paf 3178: if test -n "$CC"; then
1.5 moko 3179: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3180: $as_echo "$CC" >&6; }
1.1 paf 3181: else
1.5 moko 3182: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3183: $as_echo "no" >&6; }
1.1 paf 3184: fi
3185:
1.5 moko 3186:
1.2 paf 3187: fi
3188: if test -z "$CC"; then
3189: if test -n "$ac_tool_prefix"; then
1.5 moko 3190: for ac_prog in cl.exe
1.2 paf 3191: do
3192: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3193: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1.5 moko 3194: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3195: $as_echo_n "checking for $ac_word... " >&6; }
3196: if ${ac_cv_prog_CC+:} false; then :
3197: $as_echo_n "(cached) " >&6
1.1 paf 3198: else
3199: if test -n "$CC"; then
3200: ac_cv_prog_CC="$CC" # Let the user override the test.
3201: else
1.2 paf 3202: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3203: for as_dir in $PATH
3204: do
3205: IFS=$as_save_IFS
3206: test -z "$as_dir" && as_dir=.
1.5 moko 3207: for ac_exec_ext in '' $ac_executable_extensions; do
1.7 ! moko 3208: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.2 paf 3209: ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1.5 moko 3210: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.2 paf 3211: break 2
3212: fi
3213: done
1.5 moko 3214: done
3215: IFS=$as_save_IFS
1.2 paf 3216:
1.1 paf 3217: fi
3218: fi
1.2 paf 3219: CC=$ac_cv_prog_CC
1.1 paf 3220: if test -n "$CC"; then
1.5 moko 3221: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3222: $as_echo "$CC" >&6; }
1.1 paf 3223: else
1.5 moko 3224: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3225: $as_echo "no" >&6; }
1.2 paf 3226: fi
3227:
1.5 moko 3228:
1.2 paf 3229: test -n "$CC" && break
3230: done
1.1 paf 3231: fi
1.2 paf 3232: if test -z "$CC"; then
3233: ac_ct_CC=$CC
1.5 moko 3234: for ac_prog in cl.exe
1.2 paf 3235: do
3236: # Extract the first word of "$ac_prog", so it can be a program name with args.
3237: set dummy $ac_prog; ac_word=$2
1.5 moko 3238: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3239: $as_echo_n "checking for $ac_word... " >&6; }
3240: if ${ac_cv_prog_ac_ct_CC+:} false; then :
3241: $as_echo_n "(cached) " >&6
1.2 paf 3242: else
3243: if test -n "$ac_ct_CC"; then
3244: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3245: else
3246: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3247: for as_dir in $PATH
3248: do
3249: IFS=$as_save_IFS
3250: test -z "$as_dir" && as_dir=.
1.5 moko 3251: for ac_exec_ext in '' $ac_executable_extensions; do
1.7 ! moko 3252: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.2 paf 3253: ac_cv_prog_ac_ct_CC="$ac_prog"
1.5 moko 3254: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.2 paf 3255: break 2
1.1 paf 3256: fi
1.2 paf 3257: done
1.5 moko 3258: done
3259: IFS=$as_save_IFS
1.2 paf 3260:
3261: fi
3262: fi
3263: ac_ct_CC=$ac_cv_prog_ac_ct_CC
3264: if test -n "$ac_ct_CC"; then
1.5 moko 3265: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3266: $as_echo "$ac_ct_CC" >&6; }
1.2 paf 3267: else
1.5 moko 3268: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3269: $as_echo "no" >&6; }
1.2 paf 3270: fi
3271:
1.5 moko 3272:
1.2 paf 3273: test -n "$ac_ct_CC" && break
3274: done
3275:
1.5 moko 3276: if test "x$ac_ct_CC" = x; then
3277: CC=""
3278: else
3279: case $cross_compiling:$ac_tool_warned in
3280: yes:)
3281: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3282: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3283: ac_tool_warned=yes ;;
3284: esac
3285: CC=$ac_ct_CC
3286: fi
1.2 paf 3287: fi
3288:
1.1 paf 3289: fi
3290:
3291:
1.5 moko 3292: test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3293: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3294: as_fn_error $? "no acceptable C compiler found in \$PATH
3295: See \`config.log' for more details" "$LINENO" 5; }
1.2 paf 3296:
3297: # Provide some information about the compiler.
1.5 moko 3298: $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3299: set X $ac_compile
3300: ac_compiler=$2
3301: for ac_option in --version -v -V -qversion; do
3302: { { ac_try="$ac_compiler $ac_option >&5"
3303: case "(($ac_try" in
3304: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3305: *) ac_try_echo=$ac_try;;
3306: esac
3307: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3308: $as_echo "$ac_try_echo"; } >&5
3309: (eval "$ac_compiler $ac_option >&5") 2>conftest.err
1.2 paf 3310: ac_status=$?
1.5 moko 3311: if test -s conftest.err; then
3312: sed '10a\
3313: ... rest of stderr output deleted ...
3314: 10q' conftest.err >conftest.er1
3315: cat conftest.er1 >&5
3316: fi
3317: rm -f conftest.er1 conftest.err
3318: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3319: test $ac_status = 0; }
3320: done
1.2 paf 3321:
1.5 moko 3322: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.2 paf 3323: /* end confdefs.h. */
1.1 paf 3324:
1.2 paf 3325: int
3326: main ()
3327: {
1.1 paf 3328:
1.2 paf 3329: ;
3330: return 0;
3331: }
3332: _ACEOF
3333: ac_clean_files_save=$ac_clean_files
1.5 moko 3334: ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
1.2 paf 3335: # Try to create an executable without -o first, disregard a.out.
3336: # It will help us diagnose broken compilers, and finding out an intuition
3337: # of exeext.
1.5 moko 3338: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3339: $as_echo_n "checking whether the C compiler works... " >&6; }
3340: ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3341:
3342: # The possible output files:
3343: ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3344:
3345: ac_rmfiles=
3346: for ac_file in $ac_files
3347: do
3348: case $ac_file in
3349: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3350: * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3351: esac
3352: done
3353: rm -f $ac_rmfiles
3354:
3355: if { { ac_try="$ac_link_default"
3356: case "(($ac_try" in
3357: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3358: *) ac_try_echo=$ac_try;;
3359: esac
3360: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3361: $as_echo "$ac_try_echo"; } >&5
3362: (eval "$ac_link_default") 2>&5
3363: ac_status=$?
3364: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3365: test $ac_status = 0; }; then :
3366: # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3367: # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3368: # in a Makefile. We should not override ac_cv_exeext if it was cached,
3369: # so that the user can short-circuit this test for compilers unknown to
3370: # Autoconf.
3371: for ac_file in $ac_files ''
1.2 paf 3372: do
3373: test -f "$ac_file" || continue
3374: case $ac_file in
1.5 moko 3375: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3376: ;;
1.2 paf 3377: [ab].out )
1.5 moko 3378: # We found the default executable, but exeext='' is most
3379: # certainly right.
3380: break;;
1.2 paf 3381: *.* )
1.5 moko 3382: if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3383: then :; else
3384: ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3385: fi
3386: # We set ac_cv_exeext here because the later test for it is not
3387: # safe: cross compilers may not add the suffix if given an `-o'
3388: # argument, so we may need to know it at that point already.
3389: # Even if this section looks crufty: it has the advantage of
3390: # actually working.
3391: break;;
1.2 paf 3392: * )
1.5 moko 3393: break;;
1.2 paf 3394: esac
3395: done
1.5 moko 3396: test "$ac_cv_exeext" = no && ac_cv_exeext=
3397:
1.2 paf 3398: else
1.5 moko 3399: ac_file=''
3400: fi
3401: if test -z "$ac_file"; then :
3402: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3403: $as_echo "no" >&6; }
3404: $as_echo "$as_me: failed program was:" >&5
1.2 paf 3405: sed 's/^/| /' conftest.$ac_ext >&5
1.1 paf 3406:
1.5 moko 3407: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3408: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3409: as_fn_error 77 "C compiler cannot create executables
3410: See \`config.log' for more details" "$LINENO" 5; }
3411: else
3412: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3413: $as_echo "yes" >&6; }
1.2 paf 3414: fi
1.5 moko 3415: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3416: $as_echo_n "checking for C compiler default output file name... " >&6; }
3417: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3418: $as_echo "$ac_file" >&6; }
1.2 paf 3419: ac_exeext=$ac_cv_exeext
3420:
1.5 moko 3421: rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
1.2 paf 3422: ac_clean_files=$ac_clean_files_save
1.5 moko 3423: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3424: $as_echo_n "checking for suffix of executables... " >&6; }
3425: if { { ac_try="$ac_link"
3426: case "(($ac_try" in
3427: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3428: *) ac_try_echo=$ac_try;;
3429: esac
3430: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3431: $as_echo "$ac_try_echo"; } >&5
3432: (eval "$ac_link") 2>&5
1.2 paf 3433: ac_status=$?
1.5 moko 3434: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3435: test $ac_status = 0; }; then :
1.2 paf 3436: # If both `conftest.exe' and `conftest' are `present' (well, observable)
3437: # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3438: # work properly (i.e., refer to `conftest.exe'), while it won't with
3439: # `rm'.
3440: for ac_file in conftest.exe conftest conftest.*; do
3441: test -f "$ac_file" || continue
3442: case $ac_file in
1.5 moko 3443: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
1.2 paf 3444: *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1.5 moko 3445: break;;
1.2 paf 3446: * ) break;;
3447: esac
3448: done
1.1 paf 3449: else
1.5 moko 3450: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3451: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3452: as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3453: See \`config.log' for more details" "$LINENO" 5; }
3454: fi
3455: rm -f conftest conftest$ac_cv_exeext
3456: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3457: $as_echo "$ac_cv_exeext" >&6; }
1.2 paf 3458:
3459: rm -f conftest.$ac_ext
3460: EXEEXT=$ac_cv_exeext
3461: ac_exeext=$EXEEXT
1.5 moko 3462: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3463: /* end confdefs.h. */
3464: #include <stdio.h>
3465: int
3466: main ()
3467: {
3468: FILE *f = fopen ("conftest.out", "w");
3469: return ferror (f) || fclose (f) != 0;
3470:
3471: ;
3472: return 0;
3473: }
3474: _ACEOF
3475: ac_clean_files="$ac_clean_files conftest.out"
3476: # Check that the compiler produces executables we can run. If not, either
3477: # the compiler is broken, or we cross compile.
3478: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3479: $as_echo_n "checking whether we are cross compiling... " >&6; }
3480: if test "$cross_compiling" != yes; then
3481: { { ac_try="$ac_link"
3482: case "(($ac_try" in
3483: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3484: *) ac_try_echo=$ac_try;;
3485: esac
3486: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3487: $as_echo "$ac_try_echo"; } >&5
3488: (eval "$ac_link") 2>&5
3489: ac_status=$?
3490: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3491: test $ac_status = 0; }
3492: if { ac_try='./conftest$ac_cv_exeext'
3493: { { case "(($ac_try" in
3494: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3495: *) ac_try_echo=$ac_try;;
3496: esac
3497: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3498: $as_echo "$ac_try_echo"; } >&5
3499: (eval "$ac_try") 2>&5
3500: ac_status=$?
3501: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3502: test $ac_status = 0; }; }; then
3503: cross_compiling=no
3504: else
3505: if test "$cross_compiling" = maybe; then
3506: cross_compiling=yes
3507: else
3508: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3509: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3510: as_fn_error $? "cannot run C compiled programs.
3511: If you meant to cross compile, use \`--host'.
3512: See \`config.log' for more details" "$LINENO" 5; }
3513: fi
3514: fi
3515: fi
3516: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3517: $as_echo "$cross_compiling" >&6; }
3518:
3519: rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3520: ac_clean_files=$ac_clean_files_save
3521: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3522: $as_echo_n "checking for suffix of object files... " >&6; }
3523: if ${ac_cv_objext+:} false; then :
3524: $as_echo_n "(cached) " >&6
1.2 paf 3525: else
1.5 moko 3526: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.2 paf 3527: /* end confdefs.h. */
1.1 paf 3528:
1.2 paf 3529: int
3530: main ()
3531: {
1.1 paf 3532:
1.2 paf 3533: ;
3534: return 0;
3535: }
3536: _ACEOF
3537: rm -f conftest.o conftest.obj
1.5 moko 3538: if { { ac_try="$ac_compile"
3539: case "(($ac_try" in
3540: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3541: *) ac_try_echo=$ac_try;;
3542: esac
3543: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3544: $as_echo "$ac_try_echo"; } >&5
3545: (eval "$ac_compile") 2>&5
3546: ac_status=$?
3547: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3548: test $ac_status = 0; }; then :
3549: for ac_file in conftest.o conftest.obj conftest.*; do
3550: test -f "$ac_file" || continue;
1.2 paf 3551: case $ac_file in
1.5 moko 3552: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
1.2 paf 3553: *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3554: break;;
3555: esac
3556: done
1.1 paf 3557: else
1.5 moko 3558: $as_echo "$as_me: failed program was:" >&5
1.2 paf 3559: sed 's/^/| /' conftest.$ac_ext >&5
3560:
1.5 moko 3561: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3562: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3563: as_fn_error $? "cannot compute suffix of object files: cannot compile
3564: See \`config.log' for more details" "$LINENO" 5; }
1.2 paf 3565: fi
3566: rm -f conftest.$ac_cv_objext conftest.$ac_ext
3567: fi
1.5 moko 3568: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3569: $as_echo "$ac_cv_objext" >&6; }
1.2 paf 3570: OBJEXT=$ac_cv_objext
3571: ac_objext=$OBJEXT
1.5 moko 3572: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3573: $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3574: if ${ac_cv_c_compiler_gnu+:} false; then :
3575: $as_echo_n "(cached) " >&6
1.2 paf 3576: else
1.5 moko 3577: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.2 paf 3578: /* end confdefs.h. */
3579:
3580: int
3581: main ()
3582: {
3583: #ifndef __GNUC__
3584: choke me
3585: #endif
3586:
3587: ;
3588: return 0;
3589: }
3590: _ACEOF
1.5 moko 3591: if ac_fn_c_try_compile "$LINENO"; then :
1.2 paf 3592: ac_compiler_gnu=yes
3593: else
1.5 moko 3594: ac_compiler_gnu=no
1.2 paf 3595: fi
1.5 moko 3596: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.2 paf 3597: ac_cv_c_compiler_gnu=$ac_compiler_gnu
3598:
3599: fi
1.5 moko 3600: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3601: $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3602: if test $ac_compiler_gnu = yes; then
3603: GCC=yes
3604: else
3605: GCC=
3606: fi
1.2 paf 3607: ac_test_CFLAGS=${CFLAGS+set}
3608: ac_save_CFLAGS=$CFLAGS
1.5 moko 3609: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3610: $as_echo_n "checking whether $CC accepts -g... " >&6; }
3611: if ${ac_cv_prog_cc_g+:} false; then :
3612: $as_echo_n "(cached) " >&6
3613: else
3614: ac_save_c_werror_flag=$ac_c_werror_flag
3615: ac_c_werror_flag=yes
3616: ac_cv_prog_cc_g=no
3617: CFLAGS="-g"
3618: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3619: /* end confdefs.h. */
3620:
3621: int
3622: main ()
3623: {
3624:
3625: ;
3626: return 0;
3627: }
3628: _ACEOF
3629: if ac_fn_c_try_compile "$LINENO"; then :
3630: ac_cv_prog_cc_g=yes
1.2 paf 3631: else
1.5 moko 3632: CFLAGS=""
3633: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3634: /* end confdefs.h. */
3635:
3636: int
3637: main ()
3638: {
3639:
3640: ;
3641: return 0;
3642: }
1.2 paf 3643: _ACEOF
1.5 moko 3644: if ac_fn_c_try_compile "$LINENO"; then :
3645:
3646: else
3647: ac_c_werror_flag=$ac_save_c_werror_flag
3648: CFLAGS="-g"
3649: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.2 paf 3650: /* end confdefs.h. */
3651:
3652: int
3653: main ()
3654: {
1.1 paf 3655:
1.2 paf 3656: ;
3657: return 0;
3658: }
3659: _ACEOF
1.5 moko 3660: if ac_fn_c_try_compile "$LINENO"; then :
1.1 paf 3661: ac_cv_prog_cc_g=yes
3662: fi
1.5 moko 3663: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3664: fi
3665: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3666: fi
3667: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3668: ac_c_werror_flag=$ac_save_c_werror_flag
1.1 paf 3669: fi
1.5 moko 3670: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3671: $as_echo "$ac_cv_prog_cc_g" >&6; }
1.1 paf 3672: if test "$ac_test_CFLAGS" = set; then
1.2 paf 3673: CFLAGS=$ac_save_CFLAGS
1.1 paf 3674: elif test $ac_cv_prog_cc_g = yes; then
3675: if test "$GCC" = yes; then
3676: CFLAGS="-g -O2"
3677: else
3678: CFLAGS="-g"
3679: fi
3680: else
3681: if test "$GCC" = yes; then
3682: CFLAGS="-O2"
3683: else
3684: CFLAGS=
3685: fi
3686: fi
1.5 moko 3687: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3688: $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3689: if ${ac_cv_prog_cc_c89+:} false; then :
3690: $as_echo_n "(cached) " >&6
1.2 paf 3691: else
1.5 moko 3692: ac_cv_prog_cc_c89=no
1.2 paf 3693: ac_save_CC=$CC
1.5 moko 3694: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.2 paf 3695: /* end confdefs.h. */
3696: #include <stdarg.h>
3697: #include <stdio.h>
1.7 ! moko 3698: struct stat;
1.2 paf 3699: /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3700: struct buf { int x; };
3701: FILE * (*rcsopen) (struct buf *, struct stat *, int);
3702: static char *e (p, i)
3703: char **p;
3704: int i;
3705: {
3706: return p[i];
3707: }
3708: static char *f (char * (*g) (char **, int), char **p, ...)
3709: {
3710: char *s;
3711: va_list v;
3712: va_start (v,p);
3713: s = g (p, va_arg (v,int));
3714: va_end (v);
3715: return s;
3716: }
1.5 moko 3717:
3718: /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3719: function prototypes and stuff, but not '\xHH' hex character constants.
3720: These don't provoke an error unfortunately, instead are silently treated
3721: as 'x'. The following induces an error, until -std is added to get
3722: proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3723: array size at least. It's necessary to write '\x00'==0 to get something
3724: that's true only with -std. */
3725: int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3726:
3727: /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3728: inside strings and character constants. */
3729: #define FOO(x) 'x'
3730: int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3731:
1.2 paf 3732: int test (int i, double x);
3733: struct s1 {int (*f) (int a);};
3734: struct s2 {int (*f) (double a);};
3735: int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3736: int argc;
3737: char **argv;
3738: int
3739: main ()
3740: {
3741: return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3742: ;
3743: return 0;
3744: }
3745: _ACEOF
1.5 moko 3746: for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3747: -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1.2 paf 3748: do
3749: CC="$ac_save_CC $ac_arg"
1.5 moko 3750: if ac_fn_c_try_compile "$LINENO"; then :
3751: ac_cv_prog_cc_c89=$ac_arg
1.2 paf 3752: fi
1.5 moko 3753: rm -f core conftest.err conftest.$ac_objext
3754: test "x$ac_cv_prog_cc_c89" != "xno" && break
1.2 paf 3755: done
1.5 moko 3756: rm -f conftest.$ac_ext
1.2 paf 3757: CC=$ac_save_CC
1.1 paf 3758:
1.2 paf 3759: fi
1.5 moko 3760: # AC_CACHE_VAL
3761: case "x$ac_cv_prog_cc_c89" in
3762: x)
3763: { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3764: $as_echo "none needed" >&6; } ;;
3765: xno)
3766: { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3767: $as_echo "unsupported" >&6; } ;;
1.2 paf 3768: *)
1.5 moko 3769: CC="$CC $ac_cv_prog_cc_c89"
3770: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3771: $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3772: esac
3773: if test "x$ac_cv_prog_cc_c89" != xno; then :
1.2 paf 3774:
3775: fi
3776:
3777: ac_ext=c
3778: ac_cpp='$CPP $CPPFLAGS'
3779: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3780: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3781: ac_compiler_gnu=$ac_cv_c_compiler_gnu
3782:
1.5 moko 3783: depcc="$CC" am_compiler_list=
1.2 paf 3784:
1.5 moko 3785: { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3786: $as_echo_n "checking dependency style of $depcc... " >&6; }
3787: if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3788: $as_echo_n "(cached) " >&6
3789: else
3790: if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3791: # We make a subdir and do the tests there. Otherwise we can end up
3792: # making bogus files that we don't know about and never remove. For
3793: # instance it was reported that on HP-UX the gcc test will end up
3794: # making a dummy file named `D' -- because `-MD' means `put the output
3795: # in D'.
3796: mkdir conftest.dir
3797: # Copy depcomp to subdir because otherwise we won't find it if we're
3798: # using a relative directory.
3799: cp "$am_depcomp" conftest.dir
3800: cd conftest.dir
3801: # We will build objects and dependencies in a subdirectory because
3802: # it helps to detect inapplicable dependency modes. For instance
3803: # both Tru64's cc and ICC support -MD to output dependencies as a
3804: # side effect of compilation, but ICC will put the dependencies in
3805: # the current directory while Tru64 will put them in the object
3806: # directory.
3807: mkdir sub
1.2 paf 3808:
1.5 moko 3809: am_cv_CC_dependencies_compiler_type=none
3810: if test "$am_compiler_list" = ""; then
1.2 paf 3811: am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3812: fi
1.5 moko 3813: am__universal=false
3814: case " $depcc " in #(
3815: *\ -arch\ *\ -arch\ *) am__universal=true ;;
3816: esac
3817:
1.2 paf 3818: for depmode in $am_compiler_list; do
1.5 moko 3819: # Setup a source with many dependencies, because some compilers
3820: # like to wrap large dependency lists on column 80 (with \), and
3821: # we should not choose a depcomp mode which is confused by this.
3822: #
1.2 paf 3823: # We need to recreate these files for each test, as the compiler may
3824: # overwrite some of them when testing with obscure command lines.
3825: # This happens at least with the AIX C compiler.
1.5 moko 3826: : > sub/conftest.c
3827: for i in 1 2 3 4 5 6; do
3828: echo '#include "conftst'$i'.h"' >> sub/conftest.c
3829: # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3830: # Solaris 8's {/usr,}/bin/sh.
3831: touch sub/conftst$i.h
3832: done
3833: echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
1.2 paf 3834:
1.5 moko 3835: # We check with `-c' and `-o' for the sake of the "dashmstdout"
3836: # mode. It turns out that the SunPro C++ compiler does not properly
3837: # handle `-M -o', and we need to detect this. Also, some Intel
3838: # versions had trouble with output in subdirs
3839: am__obj=sub/conftest.${OBJEXT-o}
3840: am__minus_obj="-o $am__obj"
1.2 paf 3841: case $depmode in
1.5 moko 3842: gcc)
3843: # This depmode causes a compiler race in universal mode.
3844: test "$am__universal" = false || continue
3845: ;;
1.2 paf 3846: nosideeffect)
3847: # after this tag, mechanisms are not by side-effect, so they'll
3848: # only be used when explicitly requested
3849: if test "x$enable_dependency_tracking" = xyes; then
3850: continue
3851: else
3852: break
3853: fi
3854: ;;
1.5 moko 3855: msvisualcpp | msvcmsys)
3856: # This compiler won't grok `-c -o', but also, the minuso test has
3857: # not run yet. These depmodes are late enough in the game, and
3858: # so weak that their functioning should not be impacted.
3859: am__obj=conftest.${OBJEXT-o}
3860: am__minus_obj=
3861: ;;
1.2 paf 3862: none) break ;;
3863: esac
3864: if depmode=$depmode \
1.5 moko 3865: source=sub/conftest.c object=$am__obj \
3866: depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3867: $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3868: >/dev/null 2>conftest.err &&
3869: grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3870: grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3871: grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
1.2 paf 3872: ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
1.5 moko 3873: # icc doesn't choke on unknown options, it will just issue warnings
3874: # or remarks (even with -Werror). So we grep stderr for any message
3875: # that says an option was ignored or not supported.
3876: # When given -MP, icc 7.0 and 7.1 complain thusly:
3877: # icc: Command line warning: ignoring option '-M'; no argument required
3878: # The diagnosis changed in icc 8.0:
3879: # icc: Command line remark: option '-MP' not supported
3880: if (grep 'ignoring option' conftest.err ||
3881: grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3882: am_cv_CC_dependencies_compiler_type=$depmode
3883: break
3884: fi
1.2 paf 3885: fi
3886: done
3887:
3888: cd ..
3889: rm -rf conftest.dir
3890: else
3891: am_cv_CC_dependencies_compiler_type=none
3892: fi
3893:
3894: fi
1.5 moko 3895: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3896: $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
1.2 paf 3897: CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3898:
1.5 moko 3899: if
1.2 paf 3900: test "x$enable_dependency_tracking" != xno \
3901: && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3902: am__fastdepCC_TRUE=
3903: am__fastdepCC_FALSE='#'
3904: else
3905: am__fastdepCC_TRUE='#'
3906: am__fastdepCC_FALSE=
3907: fi
3908:
3909:
1.5 moko 3910: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3911: $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3912: if ${ac_cv_path_SED+:} false; then :
3913: $as_echo_n "(cached) " >&6
3914: else
3915: ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3916: for ac_i in 1 2 3 4 5 6 7; do
3917: ac_script="$ac_script$as_nl$ac_script"
3918: done
3919: echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3920: { ac_script=; unset ac_script;}
3921: if test -z "$SED"; then
3922: ac_path_SED_found=false
3923: # Loop through the user's path and test for each of PROGNAME-LIST
3924: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3925: for as_dir in $PATH
3926: do
3927: IFS=$as_save_IFS
3928: test -z "$as_dir" && as_dir=.
3929: for ac_prog in sed gsed; do
3930: for ac_exec_ext in '' $ac_executable_extensions; do
3931: ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
1.7 ! moko 3932: as_fn_executable_p "$ac_path_SED" || continue
1.5 moko 3933: # Check for GNU ac_path_SED and select it if it is found.
3934: # Check for GNU $ac_path_SED
3935: case `"$ac_path_SED" --version 2>&1` in
3936: *GNU*)
3937: ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3938: *)
3939: ac_count=0
3940: $as_echo_n 0123456789 >"conftest.in"
3941: while :
3942: do
3943: cat "conftest.in" "conftest.in" >"conftest.tmp"
3944: mv "conftest.tmp" "conftest.in"
3945: cp "conftest.in" "conftest.nl"
3946: $as_echo '' >> "conftest.nl"
3947: "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3948: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3949: as_fn_arith $ac_count + 1 && ac_count=$as_val
3950: if test $ac_count -gt ${ac_path_SED_max-0}; then
3951: # Best one so far, save it but keep looking for a better one
3952: ac_cv_path_SED="$ac_path_SED"
3953: ac_path_SED_max=$ac_count
3954: fi
3955: # 10*(2^10) chars as input seems more than enough
3956: test $ac_count -gt 10 && break
3957: done
3958: rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3959: esac
1.2 paf 3960:
1.5 moko 3961: $ac_path_SED_found && break 3
3962: done
3963: done
3964: done
3965: IFS=$as_save_IFS
3966: if test -z "$ac_cv_path_SED"; then
3967: as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
3968: fi
1.2 paf 3969: else
1.5 moko 3970: ac_cv_path_SED=$SED
3971: fi
3972:
3973: fi
3974: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
3975: $as_echo "$ac_cv_path_SED" >&6; }
3976: SED="$ac_cv_path_SED"
3977: rm -f conftest.sed
3978:
3979: test -z "$SED" && SED=sed
3980: Xsed="$SED -e 1s/^X//"
3981:
3982:
3983:
3984:
1.2 paf 3985:
3986:
3987:
3988:
1.1 paf 3989:
3990:
3991:
1.5 moko 3992: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3993: $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3994: if ${ac_cv_path_GREP+:} false; then :
3995: $as_echo_n "(cached) " >&6
1.1 paf 3996: else
1.5 moko 3997: if test -z "$GREP"; then
3998: ac_path_GREP_found=false
3999: # Loop through the user's path and test for each of PROGNAME-LIST
4000: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4001: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4002: do
4003: IFS=$as_save_IFS
4004: test -z "$as_dir" && as_dir=.
4005: for ac_prog in grep ggrep; do
4006: for ac_exec_ext in '' $ac_executable_extensions; do
4007: ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
1.7 ! moko 4008: as_fn_executable_p "$ac_path_GREP" || continue
1.5 moko 4009: # Check for GNU ac_path_GREP and select it if it is found.
4010: # Check for GNU $ac_path_GREP
4011: case `"$ac_path_GREP" --version 2>&1` in
4012: *GNU*)
4013: ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4014: *)
4015: ac_count=0
4016: $as_echo_n 0123456789 >"conftest.in"
4017: while :
4018: do
4019: cat "conftest.in" "conftest.in" >"conftest.tmp"
4020: mv "conftest.tmp" "conftest.in"
4021: cp "conftest.in" "conftest.nl"
4022: $as_echo 'GREP' >> "conftest.nl"
4023: "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4024: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4025: as_fn_arith $ac_count + 1 && ac_count=$as_val
4026: if test $ac_count -gt ${ac_path_GREP_max-0}; then
4027: # Best one so far, save it but keep looking for a better one
4028: ac_cv_path_GREP="$ac_path_GREP"
4029: ac_path_GREP_max=$ac_count
4030: fi
4031: # 10*(2^10) chars as input seems more than enough
4032: test $ac_count -gt 10 && break
4033: done
4034: rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4035: esac
1.1 paf 4036:
1.5 moko 4037: $ac_path_GREP_found && break 3
4038: done
4039: done
4040: done
4041: IFS=$as_save_IFS
4042: if test -z "$ac_cv_path_GREP"; then
4043: as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4044: fi
1.1 paf 4045: else
1.5 moko 4046: ac_cv_path_GREP=$GREP
1.1 paf 4047: fi
4048:
4049: fi
1.5 moko 4050: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4051: $as_echo "$ac_cv_path_GREP" >&6; }
4052: GREP="$ac_cv_path_GREP"
1.1 paf 4053:
4054:
1.5 moko 4055: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4056: $as_echo_n "checking for egrep... " >&6; }
4057: if ${ac_cv_path_EGREP+:} false; then :
4058: $as_echo_n "(cached) " >&6
1.4 paf 4059: else
1.5 moko 4060: if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4061: then ac_cv_path_EGREP="$GREP -E"
4062: else
4063: if test -z "$EGREP"; then
4064: ac_path_EGREP_found=false
4065: # Loop through the user's path and test for each of PROGNAME-LIST
4066: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4067: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4068: do
4069: IFS=$as_save_IFS
4070: test -z "$as_dir" && as_dir=.
4071: for ac_prog in egrep; do
4072: for ac_exec_ext in '' $ac_executable_extensions; do
4073: ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
1.7 ! moko 4074: as_fn_executable_p "$ac_path_EGREP" || continue
1.5 moko 4075: # Check for GNU ac_path_EGREP and select it if it is found.
4076: # Check for GNU $ac_path_EGREP
4077: case `"$ac_path_EGREP" --version 2>&1` in
4078: *GNU*)
4079: ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
1.4 paf 4080: *)
1.5 moko 4081: ac_count=0
4082: $as_echo_n 0123456789 >"conftest.in"
4083: while :
4084: do
4085: cat "conftest.in" "conftest.in" >"conftest.tmp"
4086: mv "conftest.tmp" "conftest.in"
4087: cp "conftest.in" "conftest.nl"
4088: $as_echo 'EGREP' >> "conftest.nl"
4089: "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4090: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4091: as_fn_arith $ac_count + 1 && ac_count=$as_val
4092: if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4093: # Best one so far, save it but keep looking for a better one
4094: ac_cv_path_EGREP="$ac_path_EGREP"
4095: ac_path_EGREP_max=$ac_count
1.4 paf 4096: fi
1.5 moko 4097: # 10*(2^10) chars as input seems more than enough
4098: test $ac_count -gt 10 && break
1.4 paf 4099: done
1.5 moko 4100: rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
1.4 paf 4101: esac
1.5 moko 4102:
4103: $ac_path_EGREP_found && break 3
4104: done
4105: done
4106: done
4107: IFS=$as_save_IFS
4108: if test -z "$ac_cv_path_EGREP"; then
4109: as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4110: fi
1.1 paf 4111: else
1.5 moko 4112: ac_cv_path_EGREP=$EGREP
4113: fi
4114:
4115: fi
4116: fi
4117: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4118: $as_echo "$ac_cv_path_EGREP" >&6; }
4119: EGREP="$ac_cv_path_EGREP"
4120:
4121:
4122: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4123: $as_echo_n "checking for fgrep... " >&6; }
4124: if ${ac_cv_path_FGREP+:} false; then :
4125: $as_echo_n "(cached) " >&6
4126: else
4127: if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4128: then ac_cv_path_FGREP="$GREP -F"
4129: else
4130: if test -z "$FGREP"; then
4131: ac_path_FGREP_found=false
4132: # Loop through the user's path and test for each of PROGNAME-LIST
4133: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4134: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4135: do
4136: IFS=$as_save_IFS
4137: test -z "$as_dir" && as_dir=.
4138: for ac_prog in fgrep; do
4139: for ac_exec_ext in '' $ac_executable_extensions; do
4140: ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
1.7 ! moko 4141: as_fn_executable_p "$ac_path_FGREP" || continue
1.5 moko 4142: # Check for GNU ac_path_FGREP and select it if it is found.
4143: # Check for GNU $ac_path_FGREP
4144: case `"$ac_path_FGREP" --version 2>&1` in
4145: *GNU*)
4146: ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
1.4 paf 4147: *)
1.5 moko 4148: ac_count=0
4149: $as_echo_n 0123456789 >"conftest.in"
4150: while :
4151: do
4152: cat "conftest.in" "conftest.in" >"conftest.tmp"
4153: mv "conftest.tmp" "conftest.in"
4154: cp "conftest.in" "conftest.nl"
4155: $as_echo 'FGREP' >> "conftest.nl"
4156: "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4157: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4158: as_fn_arith $ac_count + 1 && ac_count=$as_val
4159: if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4160: # Best one so far, save it but keep looking for a better one
4161: ac_cv_path_FGREP="$ac_path_FGREP"
4162: ac_path_FGREP_max=$ac_count
1.4 paf 4163: fi
1.5 moko 4164: # 10*(2^10) chars as input seems more than enough
4165: test $ac_count -gt 10 && break
1.4 paf 4166: done
1.5 moko 4167: rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
1.4 paf 4168: esac
1.5 moko 4169:
4170: $ac_path_FGREP_found && break 3
4171: done
4172: done
4173: done
4174: IFS=$as_save_IFS
4175: if test -z "$ac_cv_path_FGREP"; then
4176: as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4177: fi
1.1 paf 4178: else
1.5 moko 4179: ac_cv_path_FGREP=$FGREP
4180: fi
1.4 paf 4181:
1.5 moko 4182: fi
1.1 paf 4183: fi
1.5 moko 4184: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4185: $as_echo "$ac_cv_path_FGREP" >&6; }
4186: FGREP="$ac_cv_path_FGREP"
4187:
4188:
4189: test -z "$GREP" && GREP=grep
4190:
4191:
4192:
4193:
4194:
4195:
4196:
4197:
4198:
4199:
4200:
4201:
4202:
4203:
1.1 paf 4204:
1.4 paf 4205:
4206:
4207:
4208:
1.5 moko 4209: # Check whether --with-gnu-ld was given.
4210: if test "${with_gnu_ld+set}" = set; then :
4211: withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
1.2 paf 4212: else
1.4 paf 4213: with_gnu_ld=no
1.5 moko 4214: fi
4215:
1.4 paf 4216: ac_prog=ld
4217: if test "$GCC" = yes; then
4218: # Check if gcc -print-prog-name=ld gives a path.
1.5 moko 4219: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4220: $as_echo_n "checking for ld used by $CC... " >&6; }
1.4 paf 4221: case $host in
4222: *-*-mingw*)
4223: # gcc leaves a trailing carriage return which upsets mingw
4224: ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4225: *)
4226: ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4227: esac
4228: case $ac_prog in
4229: # Accept absolute paths.
1.5 moko 4230: [\\/]* | ?:[\\/]*)
1.4 paf 4231: re_direlt='/[^/][^/]*/\.\./'
1.5 moko 4232: # Canonicalize the pathname of ld
4233: ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4234: while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4235: ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
1.4 paf 4236: done
4237: test -z "$LD" && LD="$ac_prog"
4238: ;;
4239: "")
4240: # If it fails, then pretend we aren't using GCC.
4241: ac_prog=ld
4242: ;;
4243: *)
4244: # If it is relative, then search for the first ld in PATH.
4245: with_gnu_ld=unknown
4246: ;;
4247: esac
4248: elif test "$with_gnu_ld" = yes; then
1.5 moko 4249: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4250: $as_echo_n "checking for GNU ld... " >&6; }
1.2 paf 4251: else
1.5 moko 4252: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4253: $as_echo_n "checking for non-GNU ld... " >&6; }
1.2 paf 4254: fi
1.5 moko 4255: if ${lt_cv_path_LD+:} false; then :
4256: $as_echo_n "(cached) " >&6
1.1 paf 4257: else
1.4 paf 4258: if test -z "$LD"; then
1.5 moko 4259: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
1.4 paf 4260: for ac_dir in $PATH; do
1.5 moko 4261: IFS="$lt_save_ifs"
1.4 paf 4262: test -z "$ac_dir" && ac_dir=.
4263: if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4264: lt_cv_path_LD="$ac_dir/$ac_prog"
4265: # Check to see if the program is GNU ld. I'd rather use --version,
1.5 moko 4266: # but apparently some variants of GNU ld only accept -v.
1.4 paf 4267: # Break only if it was the GNU/non-GNU ld that we prefer.
1.5 moko 4268: case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4269: *GNU* | *'with BFD'*)
1.4 paf 4270: test "$with_gnu_ld" != no && break
1.5 moko 4271: ;;
4272: *)
1.4 paf 4273: test "$with_gnu_ld" != yes && break
1.5 moko 4274: ;;
4275: esac
1.4 paf 4276: fi
1.1 paf 4277: done
1.5 moko 4278: IFS="$lt_save_ifs"
1.4 paf 4279: else
4280: lt_cv_path_LD="$LD" # Let the user override the test with a path.
4281: fi
1.1 paf 4282: fi
1.2 paf 4283:
1.4 paf 4284: LD="$lt_cv_path_LD"
4285: if test -n "$LD"; then
1.5 moko 4286: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4287: $as_echo "$LD" >&6; }
1.4 paf 4288: else
1.5 moko 4289: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4290: $as_echo "no" >&6; }
1.2 paf 4291: fi
1.5 moko 4292: test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4293: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4294: $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4295: if ${lt_cv_prog_gnu_ld+:} false; then :
4296: $as_echo_n "(cached) " >&6
4297: else
4298: # I'd rather use --version here, but apparently some GNU lds only accept -v.
4299: case `$LD -v 2>&1 </dev/null` in
4300: *GNU* | *'with BFD'*)
1.4 paf 4301: lt_cv_prog_gnu_ld=yes
1.5 moko 4302: ;;
4303: *)
1.4 paf 4304: lt_cv_prog_gnu_ld=no
1.5 moko 4305: ;;
4306: esac
1.4 paf 4307: fi
1.5 moko 4308: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4309: $as_echo "$lt_cv_prog_gnu_ld" >&6; }
1.4 paf 4310: with_gnu_ld=$lt_cv_prog_gnu_ld
1.2 paf 4311:
4312:
4313:
1.5 moko 4314:
4315:
4316:
4317:
4318:
4319:
4320: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4321: $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4322: if ${lt_cv_path_NM+:} false; then :
4323: $as_echo_n "(cached) " >&6
1.2 paf 4324: else
1.4 paf 4325: if test -n "$NM"; then
4326: # Let the user override the test.
4327: lt_cv_path_NM="$NM"
4328: else
1.5 moko 4329: lt_nm_to_check="${ac_tool_prefix}nm"
4330: if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4331: lt_nm_to_check="$lt_nm_to_check nm"
4332: fi
4333: for lt_tmp_nm in $lt_nm_to_check; do
4334: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4335: for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4336: IFS="$lt_save_ifs"
4337: test -z "$ac_dir" && ac_dir=.
4338: tmp_nm="$ac_dir/$lt_tmp_nm"
4339: if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4340: # Check to see if the nm accepts a BSD-compat flag.
4341: # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4342: # nm: unknown option "B" ignored
4343: # Tru64's nm complains that /dev/null is an invalid object file
4344: case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4345: */dev/null* | *'Invalid file or object type'*)
4346: lt_cv_path_NM="$tmp_nm -B"
4347: break
4348: ;;
4349: *)
4350: case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4351: */dev/null*)
4352: lt_cv_path_NM="$tmp_nm -p"
4353: break
4354: ;;
4355: *)
4356: lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4357: continue # so that we can try to find one that supports BSD flags
4358: ;;
4359: esac
4360: ;;
4361: esac
1.4 paf 4362: fi
1.5 moko 4363: done
4364: IFS="$lt_save_ifs"
1.4 paf 4365: done
1.5 moko 4366: : ${lt_cv_path_NM=no}
1.4 paf 4367: fi
4368: fi
1.5 moko 4369: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4370: $as_echo "$lt_cv_path_NM" >&6; }
4371: if test "$lt_cv_path_NM" != "no"; then
4372: NM="$lt_cv_path_NM"
4373: else
4374: # Didn't find any BSD compatible name lister, look for dumpbin.
4375: if test -n "$DUMPBIN"; then :
4376: # Let the user override the test.
4377: else
4378: if test -n "$ac_tool_prefix"; then
4379: for ac_prog in dumpbin "link -dump"
4380: do
4381: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4382: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4383: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4384: $as_echo_n "checking for $ac_word... " >&6; }
4385: if ${ac_cv_prog_DUMPBIN+:} false; then :
4386: $as_echo_n "(cached) " >&6
4387: else
4388: if test -n "$DUMPBIN"; then
4389: ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
1.4 paf 4390: else
4391: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4392: for as_dir in $PATH
4393: do
4394: IFS=$as_save_IFS
4395: test -z "$as_dir" && as_dir=.
4396: for ac_exec_ext in '' $ac_executable_extensions; do
1.7 ! moko 4397: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.5 moko 4398: ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4399: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4400: break 2
4401: fi
4402: done
1.4 paf 4403: done
1.5 moko 4404: IFS=$as_save_IFS
4405:
4406: fi
4407: fi
4408: DUMPBIN=$ac_cv_prog_DUMPBIN
4409: if test -n "$DUMPBIN"; then
4410: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4411: $as_echo "$DUMPBIN" >&6; }
4412: else
4413: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4414: $as_echo "no" >&6; }
4415: fi
1.4 paf 4416:
4417:
1.5 moko 4418: test -n "$DUMPBIN" && break
4419: done
4420: fi
4421: if test -z "$DUMPBIN"; then
4422: ac_ct_DUMPBIN=$DUMPBIN
4423: for ac_prog in dumpbin "link -dump"
4424: do
4425: # Extract the first word of "$ac_prog", so it can be a program name with args.
4426: set dummy $ac_prog; ac_word=$2
4427: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4428: $as_echo_n "checking for $ac_word... " >&6; }
4429: if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4430: $as_echo_n "(cached) " >&6
4431: else
4432: if test -n "$ac_ct_DUMPBIN"; then
4433: ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4434: else
4435: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4436: for as_dir in $PATH
4437: do
4438: IFS=$as_save_IFS
4439: test -z "$as_dir" && as_dir=.
4440: for ac_exec_ext in '' $ac_executable_extensions; do
1.7 ! moko 4441: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.5 moko 4442: ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4443: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4444: break 2
4445: fi
4446: done
1.4 paf 4447: done
1.5 moko 4448: IFS=$as_save_IFS
4449:
4450: fi
4451: fi
4452: ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4453: if test -n "$ac_ct_DUMPBIN"; then
4454: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4455: $as_echo "$ac_ct_DUMPBIN" >&6; }
4456: else
4457: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4458: $as_echo "no" >&6; }
4459: fi
4460:
4461:
4462: test -n "$ac_ct_DUMPBIN" && break
4463: done
4464:
4465: if test "x$ac_ct_DUMPBIN" = x; then
4466: DUMPBIN=":"
4467: else
4468: case $cross_compiling:$ac_tool_warned in
4469: yes:)
4470: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4471: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4472: ac_tool_warned=yes ;;
4473: esac
4474: DUMPBIN=$ac_ct_DUMPBIN
4475: fi
4476: fi
4477:
4478: case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4479: *COFF*)
4480: DUMPBIN="$DUMPBIN -symbols"
4481: ;;
4482: *)
4483: DUMPBIN=:
4484: ;;
4485: esac
4486: fi
1.4 paf 4487:
1.5 moko 4488: if test "$DUMPBIN" != ":"; then
4489: NM="$DUMPBIN"
4490: fi
1.4 paf 4491: fi
1.5 moko 4492: test -z "$NM" && NM=nm
4493:
4494:
1.4 paf 4495:
1.5 moko 4496:
4497:
4498:
4499: { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4500: $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4501: if ${lt_cv_nm_interface+:} false; then :
4502: $as_echo_n "(cached) " >&6
1.4 paf 4503: else
1.5 moko 4504: lt_cv_nm_interface="BSD nm"
4505: echo "int some_variable = 0;" > conftest.$ac_ext
4506: (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4507: (eval "$ac_compile" 2>conftest.err)
4508: cat conftest.err >&5
4509: (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4510: (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4511: cat conftest.err >&5
4512: (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4513: cat conftest.out >&5
4514: if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4515: lt_cv_nm_interface="MS dumpbin"
4516: fi
4517: rm -f conftest*
1.4 paf 4518: fi
1.5 moko 4519: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4520: $as_echo "$lt_cv_nm_interface" >&6; }
1.4 paf 4521:
1.5 moko 4522: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4523: $as_echo_n "checking whether ln -s works... " >&6; }
1.4 paf 4524: LN_S=$as_ln_s
4525: if test "$LN_S" = "ln -s"; then
1.5 moko 4526: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4527: $as_echo "yes" >&6; }
4528: else
4529: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4530: $as_echo "no, using $LN_S" >&6; }
4531: fi
4532:
4533: # find the maximum length of command line arguments
4534: { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4535: $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4536: if ${lt_cv_sys_max_cmd_len+:} false; then :
4537: $as_echo_n "(cached) " >&6
4538: else
4539: i=0
4540: teststring="ABCD"
4541:
4542: case $build_os in
4543: msdosdjgpp*)
4544: # On DJGPP, this test can blow up pretty badly due to problems in libc
4545: # (any single argument exceeding 2000 bytes causes a buffer overrun
4546: # during glob expansion). Even if it were fixed, the result of this
4547: # check would be larger than it should be.
4548: lt_cv_sys_max_cmd_len=12288; # 12K is about right
4549: ;;
4550:
4551: gnu*)
4552: # Under GNU Hurd, this test is not required because there is
4553: # no limit to the length of command line arguments.
4554: # Libtool will interpret -1 as no limit whatsoever
4555: lt_cv_sys_max_cmd_len=-1;
4556: ;;
4557:
4558: cygwin* | mingw* | cegcc*)
4559: # On Win9x/ME, this test blows up -- it succeeds, but takes
4560: # about 5 minutes as the teststring grows exponentially.
4561: # Worse, since 9x/ME are not pre-emptively multitasking,
4562: # you end up with a "frozen" computer, even though with patience
4563: # the test eventually succeeds (with a max line length of 256k).
4564: # Instead, let's just punt: use the minimum linelength reported by
4565: # all of the supported platforms: 8192 (on NT/2K/XP).
4566: lt_cv_sys_max_cmd_len=8192;
4567: ;;
4568:
4569: mint*)
4570: # On MiNT this can take a long time and run out of memory.
4571: lt_cv_sys_max_cmd_len=8192;
4572: ;;
4573:
4574: amigaos*)
4575: # On AmigaOS with pdksh, this test takes hours, literally.
4576: # So we just punt and use a minimum line length of 8192.
4577: lt_cv_sys_max_cmd_len=8192;
4578: ;;
4579:
4580: netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4581: # This has been around since 386BSD, at least. Likely further.
4582: if test -x /sbin/sysctl; then
4583: lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4584: elif test -x /usr/sbin/sysctl; then
4585: lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4586: else
4587: lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4588: fi
4589: # And add a safety zone
4590: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4591: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4592: ;;
4593:
4594: interix*)
4595: # We know the value 262144 and hardcode it with a safety zone (like BSD)
4596: lt_cv_sys_max_cmd_len=196608
4597: ;;
4598:
4599: os2*)
4600: # The test takes a long time on OS/2.
4601: lt_cv_sys_max_cmd_len=8192
4602: ;;
4603:
4604: osf*)
4605: # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4606: # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4607: # nice to cause kernel panics so lets avoid the loop below.
4608: # First set a reasonable default.
4609: lt_cv_sys_max_cmd_len=16384
4610: #
4611: if test -x /sbin/sysconfig; then
4612: case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4613: *1*) lt_cv_sys_max_cmd_len=-1 ;;
4614: esac
4615: fi
4616: ;;
4617: sco3.2v5*)
4618: lt_cv_sys_max_cmd_len=102400
4619: ;;
4620: sysv5* | sco5v6* | sysv4.2uw2*)
4621: kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4622: if test -n "$kargmax"; then
4623: lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4624: else
4625: lt_cv_sys_max_cmd_len=32768
4626: fi
4627: ;;
4628: *)
4629: lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4630: if test -n "$lt_cv_sys_max_cmd_len"; then
4631: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4632: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4633: else
4634: # Make teststring a little bigger before we do anything with it.
4635: # a 1K string should be a reasonable start.
4636: for i in 1 2 3 4 5 6 7 8 ; do
4637: teststring=$teststring$teststring
4638: done
4639: SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4640: # If test is not a shell built-in, we'll probably end up computing a
4641: # maximum length that is only half of the actual maximum length, but
4642: # we can't tell.
4643: while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
4644: = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4645: test $i != 17 # 1/2 MB should be enough
4646: do
4647: i=`expr $i + 1`
4648: teststring=$teststring$teststring
4649: done
4650: # Only check the string length outside the loop.
4651: lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4652: teststring=
4653: # Add a significant safety factor because C++ compilers can tack on
4654: # massive amounts of additional arguments before passing them to the
4655: # linker. It appears as though 1/2 is a usable value.
4656: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4657: fi
4658: ;;
4659: esac
4660:
4661: fi
4662:
4663: if test -n $lt_cv_sys_max_cmd_len ; then
4664: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4665: $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4666: else
4667: { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4668: $as_echo "none" >&6; }
4669: fi
4670: max_cmd_len=$lt_cv_sys_max_cmd_len
4671:
4672:
4673:
4674:
4675:
4676:
4677: : ${CP="cp -f"}
4678: : ${MV="mv -f"}
4679: : ${RM="rm -f"}
4680:
4681: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4682: $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4683: # Try some XSI features
4684: xsi_shell=no
4685: ( _lt_dummy="a/b/c"
4686: test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
4687: = c,a/b,b/c, \
4688: && eval 'test $(( 1 + 1 )) -eq 2 \
4689: && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4690: && xsi_shell=yes
4691: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4692: $as_echo "$xsi_shell" >&6; }
4693:
4694:
4695: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4696: $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4697: lt_shell_append=no
4698: ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4699: >/dev/null 2>&1 \
4700: && lt_shell_append=yes
4701: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4702: $as_echo "$lt_shell_append" >&6; }
4703:
4704:
4705: if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4706: lt_unset=unset
4707: else
4708: lt_unset=false
4709: fi
4710:
4711:
4712:
4713:
4714:
4715: # test EBCDIC or ASCII
4716: case `echo X|tr X '\101'` in
4717: A) # ASCII based system
4718: # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4719: lt_SP2NL='tr \040 \012'
4720: lt_NL2SP='tr \015\012 \040\040'
4721: ;;
4722: *) # EBCDIC based system
4723: lt_SP2NL='tr \100 \n'
4724: lt_NL2SP='tr \r\n \100\100'
4725: ;;
4726: esac
4727:
4728:
4729:
4730:
4731:
4732:
4733:
4734:
4735:
4736: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4737: $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4738: if ${lt_cv_to_host_file_cmd+:} false; then :
4739: $as_echo_n "(cached) " >&6
1.4 paf 4740: else
1.5 moko 4741: case $host in
4742: *-*-mingw* )
4743: case $build in
4744: *-*-mingw* ) # actually msys
4745: lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4746: ;;
4747: *-*-cygwin* )
4748: lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4749: ;;
4750: * ) # otherwise, assume *nix
4751: lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4752: ;;
4753: esac
4754: ;;
4755: *-*-cygwin* )
4756: case $build in
4757: *-*-mingw* ) # actually msys
4758: lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4759: ;;
4760: *-*-cygwin* )
4761: lt_cv_to_host_file_cmd=func_convert_file_noop
4762: ;;
4763: * ) # otherwise, assume *nix
4764: lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4765: ;;
4766: esac
4767: ;;
4768: * ) # unhandled hosts (and "normal" native builds)
4769: lt_cv_to_host_file_cmd=func_convert_file_noop
4770: ;;
4771: esac
4772:
4773: fi
4774:
4775: to_host_file_cmd=$lt_cv_to_host_file_cmd
4776: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4777: $as_echo "$lt_cv_to_host_file_cmd" >&6; }
4778:
4779:
4780:
4781:
4782:
4783: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4784: $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4785: if ${lt_cv_to_tool_file_cmd+:} false; then :
4786: $as_echo_n "(cached) " >&6
4787: else
4788: #assume ordinary cross tools, or native build.
4789: lt_cv_to_tool_file_cmd=func_convert_file_noop
4790: case $host in
4791: *-*-mingw* )
4792: case $build in
4793: *-*-mingw* ) # actually msys
4794: lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4795: ;;
4796: esac
4797: ;;
4798: esac
4799:
4800: fi
4801:
4802: to_tool_file_cmd=$lt_cv_to_tool_file_cmd
4803: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
4804: $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
4805:
4806:
4807:
4808:
4809:
4810: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4811: $as_echo_n "checking for $LD option to reload object files... " >&6; }
4812: if ${lt_cv_ld_reload_flag+:} false; then :
4813: $as_echo_n "(cached) " >&6
4814: else
4815: lt_cv_ld_reload_flag='-r'
4816: fi
4817: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4818: $as_echo "$lt_cv_ld_reload_flag" >&6; }
4819: reload_flag=$lt_cv_ld_reload_flag
4820: case $reload_flag in
4821: "" | " "*) ;;
4822: *) reload_flag=" $reload_flag" ;;
4823: esac
4824: reload_cmds='$LD$reload_flag -o $output$reload_objs'
4825: case $host_os in
4826: cygwin* | mingw* | pw32* | cegcc*)
4827: if test "$GCC" != yes; then
4828: reload_cmds=false
4829: fi
4830: ;;
4831: darwin*)
4832: if test "$GCC" = yes; then
4833: reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4834: else
4835: reload_cmds='$LD$reload_flag -o $output$reload_objs'
4836: fi
4837: ;;
4838: esac
4839:
4840:
4841:
4842:
4843:
4844:
4845:
4846:
4847:
4848: if test -n "$ac_tool_prefix"; then
4849: # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4850: set dummy ${ac_tool_prefix}objdump; ac_word=$2
4851: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4852: $as_echo_n "checking for $ac_word... " >&6; }
4853: if ${ac_cv_prog_OBJDUMP+:} false; then :
4854: $as_echo_n "(cached) " >&6
4855: else
4856: if test -n "$OBJDUMP"; then
4857: ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4858: else
4859: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4860: for as_dir in $PATH
4861: do
4862: IFS=$as_save_IFS
4863: test -z "$as_dir" && as_dir=.
4864: for ac_exec_ext in '' $ac_executable_extensions; do
1.7 ! moko 4865: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.5 moko 4866: ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4867: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4868: break 2
4869: fi
4870: done
4871: done
4872: IFS=$as_save_IFS
4873:
4874: fi
4875: fi
4876: OBJDUMP=$ac_cv_prog_OBJDUMP
4877: if test -n "$OBJDUMP"; then
4878: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4879: $as_echo "$OBJDUMP" >&6; }
4880: else
4881: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4882: $as_echo "no" >&6; }
4883: fi
4884:
4885:
4886: fi
4887: if test -z "$ac_cv_prog_OBJDUMP"; then
4888: ac_ct_OBJDUMP=$OBJDUMP
4889: # Extract the first word of "objdump", so it can be a program name with args.
4890: set dummy objdump; ac_word=$2
4891: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4892: $as_echo_n "checking for $ac_word... " >&6; }
4893: if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
4894: $as_echo_n "(cached) " >&6
4895: else
4896: if test -n "$ac_ct_OBJDUMP"; then
4897: ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4898: else
4899: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4900: for as_dir in $PATH
4901: do
4902: IFS=$as_save_IFS
4903: test -z "$as_dir" && as_dir=.
4904: for ac_exec_ext in '' $ac_executable_extensions; do
1.7 ! moko 4905: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.5 moko 4906: ac_cv_prog_ac_ct_OBJDUMP="objdump"
4907: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4908: break 2
4909: fi
4910: done
4911: done
4912: IFS=$as_save_IFS
4913:
4914: fi
4915: fi
4916: ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4917: if test -n "$ac_ct_OBJDUMP"; then
4918: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4919: $as_echo "$ac_ct_OBJDUMP" >&6; }
4920: else
4921: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4922: $as_echo "no" >&6; }
4923: fi
4924:
4925: if test "x$ac_ct_OBJDUMP" = x; then
4926: OBJDUMP="false"
4927: else
4928: case $cross_compiling:$ac_tool_warned in
4929: yes:)
4930: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4931: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4932: ac_tool_warned=yes ;;
4933: esac
4934: OBJDUMP=$ac_ct_OBJDUMP
4935: fi
4936: else
4937: OBJDUMP="$ac_cv_prog_OBJDUMP"
1.4 paf 4938: fi
4939:
1.5 moko 4940: test -z "$OBJDUMP" && OBJDUMP=objdump
4941:
4942:
4943:
4944:
4945:
4946:
4947: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4948: $as_echo_n "checking how to recognize dependent libraries... " >&6; }
4949: if ${lt_cv_deplibs_check_method+:} false; then :
4950: $as_echo_n "(cached) " >&6
1.4 paf 4951: else
4952: lt_cv_file_magic_cmd='$MAGIC_CMD'
4953: lt_cv_file_magic_test_file=
4954: lt_cv_deplibs_check_method='unknown'
4955: # Need to set the preceding variable on all platforms that support
4956: # interlibrary dependencies.
4957: # 'none' -- dependencies not supported.
4958: # `unknown' -- same as none, but documents that we really don't know.
4959: # 'pass_all' -- all dependencies passed with no checks.
4960: # 'test_compile' -- check by making test program.
4961: # 'file_magic [[regex]]' -- check by looking for files in library path
1.5 moko 4962: # which responds to the $file_magic_cmd with a given extended regex.
1.4 paf 4963: # If you have `file' or equivalent on your system and you're not sure
4964: # whether `pass_all' will *always* work, you probably want this one.
4965:
4966: case $host_os in
1.5 moko 4967: aix[4-9]*)
1.4 paf 4968: lt_cv_deplibs_check_method=pass_all
4969: ;;
4970:
4971: beos*)
4972: lt_cv_deplibs_check_method=pass_all
4973: ;;
4974:
1.5 moko 4975: bsdi[45]*)
1.4 paf 4976: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4977: lt_cv_file_magic_cmd='/usr/bin/file -L'
4978: lt_cv_file_magic_test_file=/shlib/libc.so
4979: ;;
4980:
1.5 moko 4981: cygwin*)
4982: # func_win32_libid is a shell function defined in ltmain.sh
4983: lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4984: lt_cv_file_magic_cmd='func_win32_libid'
4985: ;;
4986:
4987: mingw* | pw32*)
4988: # Base MSYS/MinGW do not provide the 'file' command needed by
4989: # func_win32_libid shell function, so use a weaker test based on 'objdump',
4990: # unless we find 'file', for example because we are cross-compiling.
4991: # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
4992: if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
4993: lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4994: lt_cv_file_magic_cmd='func_win32_libid'
4995: else
4996: # Keep this pattern in sync with the one in func_win32_libid.
4997: lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
4998: lt_cv_file_magic_cmd='$OBJDUMP -f'
4999: fi
5000: ;;
5001:
5002: cegcc*)
5003: # use the weaker test based on 'objdump'. See mingw*.
5004: lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
1.4 paf 5005: lt_cv_file_magic_cmd='$OBJDUMP -f'
5006: ;;
5007:
5008: darwin* | rhapsody*)
1.5 moko 5009: lt_cv_deplibs_check_method=pass_all
1.4 paf 5010: ;;
5011:
1.5 moko 5012: freebsd* | dragonfly*)
5013: if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
1.4 paf 5014: case $host_cpu in
5015: i*86 )
5016: # Not sure whether the presence of OpenBSD here was a mistake.
5017: # Let's accept both of them until this is cleared up.
1.5 moko 5018: lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
1.4 paf 5019: lt_cv_file_magic_cmd=/usr/bin/file
5020: lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5021: ;;
5022: esac
5023: else
5024: lt_cv_deplibs_check_method=pass_all
5025: fi
5026: ;;
5027:
5028: gnu*)
5029: lt_cv_deplibs_check_method=pass_all
5030: ;;
5031:
1.5 moko 5032: haiku*)
5033: lt_cv_deplibs_check_method=pass_all
1.4 paf 5034: ;;
5035:
1.5 moko 5036: hpux10.20* | hpux11*)
5037: lt_cv_file_magic_cmd=/usr/bin/file
5038: case $host_cpu in
5039: ia64*)
5040: lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5041: lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5042: ;;
5043: hppa*64*)
5044: 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]'
5045: lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
1.4 paf 5046: ;;
5047: *)
1.5 moko 5048: lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5049: lt_cv_file_magic_test_file=/usr/lib/libc.sl
1.4 paf 5050: ;;
5051: esac
5052: ;;
5053:
1.5 moko 5054: interix[3-9]*)
5055: # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5056: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5057: ;;
5058:
5059: irix5* | irix6* | nonstopux*)
5060: case $LD in
5061: *-32|*"-32 ") libmagic=32-bit;;
5062: *-n32|*"-n32 ") libmagic=N32;;
5063: *-64|*"-64 ") libmagic=64-bit;;
5064: *) libmagic=never-match;;
5065: esac
5066: lt_cv_deplibs_check_method=pass_all
5067: ;;
5068:
5069: # This must be glibc/ELF.
5070: linux* | k*bsd*-gnu | kopensolaris*-gnu)
5071: lt_cv_deplibs_check_method=pass_all
1.4 paf 5072: ;;
5073:
5074: netbsd*)
1.5 moko 5075: if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5076: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
1.4 paf 5077: else
1.5 moko 5078: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
1.4 paf 5079: fi
5080: ;;
5081:
5082: newos6*)
5083: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5084: lt_cv_file_magic_cmd=/usr/bin/file
5085: lt_cv_file_magic_test_file=/usr/lib/libnls.so
5086: ;;
5087:
1.5 moko 5088: *nto* | *qnx*)
5089: lt_cv_deplibs_check_method=pass_all
5090: ;;
5091:
1.4 paf 5092: openbsd*)
1.5 moko 5093: if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5094: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
1.4 paf 5095: else
1.5 moko 5096: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
1.4 paf 5097: fi
5098: ;;
5099:
5100: osf3* | osf4* | osf5*)
5101: lt_cv_deplibs_check_method=pass_all
5102: ;;
5103:
1.5 moko 5104: rdos*)
1.4 paf 5105: lt_cv_deplibs_check_method=pass_all
5106: ;;
5107:
5108: solaris*)
5109: lt_cv_deplibs_check_method=pass_all
5110: ;;
5111:
1.5 moko 5112: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
1.4 paf 5113: lt_cv_deplibs_check_method=pass_all
5114: ;;
5115:
1.5 moko 5116: sysv4 | sysv4.3*)
1.4 paf 5117: case $host_vendor in
5118: motorola)
5119: 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]'
5120: lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5121: ;;
5122: ncr)
5123: lt_cv_deplibs_check_method=pass_all
5124: ;;
5125: sequent)
5126: lt_cv_file_magic_cmd='/bin/file'
5127: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5128: ;;
5129: sni)
5130: lt_cv_file_magic_cmd='/bin/file'
5131: lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5132: lt_cv_file_magic_test_file=/lib/libc.so
5133: ;;
5134: siemens)
5135: lt_cv_deplibs_check_method=pass_all
5136: ;;
1.5 moko 5137: pc)
5138: lt_cv_deplibs_check_method=pass_all
5139: ;;
1.4 paf 5140: esac
5141: ;;
1.5 moko 5142:
5143: tpf*)
5144: lt_cv_deplibs_check_method=pass_all
5145: ;;
1.4 paf 5146: esac
5147:
5148: fi
1.5 moko 5149: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5150: $as_echo "$lt_cv_deplibs_check_method" >&6; }
5151:
5152: file_magic_glob=
5153: want_nocaseglob=no
5154: if test "$build" = "$host"; then
5155: case $host_os in
5156: mingw* | pw32*)
5157: if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5158: want_nocaseglob=yes
5159: else
5160: file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5161: fi
5162: ;;
5163: esac
5164: fi
5165:
1.4 paf 5166: file_magic_cmd=$lt_cv_file_magic_cmd
5167: deplibs_check_method=$lt_cv_deplibs_check_method
1.5 moko 5168: test -z "$deplibs_check_method" && deplibs_check_method=unknown
1.4 paf 5169:
5170:
5171:
5172:
5173:
5174:
5175:
5176:
5177:
5178:
5179:
5180:
5181:
5182:
5183:
5184:
5185:
5186:
5187:
5188:
5189:
5190:
1.5 moko 5191: if test -n "$ac_tool_prefix"; then
5192: # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5193: set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5194: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5195: $as_echo_n "checking for $ac_word... " >&6; }
5196: if ${ac_cv_prog_DLLTOOL+:} false; then :
5197: $as_echo_n "(cached) " >&6
5198: else
5199: if test -n "$DLLTOOL"; then
5200: ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5201: else
5202: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5203: for as_dir in $PATH
5204: do
5205: IFS=$as_save_IFS
5206: test -z "$as_dir" && as_dir=.
5207: for ac_exec_ext in '' $ac_executable_extensions; do
1.7 ! moko 5208: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.5 moko 5209: ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5210: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5211: break 2
1.4 paf 5212: fi
5213: done
1.5 moko 5214: done
5215: IFS=$as_save_IFS
1.4 paf 5216:
5217: fi
5218: fi
1.5 moko 5219: DLLTOOL=$ac_cv_prog_DLLTOOL
5220: if test -n "$DLLTOOL"; then
5221: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5222: $as_echo "$DLLTOOL" >&6; }
1.4 paf 5223: else
1.5 moko 5224: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5225: $as_echo "no" >&6; }
1.4 paf 5226: fi
5227:
1.5 moko 5228:
1.4 paf 5229: fi
1.5 moko 5230: if test -z "$ac_cv_prog_DLLTOOL"; then
5231: ac_ct_DLLTOOL=$DLLTOOL
5232: # Extract the first word of "dlltool", so it can be a program name with args.
5233: set dummy dlltool; ac_word=$2
5234: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5235: $as_echo_n "checking for $ac_word... " >&6; }
5236: if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5237: $as_echo_n "(cached) " >&6
5238: else
5239: if test -n "$ac_ct_DLLTOOL"; then
5240: ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
1.4 paf 5241: else
1.5 moko 5242: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5243: for as_dir in $PATH
1.4 paf 5244: do
1.5 moko 5245: IFS=$as_save_IFS
5246: test -z "$as_dir" && as_dir=.
5247: for ac_exec_ext in '' $ac_executable_extensions; do
1.7 ! moko 5248: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.5 moko 5249: ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5250: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5251: break 2
1.4 paf 5252: fi
1.5 moko 5253: done
5254: done
5255: IFS=$as_save_IFS
5256:
5257: fi
1.4 paf 5258: fi
1.5 moko 5259: ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5260: if test -n "$ac_ct_DLLTOOL"; then
5261: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5262: $as_echo "$ac_ct_DLLTOOL" >&6; }
1.4 paf 5263: else
1.5 moko 5264: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5265: $as_echo "no" >&6; }
1.4 paf 5266: fi
5267:
1.5 moko 5268: if test "x$ac_ct_DLLTOOL" = x; then
5269: DLLTOOL="false"
1.4 paf 5270: else
1.5 moko 5271: case $cross_compiling:$ac_tool_warned in
5272: yes:)
5273: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5274: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5275: ac_tool_warned=yes ;;
5276: esac
5277: DLLTOOL=$ac_ct_DLLTOOL
1.4 paf 5278: fi
5279: else
1.5 moko 5280: DLLTOOL="$ac_cv_prog_DLLTOOL"
1.4 paf 5281: fi
1.5 moko 5282:
5283: test -z "$DLLTOOL" && DLLTOOL=dlltool
5284:
5285:
5286:
5287:
5288:
5289:
5290:
5291: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5292: $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5293: if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5294: $as_echo_n "(cached) " >&6
1.4 paf 5295: else
1.5 moko 5296: lt_cv_sharedlib_from_linklib_cmd='unknown'
5297:
5298: case $host_os in
5299: cygwin* | mingw* | pw32* | cegcc*)
5300: # two different shell functions defined in ltmain.sh
5301: # decide which to use based on capabilities of $DLLTOOL
5302: case `$DLLTOOL --help 2>&1` in
5303: *--identify-strict*)
5304: lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5305: ;;
5306: *)
5307: lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5308: ;;
5309: esac
5310: ;;
5311: *)
5312: # fallback: assume linklib IS sharedlib
5313: lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5314: ;;
5315: esac
1.4 paf 5316:
5317: fi
1.5 moko 5318: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5319: $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5320: sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5321: test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5322:
5323:
5324:
5325:
5326:
1.4 paf 5327:
5328:
5329:
1.5 moko 5330: if test -n "$ac_tool_prefix"; then
5331: for ac_prog in ar
5332: do
5333: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5334: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5335: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5336: $as_echo_n "checking for $ac_word... " >&6; }
5337: if ${ac_cv_prog_AR+:} false; then :
5338: $as_echo_n "(cached) " >&6
5339: else
5340: if test -n "$AR"; then
5341: ac_cv_prog_AR="$AR" # Let the user override the test.
1.4 paf 5342: else
1.5 moko 5343: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5344: for as_dir in $PATH
5345: do
5346: IFS=$as_save_IFS
5347: test -z "$as_dir" && as_dir=.
5348: for ac_exec_ext in '' $ac_executable_extensions; do
1.7 ! moko 5349: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.5 moko 5350: ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5351: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5352: break 2
5353: fi
5354: done
5355: done
5356: IFS=$as_save_IFS
5357:
5358: fi
5359: fi
5360: AR=$ac_cv_prog_AR
5361: if test -n "$AR"; then
5362: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5363: $as_echo "$AR" >&6; }
5364: else
5365: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5366: $as_echo "no" >&6; }
5367: fi
5368:
5369:
5370: test -n "$AR" && break
5371: done
1.4 paf 5372: fi
1.5 moko 5373: if test -z "$AR"; then
5374: ac_ct_AR=$AR
5375: for ac_prog in ar
5376: do
5377: # Extract the first word of "$ac_prog", so it can be a program name with args.
5378: set dummy $ac_prog; ac_word=$2
5379: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5380: $as_echo_n "checking for $ac_word... " >&6; }
5381: if ${ac_cv_prog_ac_ct_AR+:} false; then :
5382: $as_echo_n "(cached) " >&6
5383: else
5384: if test -n "$ac_ct_AR"; then
5385: ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5386: else
5387: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5388: for as_dir in $PATH
1.4 paf 5389: do
1.5 moko 5390: IFS=$as_save_IFS
5391: test -z "$as_dir" && as_dir=.
5392: for ac_exec_ext in '' $ac_executable_extensions; do
1.7 ! moko 5393: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.5 moko 5394: ac_cv_prog_ac_ct_AR="$ac_prog"
5395: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5396: break 2
1.4 paf 5397: fi
1.5 moko 5398: done
5399: done
5400: IFS=$as_save_IFS
5401:
5402: fi
5403: fi
5404: ac_ct_AR=$ac_cv_prog_ac_ct_AR
5405: if test -n "$ac_ct_AR"; then
5406: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5407: $as_echo "$ac_ct_AR" >&6; }
1.4 paf 5408: else
1.5 moko 5409: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5410: $as_echo "no" >&6; }
1.4 paf 5411: fi
5412:
5413:
1.5 moko 5414: test -n "$ac_ct_AR" && break
5415: done
5416:
5417: if test "x$ac_ct_AR" = x; then
5418: AR="false"
1.4 paf 5419: else
1.5 moko 5420: case $cross_compiling:$ac_tool_warned in
5421: yes:)
5422: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5423: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5424: ac_tool_warned=yes ;;
5425: esac
5426: AR=$ac_ct_AR
1.4 paf 5427: fi
5428: fi
5429:
1.5 moko 5430: : ${AR=ar}
5431: : ${AR_FLAGS=cru}
5432:
5433:
5434:
5435:
5436:
1.4 paf 5437:
5438:
5439:
5440:
5441:
5442:
1.5 moko 5443: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5444: $as_echo_n "checking for archiver @FILE support... " >&6; }
5445: if ${lt_cv_ar_at_file+:} false; then :
5446: $as_echo_n "(cached) " >&6
1.4 paf 5447: else
1.5 moko 5448: lt_cv_ar_at_file=no
5449: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.4 paf 5450: /* end confdefs.h. */
5451:
5452: int
5453: main ()
5454: {
5455:
5456: ;
5457: return 0;
5458: }
5459: _ACEOF
1.5 moko 5460: if ac_fn_c_try_compile "$LINENO"; then :
5461: echo conftest.$ac_objext > conftest.lst
5462: lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5463: { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5464: (eval $lt_ar_try) 2>&5
5465: ac_status=$?
5466: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5467: test $ac_status = 0; }
5468: if test "$ac_status" -eq 0; then
5469: # Ensure the archiver fails upon bogus file names.
5470: rm -f conftest.$ac_objext libconftest.a
5471: { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5472: (eval $lt_ar_try) 2>&5
5473: ac_status=$?
5474: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5475: test $ac_status = 0; }
5476: if test "$ac_status" -ne 0; then
5477: lt_cv_ar_at_file=@
5478: fi
5479: fi
5480: rm -f conftest.* libconftest.a
1.4 paf 5481:
5482: fi
1.5 moko 5483: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.4 paf 5484:
1.5 moko 5485: fi
5486: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5487: $as_echo "$lt_cv_ar_at_file" >&6; }
1.4 paf 5488:
1.5 moko 5489: if test "x$lt_cv_ar_at_file" = xno; then
5490: archiver_list_spec=
1.4 paf 5491: else
1.5 moko 5492: archiver_list_spec=$lt_cv_ar_at_file
1.4 paf 5493: fi
5494:
5495:
5496:
5497:
5498:
1.5 moko 5499:
5500:
5501: if test -n "$ac_tool_prefix"; then
5502: # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5503: set dummy ${ac_tool_prefix}strip; ac_word=$2
5504: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5505: $as_echo_n "checking for $ac_word... " >&6; }
5506: if ${ac_cv_prog_STRIP+:} false; then :
5507: $as_echo_n "(cached) " >&6
1.4 paf 5508: else
1.5 moko 5509: if test -n "$STRIP"; then
5510: ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1.4 paf 5511: else
1.5 moko 5512: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5513: for as_dir in $PATH
5514: do
5515: IFS=$as_save_IFS
5516: test -z "$as_dir" && as_dir=.
5517: for ac_exec_ext in '' $ac_executable_extensions; do
1.7 ! moko 5518: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.5 moko 5519: ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5520: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5521: break 2
5522: fi
5523: done
5524: done
5525: IFS=$as_save_IFS
1.4 paf 5526:
5527: fi
5528: fi
1.5 moko 5529: STRIP=$ac_cv_prog_STRIP
5530: if test -n "$STRIP"; then
5531: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5532: $as_echo "$STRIP" >&6; }
5533: else
5534: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5535: $as_echo "no" >&6; }
1.4 paf 5536: fi
5537:
5538:
5539: fi
1.5 moko 5540: if test -z "$ac_cv_prog_STRIP"; then
5541: ac_ct_STRIP=$STRIP
5542: # Extract the first word of "strip", so it can be a program name with args.
5543: set dummy strip; ac_word=$2
5544: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5545: $as_echo_n "checking for $ac_word... " >&6; }
5546: if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5547: $as_echo_n "(cached) " >&6
5548: else
5549: if test -n "$ac_ct_STRIP"; then
5550: ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5551: else
5552: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5553: for as_dir in $PATH
5554: do
5555: IFS=$as_save_IFS
5556: test -z "$as_dir" && as_dir=.
5557: for ac_exec_ext in '' $ac_executable_extensions; do
1.7 ! moko 5558: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.5 moko 5559: ac_cv_prog_ac_ct_STRIP="strip"
5560: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5561: break 2
5562: fi
5563: done
5564: done
5565: IFS=$as_save_IFS
1.4 paf 5566:
1.5 moko 5567: fi
5568: fi
5569: ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5570: if test -n "$ac_ct_STRIP"; then
5571: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5572: $as_echo "$ac_ct_STRIP" >&6; }
5573: else
5574: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5575: $as_echo "no" >&6; }
5576: fi
1.4 paf 5577:
1.5 moko 5578: if test "x$ac_ct_STRIP" = x; then
5579: STRIP=":"
5580: else
5581: case $cross_compiling:$ac_tool_warned in
5582: yes:)
5583: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5584: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5585: ac_tool_warned=yes ;;
5586: esac
5587: STRIP=$ac_ct_STRIP
5588: fi
5589: else
5590: STRIP="$ac_cv_prog_STRIP"
5591: fi
1.4 paf 5592:
1.5 moko 5593: test -z "$STRIP" && STRIP=:
1.4 paf 5594:
5595:
5596:
5597:
5598:
5599:
1.5 moko 5600: if test -n "$ac_tool_prefix"; then
5601: # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5602: set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5603: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5604: $as_echo_n "checking for $ac_word... " >&6; }
5605: if ${ac_cv_prog_RANLIB+:} false; then :
5606: $as_echo_n "(cached) " >&6
1.4 paf 5607: else
1.5 moko 5608: if test -n "$RANLIB"; then
5609: ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1.4 paf 5610: else
1.5 moko 5611: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5612: for as_dir in $PATH
5613: do
5614: IFS=$as_save_IFS
5615: test -z "$as_dir" && as_dir=.
5616: for ac_exec_ext in '' $ac_executable_extensions; do
1.7 ! moko 5617: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.5 moko 5618: ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5619: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5620: break 2
5621: fi
5622: done
5623: done
5624: IFS=$as_save_IFS
1.4 paf 5625:
5626: fi
5627: fi
1.5 moko 5628: RANLIB=$ac_cv_prog_RANLIB
5629: if test -n "$RANLIB"; then
5630: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5631: $as_echo "$RANLIB" >&6; }
5632: else
5633: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5634: $as_echo "no" >&6; }
1.4 paf 5635: fi
5636:
5637:
5638: fi
5639: if test -z "$ac_cv_prog_RANLIB"; then
5640: ac_ct_RANLIB=$RANLIB
5641: # Extract the first word of "ranlib", so it can be a program name with args.
5642: set dummy ranlib; ac_word=$2
1.5 moko 5643: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5644: $as_echo_n "checking for $ac_word... " >&6; }
5645: if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5646: $as_echo_n "(cached) " >&6
1.4 paf 5647: else
5648: if test -n "$ac_ct_RANLIB"; then
5649: ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5650: else
5651: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5652: for as_dir in $PATH
5653: do
5654: IFS=$as_save_IFS
5655: test -z "$as_dir" && as_dir=.
1.5 moko 5656: for ac_exec_ext in '' $ac_executable_extensions; do
1.7 ! moko 5657: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.4 paf 5658: ac_cv_prog_ac_ct_RANLIB="ranlib"
1.5 moko 5659: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.4 paf 5660: break 2
5661: fi
5662: done
1.5 moko 5663: done
5664: IFS=$as_save_IFS
1.4 paf 5665:
5666: fi
5667: fi
5668: ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5669: if test -n "$ac_ct_RANLIB"; then
1.5 moko 5670: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5671: $as_echo "$ac_ct_RANLIB" >&6; }
1.4 paf 5672: else
1.5 moko 5673: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5674: $as_echo "no" >&6; }
1.4 paf 5675: fi
5676:
1.5 moko 5677: if test "x$ac_ct_RANLIB" = x; then
5678: RANLIB=":"
5679: else
5680: case $cross_compiling:$ac_tool_warned in
5681: yes:)
5682: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5683: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5684: ac_tool_warned=yes ;;
5685: esac
5686: RANLIB=$ac_ct_RANLIB
5687: fi
1.4 paf 5688: else
5689: RANLIB="$ac_cv_prog_RANLIB"
5690: fi
5691:
1.5 moko 5692: test -z "$RANLIB" && RANLIB=:
5693:
5694:
5695:
5696:
5697:
5698:
5699: # Determine commands to create old-style static archives.
5700: old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5701: old_postinstall_cmds='chmod 644 $oldlib'
5702: old_postuninstall_cmds=
1.4 paf 5703:
1.5 moko 5704: if test -n "$RANLIB"; then
5705: case $host_os in
5706: openbsd*)
5707: old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
5708: ;;
5709: *)
5710: old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
5711: ;;
5712: esac
5713: old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
1.4 paf 5714: fi
5715:
1.5 moko 5716: case $host_os in
5717: darwin*)
5718: lock_old_archive_extraction=yes ;;
5719: *)
5720: lock_old_archive_extraction=no ;;
5721: esac
5722:
1.4 paf 5723:
5724:
5725:
5726:
5727:
5728:
5729:
5730:
5731:
5732:
5733:
5734:
5735:
5736:
5737:
5738:
5739:
5740:
5741:
5742:
5743:
5744:
5745:
5746:
5747:
5748:
5749:
5750:
5751:
5752:
5753:
5754:
5755:
5756:
5757:
5758:
5759:
5760:
1.5 moko 5761: # If no C compiler was specified, use CC.
5762: LTCC=${LTCC-"$CC"}
1.4 paf 5763:
1.5 moko 5764: # If no C compiler flags were specified, use CFLAGS.
5765: LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
1.4 paf 5766:
1.5 moko 5767: # Allow CC to be a program name with arguments.
5768: compiler=$CC
1.4 paf 5769:
5770:
1.5 moko 5771: # Check for command to grab the raw symbol name followed by C symbol from nm.
5772: { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5773: $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5774: if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5775: $as_echo_n "(cached) " >&6
5776: else
1.4 paf 5777:
1.5 moko 5778: # These are sane defaults that work on at least a few old systems.
5779: # [They come from Ultrix. What could be older than Ultrix?!! ;)]
1.4 paf 5780:
1.5 moko 5781: # Character class describing NM global symbol codes.
5782: symcode='[BCDEGRST]'
1.4 paf 5783:
1.5 moko 5784: # Regexp to match symbols that can be accessed directly from C.
5785: sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
1.4 paf 5786:
1.5 moko 5787: # Define system-specific variables.
5788: case $host_os in
5789: aix*)
5790: symcode='[BCDT]'
5791: ;;
5792: cygwin* | mingw* | pw32* | cegcc*)
5793: symcode='[ABCDGISTW]'
5794: ;;
5795: hpux*)
5796: if test "$host_cpu" = ia64; then
5797: symcode='[ABCDEGRST]'
5798: fi
5799: ;;
5800: irix* | nonstopux*)
5801: symcode='[BCDEGRST]'
5802: ;;
5803: osf*)
5804: symcode='[BCDEGQRST]'
5805: ;;
5806: solaris*)
5807: symcode='[BDRT]'
5808: ;;
5809: sco3.2v5*)
5810: symcode='[DT]'
5811: ;;
5812: sysv4.2uw2*)
5813: symcode='[DT]'
5814: ;;
5815: sysv5* | sco5v6* | unixware* | OpenUNIX*)
5816: symcode='[ABDT]'
5817: ;;
5818: sysv4)
5819: symcode='[DFNSTU]'
5820: ;;
5821: esac
1.4 paf 5822:
1.5 moko 5823: # If we're using GNU nm, then use its standard symbol codes.
5824: case `$NM -V 2>&1` in
5825: *GNU* | *'with BFD'*)
5826: symcode='[ABCDGIRSTW]' ;;
5827: esac
1.4 paf 5828:
1.5 moko 5829: # Transform an extracted symbol line into a proper C declaration.
5830: # Some systems (esp. on ia64) link data and code symbols differently,
5831: # so use this general approach.
5832: lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
1.4 paf 5833:
1.5 moko 5834: # Transform an extracted symbol line into symbol name and symbol address
5835: lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5836: lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
1.4 paf 5837:
1.5 moko 5838: # Handle CRLF in mingw tool chain
5839: opt_cr=
5840: case $build_os in
5841: mingw*)
5842: opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5843: ;;
5844: esac
1.4 paf 5845:
1.5 moko 5846: # Try without a prefix underscore, then with it.
5847: for ac_symprfx in "" "_"; do
1.4 paf 5848:
1.5 moko 5849: # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5850: symxfrm="\\1 $ac_symprfx\\2 \\2"
1.4 paf 5851:
1.5 moko 5852: # Write the raw and C identifiers.
5853: if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5854: # Fake it for dumpbin and say T for any non-static function
5855: # and D for any global variable.
5856: # Also find C++ and __fastcall symbols from MSVC++,
5857: # which start with @ or ?.
5858: lt_cv_sys_global_symbol_pipe="$AWK '"\
5859: " {last_section=section; section=\$ 3};"\
5860: " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
5861: " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5862: " \$ 0!~/External *\|/{next};"\
5863: " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5864: " {if(hide[section]) next};"\
5865: " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5866: " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5867: " s[1]~/^[@?]/{print s[1], s[1]; next};"\
5868: " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5869: " ' prfx=^$ac_symprfx"
5870: else
5871: lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5872: fi
5873: lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
1.4 paf 5874:
1.5 moko 5875: # Check to see that the pipe works correctly.
5876: pipe_works=no
1.4 paf 5877:
1.5 moko 5878: rm -f conftest*
5879: cat > conftest.$ac_ext <<_LT_EOF
5880: #ifdef __cplusplus
5881: extern "C" {
5882: #endif
5883: char nm_test_var;
5884: void nm_test_func(void);
5885: void nm_test_func(void){}
5886: #ifdef __cplusplus
1.4 paf 5887: }
1.5 moko 5888: #endif
5889: int main(){nm_test_var='a';nm_test_func();return(0);}
5890: _LT_EOF
5891:
5892: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1.4 paf 5893: (eval $ac_compile) 2>&5
5894: ac_status=$?
1.5 moko 5895: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5896: test $ac_status = 0; }; then
5897: # Now try to grab the symbols.
5898: nlist=conftest.nm
5899: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
5900: (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
1.4 paf 5901: ac_status=$?
1.5 moko 5902: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5903: test $ac_status = 0; } && test -s "$nlist"; then
5904: # Try sorting and uniquifying the output.
5905: if sort "$nlist" | uniq > "$nlist"T; then
5906: mv -f "$nlist"T "$nlist"
5907: else
5908: rm -f "$nlist"T
5909: fi
5910:
5911: # Make sure that we snagged all the symbols we need.
5912: if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5913: if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5914: cat <<_LT_EOF > conftest.$ac_ext
5915: /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
5916: #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
5917: /* DATA imports from DLLs on WIN32 con't be const, because runtime
5918: relocations are performed -- see ld's documentation on pseudo-relocs. */
5919: # define LT_DLSYM_CONST
5920: #elif defined(__osf__)
5921: /* This system does not cope well with relocations in const data. */
5922: # define LT_DLSYM_CONST
5923: #else
5924: # define LT_DLSYM_CONST const
5925: #endif
1.4 paf 5926:
1.5 moko 5927: #ifdef __cplusplus
5928: extern "C" {
5929: #endif
1.4 paf 5930:
1.5 moko 5931: _LT_EOF
5932: # Now generate the symbol file.
5933: eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
1.4 paf 5934:
1.5 moko 5935: cat <<_LT_EOF >> conftest.$ac_ext
1.4 paf 5936:
1.5 moko 5937: /* The mapping between symbol names and symbols. */
5938: LT_DLSYM_CONST struct {
5939: const char *name;
5940: void *address;
5941: }
5942: lt__PROGRAM__LTX_preloaded_symbols[] =
5943: {
5944: { "@PROGRAM@", (void *) 0 },
5945: _LT_EOF
5946: $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5947: cat <<\_LT_EOF >> conftest.$ac_ext
5948: {0, (void *) 0}
5949: };
1.4 paf 5950:
1.5 moko 5951: /* This works around a problem in FreeBSD linker */
5952: #ifdef FREEBSD_WORKAROUND
5953: static const void *lt_preloaded_setup() {
5954: return lt__PROGRAM__LTX_preloaded_symbols;
5955: }
5956: #endif
1.4 paf 5957:
1.5 moko 5958: #ifdef __cplusplus
5959: }
5960: #endif
5961: _LT_EOF
5962: # Now try linking the two files.
5963: mv conftest.$ac_objext conftstm.$ac_objext
5964: lt_globsym_save_LIBS=$LIBS
5965: lt_globsym_save_CFLAGS=$CFLAGS
5966: LIBS="conftstm.$ac_objext"
5967: CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5968: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5969: (eval $ac_link) 2>&5
5970: ac_status=$?
5971: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5972: test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5973: pipe_works=yes
5974: fi
5975: LIBS=$lt_globsym_save_LIBS
5976: CFLAGS=$lt_globsym_save_CFLAGS
5977: else
5978: echo "cannot find nm_test_func in $nlist" >&5
5979: fi
5980: else
5981: echo "cannot find nm_test_var in $nlist" >&5
5982: fi
5983: else
5984: echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5985: fi
1.4 paf 5986: else
1.5 moko 5987: echo "$progname: failed program was:" >&5
5988: cat conftest.$ac_ext >&5
1.4 paf 5989: fi
1.5 moko 5990: rm -rf conftest* conftst*
1.4 paf 5991:
1.5 moko 5992: # Do not use the global_symbol_pipe unless it works.
5993: if test "$pipe_works" = yes; then
5994: break
1.4 paf 5995: else
1.5 moko 5996: lt_cv_sys_global_symbol_pipe=
1.4 paf 5997: fi
1.5 moko 5998: done
5999:
1.4 paf 6000: fi
6001:
1.5 moko 6002: if test -z "$lt_cv_sys_global_symbol_pipe"; then
6003: lt_cv_sys_global_symbol_to_cdecl=
6004: fi
6005: if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6006: { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6007: $as_echo "failed" >&6; }
1.4 paf 6008: else
1.5 moko 6009: { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6010: $as_echo "ok" >&6; }
6011: fi
6012:
6013: # Response file support.
6014: if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6015: nm_file_list_spec='@'
6016: elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6017: nm_file_list_spec='@'
6018: fi
6019:
6020:
1.4 paf 6021:
6022:
6023:
6024:
6025:
6026:
6027:
6028:
6029:
6030:
6031:
6032:
6033:
6034:
6035:
6036:
6037:
6038:
6039:
6040:
6041:
6042:
6043:
6044:
6045:
1.5 moko 6046: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6047: $as_echo_n "checking for sysroot... " >&6; }
1.4 paf 6048:
1.5 moko 6049: # Check whether --with-sysroot was given.
6050: if test "${with_sysroot+set}" = set; then :
6051: withval=$with_sysroot;
6052: else
6053: with_sysroot=no
6054: fi
1.4 paf 6055:
6056:
1.5 moko 6057: lt_sysroot=
6058: case ${with_sysroot} in #(
6059: yes)
6060: if test "$GCC" = yes; then
6061: lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6062: fi
6063: ;; #(
6064: /*)
6065: lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6066: ;; #(
6067: no|'')
6068: ;; #(
6069: *)
6070: { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6071: $as_echo "${with_sysroot}" >&6; }
6072: as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6073: ;;
6074: esac
1.4 paf 6075:
1.5 moko 6076: { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6077: $as_echo "${lt_sysroot:-no}" >&6; }
1.4 paf 6078:
6079:
6080:
6081:
6082:
1.5 moko 6083: # Check whether --enable-libtool-lock was given.
6084: if test "${enable_libtool_lock+set}" = set; then :
6085: enableval=$enable_libtool_lock;
6086: fi
1.4 paf 6087:
1.5 moko 6088: test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
1.4 paf 6089:
1.5 moko 6090: # Some flags need to be propagated to the compiler or linker for good
6091: # libtool support.
6092: case $host in
6093: ia64-*-hpux*)
6094: # Find out which ABI we are using.
6095: echo 'int i;' > conftest.$ac_ext
6096: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6097: (eval $ac_compile) 2>&5
6098: ac_status=$?
6099: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6100: test $ac_status = 0; }; then
6101: case `/usr/bin/file conftest.$ac_objext` in
6102: *ELF-32*)
6103: HPUX_IA64_MODE="32"
6104: ;;
6105: *ELF-64*)
6106: HPUX_IA64_MODE="64"
6107: ;;
1.4 paf 6108: esac
6109: fi
1.5 moko 6110: rm -rf conftest*
6111: ;;
6112: *-*-irix6*)
6113: # Find out which ABI we are using.
6114: echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6115: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6116: (eval $ac_compile) 2>&5
6117: ac_status=$?
6118: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6119: test $ac_status = 0; }; then
6120: if test "$lt_cv_prog_gnu_ld" = yes; then
6121: case `/usr/bin/file conftest.$ac_objext` in
6122: *32-bit*)
6123: LD="${LD-ld} -melf32bsmip"
6124: ;;
6125: *N32*)
6126: LD="${LD-ld} -melf32bmipn32"
6127: ;;
6128: *64-bit*)
6129: LD="${LD-ld} -melf64bmip"
6130: ;;
6131: esac
1.4 paf 6132: else
1.5 moko 6133: case `/usr/bin/file conftest.$ac_objext` in
6134: *32-bit*)
6135: LD="${LD-ld} -32"
6136: ;;
6137: *N32*)
6138: LD="${LD-ld} -n32"
6139: ;;
6140: *64-bit*)
6141: LD="${LD-ld} -64"
1.4 paf 6142: ;;
6143: esac
1.5 moko 6144: fi
6145: fi
6146: rm -rf conftest*
6147: ;;
1.4 paf 6148:
1.5 moko 6149: x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6150: s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6151: # Find out which ABI we are using.
6152: echo 'int i;' > conftest.$ac_ext
6153: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6154: (eval $ac_compile) 2>&5
6155: ac_status=$?
6156: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6157: test $ac_status = 0; }; then
6158: case `/usr/bin/file conftest.o` in
6159: *32-bit*)
6160: case $host in
6161: x86_64-*kfreebsd*-gnu)
6162: LD="${LD-ld} -m elf_i386_fbsd"
6163: ;;
6164: x86_64-*linux*)
6165: LD="${LD-ld} -m elf_i386"
6166: ;;
6167: ppc64-*linux*|powerpc64-*linux*)
6168: LD="${LD-ld} -m elf32ppclinux"
6169: ;;
6170: s390x-*linux*)
6171: LD="${LD-ld} -m elf_s390"
6172: ;;
6173: sparc64-*linux*)
6174: LD="${LD-ld} -m elf32_sparc"
6175: ;;
6176: esac
6177: ;;
6178: *64-bit*)
6179: case $host in
6180: x86_64-*kfreebsd*-gnu)
6181: LD="${LD-ld} -m elf_x86_64_fbsd"
6182: ;;
6183: x86_64-*linux*)
6184: LD="${LD-ld} -m elf_x86_64"
6185: ;;
6186: ppc*-*linux*|powerpc*-*linux*)
6187: LD="${LD-ld} -m elf64ppc"
6188: ;;
6189: s390*-*linux*|s390*-*tpf*)
6190: LD="${LD-ld} -m elf64_s390"
6191: ;;
6192: sparc*-*linux*)
6193: LD="${LD-ld} -m elf64_sparc"
6194: ;;
6195: esac
6196: ;;
6197: esac
6198: fi
6199: rm -rf conftest*
6200: ;;
1.4 paf 6201:
1.5 moko 6202: *-*-sco3.2v5*)
6203: # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6204: SAVE_CFLAGS="$CFLAGS"
6205: CFLAGS="$CFLAGS -belf"
6206: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6207: $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6208: if ${lt_cv_cc_needs_belf+:} false; then :
6209: $as_echo_n "(cached) " >&6
6210: else
6211: ac_ext=c
6212: ac_cpp='$CPP $CPPFLAGS'
6213: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6214: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6215: ac_compiler_gnu=$ac_cv_c_compiler_gnu
6216:
6217: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6218: /* end confdefs.h. */
6219:
6220: int
6221: main ()
6222: {
6223:
6224: ;
6225: return 0;
6226: }
6227: _ACEOF
6228: if ac_fn_c_try_link "$LINENO"; then :
6229: lt_cv_cc_needs_belf=yes
6230: else
6231: lt_cv_cc_needs_belf=no
6232: fi
6233: rm -f core conftest.err conftest.$ac_objext \
6234: conftest$ac_exeext conftest.$ac_ext
6235: ac_ext=c
6236: ac_cpp='$CPP $CPPFLAGS'
6237: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6238: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6239: ac_compiler_gnu=$ac_cv_c_compiler_gnu
6240:
6241: fi
6242: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6243: $as_echo "$lt_cv_cc_needs_belf" >&6; }
6244: if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6245: # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6246: CFLAGS="$SAVE_CFLAGS"
6247: fi
6248: ;;
6249: *-*solaris*)
6250: # Find out which ABI we are using.
6251: echo 'int i;' > conftest.$ac_ext
6252: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6253: (eval $ac_compile) 2>&5
6254: ac_status=$?
6255: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6256: test $ac_status = 0; }; then
6257: case `/usr/bin/file conftest.o` in
6258: *64-bit*)
6259: case $lt_cv_prog_gnu_ld in
6260: yes*)
6261: case $host in
6262: i?86-*-solaris*)
6263: LD="${LD-ld} -m elf_x86_64"
6264: ;;
6265: sparc*-*-solaris*)
6266: LD="${LD-ld} -m elf64_sparc"
6267: ;;
6268: esac
6269: # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6270: if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6271: LD="${LD-ld}_sol2"
6272: fi
6273: ;;
6274: *)
6275: if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6276: LD="${LD-ld} -64"
6277: fi
6278: ;;
6279: esac
6280: ;;
6281: esac
6282: fi
6283: rm -rf conftest*
6284: ;;
6285: esac
6286:
6287: need_locks="$enable_libtool_lock"
6288:
6289: if test -n "$ac_tool_prefix"; then
6290: # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6291: set dummy ${ac_tool_prefix}mt; ac_word=$2
6292: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6293: $as_echo_n "checking for $ac_word... " >&6; }
6294: if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6295: $as_echo_n "(cached) " >&6
6296: else
6297: if test -n "$MANIFEST_TOOL"; then
6298: ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6299: else
6300: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6301: for as_dir in $PATH
6302: do
6303: IFS=$as_save_IFS
6304: test -z "$as_dir" && as_dir=.
6305: for ac_exec_ext in '' $ac_executable_extensions; do
1.7 ! moko 6306: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.5 moko 6307: ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6308: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6309: break 2
6310: fi
6311: done
6312: done
6313: IFS=$as_save_IFS
6314:
6315: fi
6316: fi
6317: MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6318: if test -n "$MANIFEST_TOOL"; then
6319: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6320: $as_echo "$MANIFEST_TOOL" >&6; }
6321: else
6322: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6323: $as_echo "no" >&6; }
6324: fi
6325:
6326:
6327: fi
6328: if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6329: ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6330: # Extract the first word of "mt", so it can be a program name with args.
6331: set dummy mt; ac_word=$2
6332: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6333: $as_echo_n "checking for $ac_word... " >&6; }
6334: if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6335: $as_echo_n "(cached) " >&6
6336: else
6337: if test -n "$ac_ct_MANIFEST_TOOL"; then
6338: ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6339: else
6340: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6341: for as_dir in $PATH
6342: do
6343: IFS=$as_save_IFS
6344: test -z "$as_dir" && as_dir=.
6345: for ac_exec_ext in '' $ac_executable_extensions; do
1.7 ! moko 6346: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.5 moko 6347: ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6348: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6349: break 2
6350: fi
6351: done
6352: done
6353: IFS=$as_save_IFS
6354:
6355: fi
6356: fi
6357: ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6358: if test -n "$ac_ct_MANIFEST_TOOL"; then
6359: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6360: $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6361: else
6362: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6363: $as_echo "no" >&6; }
6364: fi
6365:
6366: if test "x$ac_ct_MANIFEST_TOOL" = x; then
6367: MANIFEST_TOOL=":"
6368: else
6369: case $cross_compiling:$ac_tool_warned in
6370: yes:)
6371: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6372: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6373: ac_tool_warned=yes ;;
6374: esac
6375: MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6376: fi
6377: else
6378: MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6379: fi
6380:
6381: test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6382: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6383: $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6384: if ${lt_cv_path_mainfest_tool+:} false; then :
6385: $as_echo_n "(cached) " >&6
6386: else
6387: lt_cv_path_mainfest_tool=no
6388: echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6389: $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6390: cat conftest.err >&5
6391: if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6392: lt_cv_path_mainfest_tool=yes
6393: fi
6394: rm -f conftest*
6395: fi
6396: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6397: $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6398: if test "x$lt_cv_path_mainfest_tool" != xyes; then
6399: MANIFEST_TOOL=:
6400: fi
6401:
6402:
6403:
6404:
6405:
6406:
6407: case $host_os in
6408: rhapsody* | darwin*)
6409: if test -n "$ac_tool_prefix"; then
6410: # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6411: set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6412: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6413: $as_echo_n "checking for $ac_word... " >&6; }
6414: if ${ac_cv_prog_DSYMUTIL+:} false; then :
6415: $as_echo_n "(cached) " >&6
6416: else
6417: if test -n "$DSYMUTIL"; then
6418: ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6419: else
6420: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6421: for as_dir in $PATH
6422: do
6423: IFS=$as_save_IFS
6424: test -z "$as_dir" && as_dir=.
6425: for ac_exec_ext in '' $ac_executable_extensions; do
1.7 ! moko 6426: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.5 moko 6427: ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6428: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6429: break 2
6430: fi
6431: done
6432: done
6433: IFS=$as_save_IFS
6434:
6435: fi
6436: fi
6437: DSYMUTIL=$ac_cv_prog_DSYMUTIL
6438: if test -n "$DSYMUTIL"; then
6439: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6440: $as_echo "$DSYMUTIL" >&6; }
6441: else
6442: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6443: $as_echo "no" >&6; }
6444: fi
6445:
6446:
6447: fi
6448: if test -z "$ac_cv_prog_DSYMUTIL"; then
6449: ac_ct_DSYMUTIL=$DSYMUTIL
6450: # Extract the first word of "dsymutil", so it can be a program name with args.
6451: set dummy dsymutil; ac_word=$2
6452: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6453: $as_echo_n "checking for $ac_word... " >&6; }
6454: if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6455: $as_echo_n "(cached) " >&6
6456: else
6457: if test -n "$ac_ct_DSYMUTIL"; then
6458: ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6459: else
6460: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6461: for as_dir in $PATH
6462: do
6463: IFS=$as_save_IFS
6464: test -z "$as_dir" && as_dir=.
6465: for ac_exec_ext in '' $ac_executable_extensions; do
1.7 ! moko 6466: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.5 moko 6467: ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6468: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6469: break 2
6470: fi
6471: done
6472: done
6473: IFS=$as_save_IFS
6474:
6475: fi
6476: fi
6477: ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6478: if test -n "$ac_ct_DSYMUTIL"; then
6479: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6480: $as_echo "$ac_ct_DSYMUTIL" >&6; }
6481: else
6482: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6483: $as_echo "no" >&6; }
6484: fi
6485:
6486: if test "x$ac_ct_DSYMUTIL" = x; then
6487: DSYMUTIL=":"
6488: else
6489: case $cross_compiling:$ac_tool_warned in
6490: yes:)
6491: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6492: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6493: ac_tool_warned=yes ;;
6494: esac
6495: DSYMUTIL=$ac_ct_DSYMUTIL
6496: fi
6497: else
6498: DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6499: fi
6500:
6501: if test -n "$ac_tool_prefix"; then
6502: # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6503: set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6504: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6505: $as_echo_n "checking for $ac_word... " >&6; }
6506: if ${ac_cv_prog_NMEDIT+:} false; then :
6507: $as_echo_n "(cached) " >&6
6508: else
6509: if test -n "$NMEDIT"; then
6510: ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6511: else
6512: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6513: for as_dir in $PATH
6514: do
6515: IFS=$as_save_IFS
6516: test -z "$as_dir" && as_dir=.
6517: for ac_exec_ext in '' $ac_executable_extensions; do
1.7 ! moko 6518: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.5 moko 6519: ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6520: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6521: break 2
6522: fi
6523: done
6524: done
6525: IFS=$as_save_IFS
6526:
6527: fi
6528: fi
6529: NMEDIT=$ac_cv_prog_NMEDIT
6530: if test -n "$NMEDIT"; then
6531: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6532: $as_echo "$NMEDIT" >&6; }
6533: else
6534: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6535: $as_echo "no" >&6; }
6536: fi
6537:
6538:
6539: fi
6540: if test -z "$ac_cv_prog_NMEDIT"; then
6541: ac_ct_NMEDIT=$NMEDIT
6542: # Extract the first word of "nmedit", so it can be a program name with args.
6543: set dummy nmedit; ac_word=$2
6544: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6545: $as_echo_n "checking for $ac_word... " >&6; }
6546: if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6547: $as_echo_n "(cached) " >&6
6548: else
6549: if test -n "$ac_ct_NMEDIT"; then
6550: ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6551: else
6552: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6553: for as_dir in $PATH
6554: do
6555: IFS=$as_save_IFS
6556: test -z "$as_dir" && as_dir=.
6557: for ac_exec_ext in '' $ac_executable_extensions; do
1.7 ! moko 6558: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.5 moko 6559: ac_cv_prog_ac_ct_NMEDIT="nmedit"
6560: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6561: break 2
6562: fi
6563: done
6564: done
6565: IFS=$as_save_IFS
6566:
6567: fi
6568: fi
6569: ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6570: if test -n "$ac_ct_NMEDIT"; then
6571: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6572: $as_echo "$ac_ct_NMEDIT" >&6; }
6573: else
6574: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6575: $as_echo "no" >&6; }
6576: fi
6577:
6578: if test "x$ac_ct_NMEDIT" = x; then
6579: NMEDIT=":"
6580: else
6581: case $cross_compiling:$ac_tool_warned in
6582: yes:)
6583: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6584: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6585: ac_tool_warned=yes ;;
6586: esac
6587: NMEDIT=$ac_ct_NMEDIT
6588: fi
6589: else
6590: NMEDIT="$ac_cv_prog_NMEDIT"
6591: fi
6592:
6593: if test -n "$ac_tool_prefix"; then
6594: # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6595: set dummy ${ac_tool_prefix}lipo; ac_word=$2
6596: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6597: $as_echo_n "checking for $ac_word... " >&6; }
6598: if ${ac_cv_prog_LIPO+:} false; then :
6599: $as_echo_n "(cached) " >&6
6600: else
6601: if test -n "$LIPO"; then
6602: ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6603: else
6604: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6605: for as_dir in $PATH
6606: do
6607: IFS=$as_save_IFS
6608: test -z "$as_dir" && as_dir=.
6609: for ac_exec_ext in '' $ac_executable_extensions; do
1.7 ! moko 6610: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.5 moko 6611: ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6612: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6613: break 2
6614: fi
6615: done
6616: done
6617: IFS=$as_save_IFS
6618:
6619: fi
6620: fi
6621: LIPO=$ac_cv_prog_LIPO
6622: if test -n "$LIPO"; then
6623: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6624: $as_echo "$LIPO" >&6; }
6625: else
6626: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6627: $as_echo "no" >&6; }
6628: fi
6629:
6630:
6631: fi
6632: if test -z "$ac_cv_prog_LIPO"; then
6633: ac_ct_LIPO=$LIPO
6634: # Extract the first word of "lipo", so it can be a program name with args.
6635: set dummy lipo; ac_word=$2
6636: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6637: $as_echo_n "checking for $ac_word... " >&6; }
6638: if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6639: $as_echo_n "(cached) " >&6
6640: else
6641: if test -n "$ac_ct_LIPO"; then
6642: ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6643: else
6644: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6645: for as_dir in $PATH
6646: do
6647: IFS=$as_save_IFS
6648: test -z "$as_dir" && as_dir=.
6649: for ac_exec_ext in '' $ac_executable_extensions; do
1.7 ! moko 6650: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.5 moko 6651: ac_cv_prog_ac_ct_LIPO="lipo"
6652: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6653: break 2
6654: fi
6655: done
6656: done
6657: IFS=$as_save_IFS
6658:
6659: fi
6660: fi
6661: ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6662: if test -n "$ac_ct_LIPO"; then
6663: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6664: $as_echo "$ac_ct_LIPO" >&6; }
6665: else
6666: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6667: $as_echo "no" >&6; }
6668: fi
6669:
6670: if test "x$ac_ct_LIPO" = x; then
6671: LIPO=":"
6672: else
6673: case $cross_compiling:$ac_tool_warned in
6674: yes:)
6675: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6676: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6677: ac_tool_warned=yes ;;
6678: esac
6679: LIPO=$ac_ct_LIPO
6680: fi
6681: else
6682: LIPO="$ac_cv_prog_LIPO"
6683: fi
6684:
6685: if test -n "$ac_tool_prefix"; then
6686: # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6687: set dummy ${ac_tool_prefix}otool; ac_word=$2
6688: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6689: $as_echo_n "checking for $ac_word... " >&6; }
6690: if ${ac_cv_prog_OTOOL+:} false; then :
6691: $as_echo_n "(cached) " >&6
6692: else
6693: if test -n "$OTOOL"; then
6694: ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6695: else
6696: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6697: for as_dir in $PATH
6698: do
6699: IFS=$as_save_IFS
6700: test -z "$as_dir" && as_dir=.
6701: for ac_exec_ext in '' $ac_executable_extensions; do
1.7 ! moko 6702: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.5 moko 6703: ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6704: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6705: break 2
6706: fi
6707: done
6708: done
6709: IFS=$as_save_IFS
6710:
6711: fi
6712: fi
6713: OTOOL=$ac_cv_prog_OTOOL
6714: if test -n "$OTOOL"; then
6715: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6716: $as_echo "$OTOOL" >&6; }
6717: else
6718: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6719: $as_echo "no" >&6; }
6720: fi
6721:
6722:
6723: fi
6724: if test -z "$ac_cv_prog_OTOOL"; then
6725: ac_ct_OTOOL=$OTOOL
6726: # Extract the first word of "otool", so it can be a program name with args.
6727: set dummy otool; ac_word=$2
6728: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6729: $as_echo_n "checking for $ac_word... " >&6; }
6730: if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6731: $as_echo_n "(cached) " >&6
6732: else
6733: if test -n "$ac_ct_OTOOL"; then
6734: ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6735: else
6736: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6737: for as_dir in $PATH
6738: do
6739: IFS=$as_save_IFS
6740: test -z "$as_dir" && as_dir=.
6741: for ac_exec_ext in '' $ac_executable_extensions; do
1.7 ! moko 6742: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.5 moko 6743: ac_cv_prog_ac_ct_OTOOL="otool"
6744: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6745: break 2
6746: fi
6747: done
6748: done
6749: IFS=$as_save_IFS
6750:
6751: fi
6752: fi
6753: ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6754: if test -n "$ac_ct_OTOOL"; then
6755: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6756: $as_echo "$ac_ct_OTOOL" >&6; }
6757: else
6758: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6759: $as_echo "no" >&6; }
6760: fi
6761:
6762: if test "x$ac_ct_OTOOL" = x; then
6763: OTOOL=":"
6764: else
6765: case $cross_compiling:$ac_tool_warned in
6766: yes:)
6767: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6768: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6769: ac_tool_warned=yes ;;
6770: esac
6771: OTOOL=$ac_ct_OTOOL
6772: fi
6773: else
6774: OTOOL="$ac_cv_prog_OTOOL"
6775: fi
6776:
6777: if test -n "$ac_tool_prefix"; then
6778: # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6779: set dummy ${ac_tool_prefix}otool64; ac_word=$2
6780: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6781: $as_echo_n "checking for $ac_word... " >&6; }
6782: if ${ac_cv_prog_OTOOL64+:} false; then :
6783: $as_echo_n "(cached) " >&6
6784: else
6785: if test -n "$OTOOL64"; then
6786: ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6787: else
6788: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6789: for as_dir in $PATH
6790: do
6791: IFS=$as_save_IFS
6792: test -z "$as_dir" && as_dir=.
6793: for ac_exec_ext in '' $ac_executable_extensions; do
1.7 ! moko 6794: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.5 moko 6795: ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6796: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6797: break 2
6798: fi
6799: done
6800: done
6801: IFS=$as_save_IFS
6802:
6803: fi
6804: fi
6805: OTOOL64=$ac_cv_prog_OTOOL64
6806: if test -n "$OTOOL64"; then
6807: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6808: $as_echo "$OTOOL64" >&6; }
6809: else
6810: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6811: $as_echo "no" >&6; }
6812: fi
6813:
6814:
6815: fi
6816: if test -z "$ac_cv_prog_OTOOL64"; then
6817: ac_ct_OTOOL64=$OTOOL64
6818: # Extract the first word of "otool64", so it can be a program name with args.
6819: set dummy otool64; ac_word=$2
6820: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6821: $as_echo_n "checking for $ac_word... " >&6; }
6822: if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
6823: $as_echo_n "(cached) " >&6
6824: else
6825: if test -n "$ac_ct_OTOOL64"; then
6826: ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6827: else
6828: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6829: for as_dir in $PATH
6830: do
6831: IFS=$as_save_IFS
6832: test -z "$as_dir" && as_dir=.
6833: for ac_exec_ext in '' $ac_executable_extensions; do
1.7 ! moko 6834: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.5 moko 6835: ac_cv_prog_ac_ct_OTOOL64="otool64"
6836: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6837: break 2
6838: fi
6839: done
6840: done
6841: IFS=$as_save_IFS
6842:
6843: fi
6844: fi
6845: ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6846: if test -n "$ac_ct_OTOOL64"; then
6847: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6848: $as_echo "$ac_ct_OTOOL64" >&6; }
6849: else
6850: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6851: $as_echo "no" >&6; }
6852: fi
6853:
6854: if test "x$ac_ct_OTOOL64" = x; then
6855: OTOOL64=":"
6856: else
6857: case $cross_compiling:$ac_tool_warned in
6858: yes:)
6859: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6860: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6861: ac_tool_warned=yes ;;
6862: esac
6863: OTOOL64=$ac_ct_OTOOL64
6864: fi
6865: else
6866: OTOOL64="$ac_cv_prog_OTOOL64"
6867: fi
6868:
6869:
6870:
6871:
6872:
6873:
6874:
6875:
6876:
6877:
6878:
6879:
6880:
6881:
6882:
6883:
6884:
6885:
6886:
6887:
6888:
6889:
6890:
6891:
6892:
6893:
6894:
6895: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6896: $as_echo_n "checking for -single_module linker flag... " >&6; }
6897: if ${lt_cv_apple_cc_single_mod+:} false; then :
6898: $as_echo_n "(cached) " >&6
6899: else
6900: lt_cv_apple_cc_single_mod=no
6901: if test -z "${LT_MULTI_MODULE}"; then
6902: # By default we will add the -single_module flag. You can override
6903: # by either setting the environment variable LT_MULTI_MODULE
6904: # non-empty at configure time, or by adding -multi_module to the
6905: # link flags.
6906: rm -rf libconftest.dylib*
6907: echo "int foo(void){return 1;}" > conftest.c
6908: echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6909: -dynamiclib -Wl,-single_module conftest.c" >&5
6910: $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6911: -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6912: _lt_result=$?
6913: # If there is a non-empty error log, and "single_module"
6914: # appears in it, assume the flag caused a linker warning
6915: if test -s conftest.err && $GREP single_module conftest.err; then
6916: cat conftest.err >&5
6917: # Otherwise, if the output was created with a 0 exit code from
6918: # the compiler, it worked.
6919: elif test -f libconftest.dylib && test $_lt_result -eq 0; then
6920: lt_cv_apple_cc_single_mod=yes
6921: else
6922: cat conftest.err >&5
6923: fi
6924: rm -rf libconftest.dylib*
6925: rm -f conftest.*
6926: fi
6927: fi
6928: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6929: $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6930:
6931: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6932: $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6933: if ${lt_cv_ld_exported_symbols_list+:} false; then :
6934: $as_echo_n "(cached) " >&6
6935: else
6936: lt_cv_ld_exported_symbols_list=no
6937: save_LDFLAGS=$LDFLAGS
6938: echo "_main" > conftest.sym
6939: LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6940: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6941: /* end confdefs.h. */
6942:
6943: int
6944: main ()
6945: {
6946:
6947: ;
6948: return 0;
6949: }
6950: _ACEOF
6951: if ac_fn_c_try_link "$LINENO"; then :
6952: lt_cv_ld_exported_symbols_list=yes
6953: else
6954: lt_cv_ld_exported_symbols_list=no
6955: fi
6956: rm -f core conftest.err conftest.$ac_objext \
6957: conftest$ac_exeext conftest.$ac_ext
6958: LDFLAGS="$save_LDFLAGS"
6959:
6960: fi
6961: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6962: $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6963:
6964: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
6965: $as_echo_n "checking for -force_load linker flag... " >&6; }
6966: if ${lt_cv_ld_force_load+:} false; then :
6967: $as_echo_n "(cached) " >&6
6968: else
6969: lt_cv_ld_force_load=no
6970: cat > conftest.c << _LT_EOF
6971: int forced_loaded() { return 2;}
6972: _LT_EOF
6973: echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
6974: $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
6975: echo "$AR cru libconftest.a conftest.o" >&5
6976: $AR cru libconftest.a conftest.o 2>&5
6977: echo "$RANLIB libconftest.a" >&5
6978: $RANLIB libconftest.a 2>&5
6979: cat > conftest.c << _LT_EOF
6980: int main() { return 0;}
6981: _LT_EOF
6982: echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
6983: $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
6984: _lt_result=$?
6985: if test -s conftest.err && $GREP force_load conftest.err; then
6986: cat conftest.err >&5
6987: elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
6988: lt_cv_ld_force_load=yes
6989: else
6990: cat conftest.err >&5
6991: fi
6992: rm -f conftest.err libconftest.a conftest conftest.c
6993: rm -rf conftest.dSYM
6994:
6995: fi
6996: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
6997: $as_echo "$lt_cv_ld_force_load" >&6; }
6998: case $host_os in
6999: rhapsody* | darwin1.[012])
7000: _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7001: darwin1.*)
7002: _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7003: darwin*) # darwin 5.x on
7004: # if running on 10.5 or later, the deployment target defaults
7005: # to the OS version, if on x86, and 10.4, the deployment
7006: # target defaults to 10.4. Don't you love it?
7007: case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7008: 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7009: _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7010: 10.[012]*)
7011: _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7012: 10.*)
7013: _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7014: esac
7015: ;;
7016: esac
7017: if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7018: _lt_dar_single_mod='$single_module'
7019: fi
7020: if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7021: _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7022: else
7023: _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7024: fi
7025: if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7026: _lt_dsymutil='~$DSYMUTIL $lib || :'
7027: else
7028: _lt_dsymutil=
7029: fi
7030: ;;
7031: esac
7032:
7033: ac_ext=c
7034: ac_cpp='$CPP $CPPFLAGS'
7035: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7036: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7037: ac_compiler_gnu=$ac_cv_c_compiler_gnu
7038: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7039: $as_echo_n "checking how to run the C preprocessor... " >&6; }
7040: # On Suns, sometimes $CPP names a directory.
7041: if test -n "$CPP" && test -d "$CPP"; then
7042: CPP=
7043: fi
7044: if test -z "$CPP"; then
7045: if ${ac_cv_prog_CPP+:} false; then :
7046: $as_echo_n "(cached) " >&6
7047: else
7048: # Double quotes because CPP needs to be expanded
7049: for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7050: do
7051: ac_preproc_ok=false
7052: for ac_c_preproc_warn_flag in '' yes
7053: do
7054: # Use a header file that comes with gcc, so configuring glibc
7055: # with a fresh cross-compiler works.
7056: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7057: # <limits.h> exists even on freestanding compilers.
7058: # On the NeXT, cc -E runs the code through the compiler's parser,
7059: # not just through cpp. "Syntax error" is here to catch this case.
7060: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7061: /* end confdefs.h. */
7062: #ifdef __STDC__
7063: # include <limits.h>
7064: #else
7065: # include <assert.h>
7066: #endif
7067: Syntax error
7068: _ACEOF
7069: if ac_fn_c_try_cpp "$LINENO"; then :
7070:
7071: else
7072: # Broken: fails on valid input.
7073: continue
7074: fi
7075: rm -f conftest.err conftest.i conftest.$ac_ext
7076:
7077: # OK, works on sane cases. Now check whether nonexistent headers
7078: # can be detected and how.
7079: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7080: /* end confdefs.h. */
7081: #include <ac_nonexistent.h>
7082: _ACEOF
7083: if ac_fn_c_try_cpp "$LINENO"; then :
7084: # Broken: success on invalid input.
7085: continue
7086: else
7087: # Passes both tests.
7088: ac_preproc_ok=:
7089: break
7090: fi
7091: rm -f conftest.err conftest.i conftest.$ac_ext
7092:
7093: done
7094: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7095: rm -f conftest.i conftest.err conftest.$ac_ext
7096: if $ac_preproc_ok; then :
7097: break
7098: fi
7099:
7100: done
7101: ac_cv_prog_CPP=$CPP
7102:
7103: fi
7104: CPP=$ac_cv_prog_CPP
7105: else
7106: ac_cv_prog_CPP=$CPP
7107: fi
7108: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7109: $as_echo "$CPP" >&6; }
7110: ac_preproc_ok=false
7111: for ac_c_preproc_warn_flag in '' yes
7112: do
7113: # Use a header file that comes with gcc, so configuring glibc
7114: # with a fresh cross-compiler works.
7115: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7116: # <limits.h> exists even on freestanding compilers.
7117: # On the NeXT, cc -E runs the code through the compiler's parser,
7118: # not just through cpp. "Syntax error" is here to catch this case.
7119: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7120: /* end confdefs.h. */
7121: #ifdef __STDC__
7122: # include <limits.h>
7123: #else
7124: # include <assert.h>
7125: #endif
7126: Syntax error
7127: _ACEOF
7128: if ac_fn_c_try_cpp "$LINENO"; then :
7129:
7130: else
7131: # Broken: fails on valid input.
7132: continue
7133: fi
7134: rm -f conftest.err conftest.i conftest.$ac_ext
7135:
7136: # OK, works on sane cases. Now check whether nonexistent headers
7137: # can be detected and how.
7138: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7139: /* end confdefs.h. */
7140: #include <ac_nonexistent.h>
7141: _ACEOF
7142: if ac_fn_c_try_cpp "$LINENO"; then :
7143: # Broken: success on invalid input.
7144: continue
7145: else
7146: # Passes both tests.
7147: ac_preproc_ok=:
7148: break
7149: fi
7150: rm -f conftest.err conftest.i conftest.$ac_ext
7151:
7152: done
7153: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7154: rm -f conftest.i conftest.err conftest.$ac_ext
7155: if $ac_preproc_ok; then :
7156:
7157: else
7158: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7159: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7160: as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7161: See \`config.log' for more details" "$LINENO" 5; }
7162: fi
7163:
7164: ac_ext=c
7165: ac_cpp='$CPP $CPPFLAGS'
7166: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7167: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7168: ac_compiler_gnu=$ac_cv_c_compiler_gnu
7169:
7170:
7171: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7172: $as_echo_n "checking for ANSI C header files... " >&6; }
7173: if ${ac_cv_header_stdc+:} false; then :
7174: $as_echo_n "(cached) " >&6
7175: else
7176: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7177: /* end confdefs.h. */
7178: #include <stdlib.h>
7179: #include <stdarg.h>
7180: #include <string.h>
7181: #include <float.h>
7182:
7183: int
7184: main ()
7185: {
7186:
7187: ;
7188: return 0;
7189: }
7190: _ACEOF
7191: if ac_fn_c_try_compile "$LINENO"; then :
7192: ac_cv_header_stdc=yes
7193: else
7194: ac_cv_header_stdc=no
7195: fi
7196: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7197:
7198: if test $ac_cv_header_stdc = yes; then
7199: # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7200: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7201: /* end confdefs.h. */
7202: #include <string.h>
7203:
7204: _ACEOF
7205: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7206: $EGREP "memchr" >/dev/null 2>&1; then :
7207:
7208: else
7209: ac_cv_header_stdc=no
7210: fi
7211: rm -f conftest*
7212:
7213: fi
7214:
7215: if test $ac_cv_header_stdc = yes; then
7216: # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7217: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7218: /* end confdefs.h. */
7219: #include <stdlib.h>
7220:
7221: _ACEOF
7222: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7223: $EGREP "free" >/dev/null 2>&1; then :
7224:
7225: else
7226: ac_cv_header_stdc=no
7227: fi
7228: rm -f conftest*
7229:
7230: fi
7231:
7232: if test $ac_cv_header_stdc = yes; then
7233: # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7234: if test "$cross_compiling" = yes; then :
7235: :
7236: else
7237: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7238: /* end confdefs.h. */
7239: #include <ctype.h>
7240: #include <stdlib.h>
7241: #if ((' ' & 0x0FF) == 0x020)
7242: # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7243: # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7244: #else
7245: # define ISLOWER(c) \
7246: (('a' <= (c) && (c) <= 'i') \
7247: || ('j' <= (c) && (c) <= 'r') \
7248: || ('s' <= (c) && (c) <= 'z'))
7249: # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7250: #endif
7251:
7252: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7253: int
7254: main ()
7255: {
7256: int i;
7257: for (i = 0; i < 256; i++)
7258: if (XOR (islower (i), ISLOWER (i))
7259: || toupper (i) != TOUPPER (i))
7260: return 2;
7261: return 0;
7262: }
7263: _ACEOF
7264: if ac_fn_c_try_run "$LINENO"; then :
7265:
7266: else
7267: ac_cv_header_stdc=no
7268: fi
7269: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7270: conftest.$ac_objext conftest.beam conftest.$ac_ext
7271: fi
7272:
7273: fi
7274: fi
7275: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7276: $as_echo "$ac_cv_header_stdc" >&6; }
7277: if test $ac_cv_header_stdc = yes; then
7278:
7279: $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7280:
7281: fi
7282:
7283: # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7284: for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7285: inttypes.h stdint.h unistd.h
7286: do :
7287: as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7288: ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7289: "
7290: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7291: cat >>confdefs.h <<_ACEOF
7292: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7293: _ACEOF
7294:
7295: fi
7296:
7297: done
7298:
7299:
7300: for ac_header in dlfcn.h
7301: do :
7302: ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7303: "
7304: if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7305: cat >>confdefs.h <<_ACEOF
7306: #define HAVE_DLFCN_H 1
7307: _ACEOF
7308:
7309: fi
7310:
7311: done
7312:
7313:
7314:
7315:
7316:
7317: # Set options
7318: enable_dlopen=yes
7319: enable_win32_dll=yes
7320:
7321: case $host in
7322: *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
7323: if test -n "$ac_tool_prefix"; then
7324: # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
7325: set dummy ${ac_tool_prefix}as; ac_word=$2
7326: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7327: $as_echo_n "checking for $ac_word... " >&6; }
7328: if ${ac_cv_prog_AS+:} false; then :
7329: $as_echo_n "(cached) " >&6
7330: else
7331: if test -n "$AS"; then
7332: ac_cv_prog_AS="$AS" # Let the user override the test.
7333: else
7334: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7335: for as_dir in $PATH
7336: do
7337: IFS=$as_save_IFS
7338: test -z "$as_dir" && as_dir=.
7339: for ac_exec_ext in '' $ac_executable_extensions; do
1.7 ! moko 7340: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.5 moko 7341: ac_cv_prog_AS="${ac_tool_prefix}as"
7342: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7343: break 2
7344: fi
7345: done
7346: done
7347: IFS=$as_save_IFS
7348:
7349: fi
7350: fi
7351: AS=$ac_cv_prog_AS
7352: if test -n "$AS"; then
7353: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
7354: $as_echo "$AS" >&6; }
7355: else
7356: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7357: $as_echo "no" >&6; }
7358: fi
7359:
7360:
7361: fi
7362: if test -z "$ac_cv_prog_AS"; then
7363: ac_ct_AS=$AS
7364: # Extract the first word of "as", so it can be a program name with args.
7365: set dummy as; ac_word=$2
7366: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7367: $as_echo_n "checking for $ac_word... " >&6; }
7368: if ${ac_cv_prog_ac_ct_AS+:} false; then :
7369: $as_echo_n "(cached) " >&6
7370: else
7371: if test -n "$ac_ct_AS"; then
7372: ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
7373: else
7374: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7375: for as_dir in $PATH
7376: do
7377: IFS=$as_save_IFS
7378: test -z "$as_dir" && as_dir=.
7379: for ac_exec_ext in '' $ac_executable_extensions; do
1.7 ! moko 7380: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.5 moko 7381: ac_cv_prog_ac_ct_AS="as"
7382: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7383: break 2
7384: fi
7385: done
7386: done
7387: IFS=$as_save_IFS
7388:
7389: fi
7390: fi
7391: ac_ct_AS=$ac_cv_prog_ac_ct_AS
7392: if test -n "$ac_ct_AS"; then
7393: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
7394: $as_echo "$ac_ct_AS" >&6; }
7395: else
7396: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7397: $as_echo "no" >&6; }
7398: fi
7399:
7400: if test "x$ac_ct_AS" = x; then
7401: AS="false"
7402: else
7403: case $cross_compiling:$ac_tool_warned in
7404: yes:)
7405: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7406: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7407: ac_tool_warned=yes ;;
7408: esac
7409: AS=$ac_ct_AS
7410: fi
7411: else
7412: AS="$ac_cv_prog_AS"
7413: fi
7414:
7415: if test -n "$ac_tool_prefix"; then
7416: # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7417: set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7418: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7419: $as_echo_n "checking for $ac_word... " >&6; }
7420: if ${ac_cv_prog_DLLTOOL+:} false; then :
7421: $as_echo_n "(cached) " >&6
7422: else
7423: if test -n "$DLLTOOL"; then
7424: ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7425: else
7426: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7427: for as_dir in $PATH
7428: do
7429: IFS=$as_save_IFS
7430: test -z "$as_dir" && as_dir=.
7431: for ac_exec_ext in '' $ac_executable_extensions; do
1.7 ! moko 7432: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.5 moko 7433: ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7434: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7435: break 2
7436: fi
7437: done
7438: done
7439: IFS=$as_save_IFS
7440:
7441: fi
7442: fi
7443: DLLTOOL=$ac_cv_prog_DLLTOOL
7444: if test -n "$DLLTOOL"; then
7445: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7446: $as_echo "$DLLTOOL" >&6; }
7447: else
7448: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7449: $as_echo "no" >&6; }
7450: fi
7451:
7452:
7453: fi
7454: if test -z "$ac_cv_prog_DLLTOOL"; then
7455: ac_ct_DLLTOOL=$DLLTOOL
7456: # Extract the first word of "dlltool", so it can be a program name with args.
7457: set dummy dlltool; ac_word=$2
7458: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7459: $as_echo_n "checking for $ac_word... " >&6; }
7460: if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7461: $as_echo_n "(cached) " >&6
7462: else
7463: if test -n "$ac_ct_DLLTOOL"; then
7464: ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7465: else
7466: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7467: for as_dir in $PATH
7468: do
7469: IFS=$as_save_IFS
7470: test -z "$as_dir" && as_dir=.
7471: for ac_exec_ext in '' $ac_executable_extensions; do
1.7 ! moko 7472: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.5 moko 7473: ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7474: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7475: break 2
7476: fi
7477: done
7478: done
7479: IFS=$as_save_IFS
7480:
7481: fi
7482: fi
7483: ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7484: if test -n "$ac_ct_DLLTOOL"; then
7485: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7486: $as_echo "$ac_ct_DLLTOOL" >&6; }
7487: else
7488: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7489: $as_echo "no" >&6; }
7490: fi
7491:
7492: if test "x$ac_ct_DLLTOOL" = x; then
7493: DLLTOOL="false"
7494: else
7495: case $cross_compiling:$ac_tool_warned in
7496: yes:)
7497: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7498: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7499: ac_tool_warned=yes ;;
7500: esac
7501: DLLTOOL=$ac_ct_DLLTOOL
7502: fi
7503: else
7504: DLLTOOL="$ac_cv_prog_DLLTOOL"
7505: fi
7506:
7507: if test -n "$ac_tool_prefix"; then
7508: # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7509: set dummy ${ac_tool_prefix}objdump; ac_word=$2
7510: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7511: $as_echo_n "checking for $ac_word... " >&6; }
7512: if ${ac_cv_prog_OBJDUMP+:} false; then :
7513: $as_echo_n "(cached) " >&6
7514: else
7515: if test -n "$OBJDUMP"; then
7516: ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7517: else
7518: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7519: for as_dir in $PATH
7520: do
7521: IFS=$as_save_IFS
7522: test -z "$as_dir" && as_dir=.
7523: for ac_exec_ext in '' $ac_executable_extensions; do
1.7 ! moko 7524: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.5 moko 7525: ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7526: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7527: break 2
7528: fi
7529: done
7530: done
7531: IFS=$as_save_IFS
7532:
7533: fi
7534: fi
7535: OBJDUMP=$ac_cv_prog_OBJDUMP
7536: if test -n "$OBJDUMP"; then
7537: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7538: $as_echo "$OBJDUMP" >&6; }
7539: else
7540: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7541: $as_echo "no" >&6; }
7542: fi
7543:
7544:
7545: fi
7546: if test -z "$ac_cv_prog_OBJDUMP"; then
7547: ac_ct_OBJDUMP=$OBJDUMP
7548: # Extract the first word of "objdump", so it can be a program name with args.
7549: set dummy objdump; ac_word=$2
7550: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7551: $as_echo_n "checking for $ac_word... " >&6; }
7552: if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
7553: $as_echo_n "(cached) " >&6
7554: else
7555: if test -n "$ac_ct_OBJDUMP"; then
7556: ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7557: else
7558: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7559: for as_dir in $PATH
7560: do
7561: IFS=$as_save_IFS
7562: test -z "$as_dir" && as_dir=.
7563: for ac_exec_ext in '' $ac_executable_extensions; do
1.7 ! moko 7564: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.5 moko 7565: ac_cv_prog_ac_ct_OBJDUMP="objdump"
7566: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7567: break 2
7568: fi
7569: done
7570: done
7571: IFS=$as_save_IFS
7572:
7573: fi
7574: fi
7575: ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7576: if test -n "$ac_ct_OBJDUMP"; then
7577: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7578: $as_echo "$ac_ct_OBJDUMP" >&6; }
7579: else
7580: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7581: $as_echo "no" >&6; }
7582: fi
7583:
7584: if test "x$ac_ct_OBJDUMP" = x; then
7585: OBJDUMP="false"
7586: else
7587: case $cross_compiling:$ac_tool_warned in
7588: yes:)
7589: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7590: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7591: ac_tool_warned=yes ;;
7592: esac
7593: OBJDUMP=$ac_ct_OBJDUMP
7594: fi
7595: else
7596: OBJDUMP="$ac_cv_prog_OBJDUMP"
7597: fi
7598:
7599: ;;
7600: esac
7601:
7602: test -z "$AS" && AS=as
7603:
7604:
7605:
7606:
7607:
7608: test -z "$DLLTOOL" && DLLTOOL=dlltool
7609:
7610:
7611:
7612:
7613:
7614: test -z "$OBJDUMP" && OBJDUMP=objdump
7615:
7616:
7617:
7618:
7619:
7620:
7621:
7622:
7623:
7624: # Check whether --enable-shared was given.
7625: if test "${enable_shared+set}" = set; then :
7626: enableval=$enable_shared; p=${PACKAGE-default}
7627: case $enableval in
7628: yes) enable_shared=yes ;;
7629: no) enable_shared=no ;;
7630: *)
7631: enable_shared=no
7632: # Look at the argument we got. We use all the common list separators.
7633: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7634: for pkg in $enableval; do
7635: IFS="$lt_save_ifs"
7636: if test "X$pkg" = "X$p"; then
7637: enable_shared=yes
7638: fi
7639: done
7640: IFS="$lt_save_ifs"
7641: ;;
7642: esac
7643: else
7644: enable_shared=yes
7645: fi
7646:
7647:
7648:
7649:
7650:
7651:
7652:
7653:
7654:
7655: # Check whether --enable-static was given.
7656: if test "${enable_static+set}" = set; then :
7657: enableval=$enable_static; p=${PACKAGE-default}
7658: case $enableval in
7659: yes) enable_static=yes ;;
7660: no) enable_static=no ;;
7661: *)
7662: enable_static=no
7663: # Look at the argument we got. We use all the common list separators.
7664: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7665: for pkg in $enableval; do
7666: IFS="$lt_save_ifs"
7667: if test "X$pkg" = "X$p"; then
7668: enable_static=yes
7669: fi
7670: done
7671: IFS="$lt_save_ifs"
7672: ;;
7673: esac
7674: else
7675: enable_static=yes
7676: fi
7677:
7678:
7679:
7680:
7681:
7682:
7683:
7684:
7685:
7686:
7687: # Check whether --with-pic was given.
7688: if test "${with_pic+set}" = set; then :
7689: withval=$with_pic; lt_p=${PACKAGE-default}
7690: case $withval in
7691: yes|no) pic_mode=$withval ;;
7692: *)
7693: pic_mode=default
7694: # Look at the argument we got. We use all the common list separators.
7695: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7696: for lt_pkg in $withval; do
7697: IFS="$lt_save_ifs"
7698: if test "X$lt_pkg" = "X$lt_p"; then
7699: pic_mode=yes
7700: fi
7701: done
7702: IFS="$lt_save_ifs"
7703: ;;
7704: esac
7705: else
7706: pic_mode=default
7707: fi
7708:
7709:
7710: test -z "$pic_mode" && pic_mode=default
7711:
7712:
7713:
7714:
7715:
7716:
7717:
7718: # Check whether --enable-fast-install was given.
7719: if test "${enable_fast_install+set}" = set; then :
7720: enableval=$enable_fast_install; p=${PACKAGE-default}
7721: case $enableval in
7722: yes) enable_fast_install=yes ;;
7723: no) enable_fast_install=no ;;
7724: *)
7725: enable_fast_install=no
7726: # Look at the argument we got. We use all the common list separators.
7727: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7728: for pkg in $enableval; do
7729: IFS="$lt_save_ifs"
7730: if test "X$pkg" = "X$p"; then
7731: enable_fast_install=yes
7732: fi
7733: done
7734: IFS="$lt_save_ifs"
7735: ;;
7736: esac
7737: else
7738: enable_fast_install=yes
7739: fi
7740:
7741:
7742:
7743:
7744:
7745:
7746:
7747:
7748:
7749:
7750:
7751: # This can be used to rebuild libtool when needed
7752: LIBTOOL_DEPS="$ltmain"
7753:
7754: # Always use our own libtool.
7755: LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7756:
7757:
7758:
7759:
7760:
7761:
7762:
7763:
7764:
7765:
7766:
7767:
7768:
7769:
7770:
7771:
7772:
7773:
7774:
7775:
7776:
7777:
7778:
7779:
7780:
7781:
7782:
7783:
7784:
7785:
7786: test -z "$LN_S" && LN_S="ln -s"
7787:
7788:
7789:
7790:
7791:
7792:
7793:
7794:
7795:
7796:
7797:
7798:
7799:
7800:
7801: if test -n "${ZSH_VERSION+set}" ; then
7802: setopt NO_GLOB_SUBST
7803: fi
7804:
7805: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7806: $as_echo_n "checking for objdir... " >&6; }
7807: if ${lt_cv_objdir+:} false; then :
7808: $as_echo_n "(cached) " >&6
7809: else
7810: rm -f .libs 2>/dev/null
7811: mkdir .libs 2>/dev/null
7812: if test -d .libs; then
7813: lt_cv_objdir=.libs
7814: else
7815: # MS-DOS does not allow filenames that begin with a dot.
7816: lt_cv_objdir=_libs
7817: fi
7818: rmdir .libs 2>/dev/null
7819: fi
7820: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7821: $as_echo "$lt_cv_objdir" >&6; }
7822: objdir=$lt_cv_objdir
7823:
7824:
7825:
7826:
7827:
7828: cat >>confdefs.h <<_ACEOF
7829: #define LT_OBJDIR "$lt_cv_objdir/"
7830: _ACEOF
7831:
7832:
7833:
7834:
7835: case $host_os in
7836: aix3*)
7837: # AIX sometimes has problems with the GCC collect2 program. For some
7838: # reason, if we set the COLLECT_NAMES environment variable, the problems
7839: # vanish in a puff of smoke.
7840: if test "X${COLLECT_NAMES+set}" != Xset; then
7841: COLLECT_NAMES=
7842: export COLLECT_NAMES
7843: fi
7844: ;;
7845: esac
7846:
7847: # Global variables:
7848: ofile=libtool
7849: can_build_shared=yes
7850:
7851: # All known linkers require a `.a' archive for static linking (except MSVC,
7852: # which needs '.lib').
7853: libext=a
7854:
7855: with_gnu_ld="$lt_cv_prog_gnu_ld"
7856:
7857: old_CC="$CC"
7858: old_CFLAGS="$CFLAGS"
7859:
7860: # Set sane defaults for various variables
7861: test -z "$CC" && CC=cc
7862: test -z "$LTCC" && LTCC=$CC
7863: test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7864: test -z "$LD" && LD=ld
7865: test -z "$ac_objext" && ac_objext=o
7866:
7867: for cc_temp in $compiler""; do
7868: case $cc_temp in
7869: compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7870: distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7871: \-*) ;;
7872: *) break;;
7873: esac
7874: done
7875: cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7876:
7877:
7878: # Only perform the check for file, if the check method requires it
7879: test -z "$MAGIC_CMD" && MAGIC_CMD=file
7880: case $deplibs_check_method in
7881: file_magic*)
7882: if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7883: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7884: $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7885: if ${lt_cv_path_MAGIC_CMD+:} false; then :
7886: $as_echo_n "(cached) " >&6
7887: else
7888: case $MAGIC_CMD in
7889: [\\/*] | ?:[\\/]*)
7890: lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7891: ;;
7892: *)
7893: lt_save_MAGIC_CMD="$MAGIC_CMD"
7894: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7895: ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7896: for ac_dir in $ac_dummy; do
7897: IFS="$lt_save_ifs"
7898: test -z "$ac_dir" && ac_dir=.
7899: if test -f $ac_dir/${ac_tool_prefix}file; then
7900: lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7901: if test -n "$file_magic_test_file"; then
7902: case $deplibs_check_method in
7903: "file_magic "*)
7904: file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7905: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7906: if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7907: $EGREP "$file_magic_regex" > /dev/null; then
7908: :
7909: else
7910: cat <<_LT_EOF 1>&2
7911:
7912: *** Warning: the command libtool uses to detect shared libraries,
7913: *** $file_magic_cmd, produces output that libtool cannot recognize.
7914: *** The result is that libtool may fail to recognize shared libraries
7915: *** as such. This will affect the creation of libtool libraries that
7916: *** depend on shared libraries, but programs linked with such libtool
7917: *** libraries will work regardless of this problem. Nevertheless, you
7918: *** may want to report the problem to your system manager and/or to
7919: *** bug-libtool@gnu.org
7920:
7921: _LT_EOF
7922: fi ;;
7923: esac
7924: fi
7925: break
7926: fi
7927: done
7928: IFS="$lt_save_ifs"
7929: MAGIC_CMD="$lt_save_MAGIC_CMD"
7930: ;;
7931: esac
7932: fi
7933:
7934: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7935: if test -n "$MAGIC_CMD"; then
7936: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7937: $as_echo "$MAGIC_CMD" >&6; }
7938: else
7939: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7940: $as_echo "no" >&6; }
7941: fi
7942:
7943:
7944:
7945:
7946:
7947: if test -z "$lt_cv_path_MAGIC_CMD"; then
7948: if test -n "$ac_tool_prefix"; then
7949: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7950: $as_echo_n "checking for file... " >&6; }
7951: if ${lt_cv_path_MAGIC_CMD+:} false; then :
7952: $as_echo_n "(cached) " >&6
7953: else
7954: case $MAGIC_CMD in
7955: [\\/*] | ?:[\\/]*)
7956: lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7957: ;;
7958: *)
7959: lt_save_MAGIC_CMD="$MAGIC_CMD"
7960: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7961: ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7962: for ac_dir in $ac_dummy; do
7963: IFS="$lt_save_ifs"
7964: test -z "$ac_dir" && ac_dir=.
7965: if test -f $ac_dir/file; then
7966: lt_cv_path_MAGIC_CMD="$ac_dir/file"
7967: if test -n "$file_magic_test_file"; then
7968: case $deplibs_check_method in
7969: "file_magic "*)
7970: file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7971: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7972: if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7973: $EGREP "$file_magic_regex" > /dev/null; then
7974: :
7975: else
7976: cat <<_LT_EOF 1>&2
7977:
7978: *** Warning: the command libtool uses to detect shared libraries,
7979: *** $file_magic_cmd, produces output that libtool cannot recognize.
7980: *** The result is that libtool may fail to recognize shared libraries
7981: *** as such. This will affect the creation of libtool libraries that
7982: *** depend on shared libraries, but programs linked with such libtool
7983: *** libraries will work regardless of this problem. Nevertheless, you
7984: *** may want to report the problem to your system manager and/or to
7985: *** bug-libtool@gnu.org
7986:
7987: _LT_EOF
7988: fi ;;
7989: esac
7990: fi
7991: break
7992: fi
7993: done
7994: IFS="$lt_save_ifs"
7995: MAGIC_CMD="$lt_save_MAGIC_CMD"
7996: ;;
7997: esac
7998: fi
7999:
8000: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8001: if test -n "$MAGIC_CMD"; then
8002: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8003: $as_echo "$MAGIC_CMD" >&6; }
8004: else
8005: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8006: $as_echo "no" >&6; }
8007: fi
8008:
8009:
8010: else
8011: MAGIC_CMD=:
8012: fi
8013: fi
8014:
8015: fi
8016: ;;
8017: esac
8018:
8019: # Use C for the default configuration in the libtool script
8020:
8021: lt_save_CC="$CC"
8022: ac_ext=c
8023: ac_cpp='$CPP $CPPFLAGS'
8024: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8025: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8026: ac_compiler_gnu=$ac_cv_c_compiler_gnu
8027:
8028:
8029: # Source file extension for C test sources.
8030: ac_ext=c
8031:
8032: # Object file extension for compiled C test sources.
8033: objext=o
8034: objext=$objext
8035:
8036: # Code to be used in simple compile tests
8037: lt_simple_compile_test_code="int some_variable = 0;"
8038:
8039: # Code to be used in simple link tests
8040: lt_simple_link_test_code='int main(){return(0);}'
8041:
8042:
8043:
8044:
8045:
8046:
8047:
8048: # If no C compiler was specified, use CC.
8049: LTCC=${LTCC-"$CC"}
8050:
8051: # If no C compiler flags were specified, use CFLAGS.
8052: LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8053:
8054: # Allow CC to be a program name with arguments.
8055: compiler=$CC
8056:
8057: # Save the default compiler, since it gets overwritten when the other
8058: # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8059: compiler_DEFAULT=$CC
8060:
8061: # save warnings/boilerplate of simple test code
8062: ac_outfile=conftest.$ac_objext
8063: echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8064: eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8065: _lt_compiler_boilerplate=`cat conftest.err`
8066: $RM conftest*
8067:
8068: ac_outfile=conftest.$ac_objext
8069: echo "$lt_simple_link_test_code" >conftest.$ac_ext
8070: eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8071: _lt_linker_boilerplate=`cat conftest.err`
8072: $RM -r conftest*
8073:
8074:
8075: ## CAVEAT EMPTOR:
8076: ## There is no encapsulation within the following macros, do not change
8077: ## the running order or otherwise move them around unless you know exactly
8078: ## what you are doing...
8079: if test -n "$compiler"; then
8080:
8081: lt_prog_compiler_no_builtin_flag=
8082:
8083: if test "$GCC" = yes; then
8084: case $cc_basename in
8085: nvcc*)
8086: lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8087: *)
8088: lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8089: esac
8090:
8091: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8092: $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8093: if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8094: $as_echo_n "(cached) " >&6
8095: else
8096: lt_cv_prog_compiler_rtti_exceptions=no
8097: ac_outfile=conftest.$ac_objext
8098: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8099: lt_compiler_flag="-fno-rtti -fno-exceptions"
8100: # Insert the option either (1) after the last *FLAGS variable, or
8101: # (2) before a word containing "conftest.", or (3) at the end.
8102: # Note that $ac_compile itself does not contain backslashes and begins
8103: # with a dollar sign (not a hyphen), so the echo should work correctly.
8104: # The option is referenced via a variable to avoid confusing sed.
8105: lt_compile=`echo "$ac_compile" | $SED \
8106: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8107: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8108: -e 's:$: $lt_compiler_flag:'`
8109: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8110: (eval "$lt_compile" 2>conftest.err)
8111: ac_status=$?
8112: cat conftest.err >&5
8113: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8114: if (exit $ac_status) && test -s "$ac_outfile"; then
8115: # The compiler can only warn and ignore the option if not recognized
8116: # So say no if there are warnings other than the usual output.
8117: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8118: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8119: if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8120: lt_cv_prog_compiler_rtti_exceptions=yes
8121: fi
8122: fi
8123: $RM conftest*
8124:
8125: fi
8126: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8127: $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8128:
8129: if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8130: lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8131: else
8132: :
8133: fi
8134:
8135: fi
8136:
8137:
8138:
8139:
8140:
8141:
8142: lt_prog_compiler_wl=
8143: lt_prog_compiler_pic=
8144: lt_prog_compiler_static=
8145:
8146:
8147: if test "$GCC" = yes; then
8148: lt_prog_compiler_wl='-Wl,'
8149: lt_prog_compiler_static='-static'
8150:
8151: case $host_os in
8152: aix*)
8153: # All AIX code is PIC.
8154: if test "$host_cpu" = ia64; then
8155: # AIX 5 now supports IA64 processor
8156: lt_prog_compiler_static='-Bstatic'
8157: fi
8158: ;;
8159:
8160: amigaos*)
8161: case $host_cpu in
8162: powerpc)
8163: # see comment about AmigaOS4 .so support
8164: lt_prog_compiler_pic='-fPIC'
8165: ;;
8166: m68k)
8167: # FIXME: we need at least 68020 code to build shared libraries, but
8168: # adding the `-m68020' flag to GCC prevents building anything better,
8169: # like `-m68040'.
8170: lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8171: ;;
8172: esac
8173: ;;
8174:
8175: beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8176: # PIC is the default for these OSes.
8177: ;;
8178:
8179: mingw* | cygwin* | pw32* | os2* | cegcc*)
8180: # This hack is so that the source file can tell whether it is being
8181: # built for inclusion in a dll (and should export symbols for example).
8182: # Although the cygwin gcc ignores -fPIC, still need this for old-style
8183: # (--disable-auto-import) libraries
8184: lt_prog_compiler_pic='-DDLL_EXPORT'
8185: ;;
8186:
8187: darwin* | rhapsody*)
8188: # PIC is the default on this platform
8189: # Common symbols not allowed in MH_DYLIB files
8190: lt_prog_compiler_pic='-fno-common'
8191: ;;
8192:
8193: haiku*)
8194: # PIC is the default for Haiku.
8195: # The "-static" flag exists, but is broken.
8196: lt_prog_compiler_static=
8197: ;;
8198:
8199: hpux*)
8200: # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8201: # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8202: # sets the default TLS model and affects inlining.
8203: case $host_cpu in
8204: hppa*64*)
8205: # +Z the default
8206: ;;
8207: *)
8208: lt_prog_compiler_pic='-fPIC'
8209: ;;
8210: esac
8211: ;;
8212:
8213: interix[3-9]*)
8214: # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8215: # Instead, we relocate shared libraries at runtime.
8216: ;;
8217:
8218: msdosdjgpp*)
8219: # Just because we use GCC doesn't mean we suddenly get shared libraries
8220: # on systems that don't support them.
8221: lt_prog_compiler_can_build_shared=no
8222: enable_shared=no
8223: ;;
8224:
8225: *nto* | *qnx*)
8226: # QNX uses GNU C++, but need to define -shared option too, otherwise
8227: # it will coredump.
8228: lt_prog_compiler_pic='-fPIC -shared'
8229: ;;
8230:
8231: sysv4*MP*)
8232: if test -d /usr/nec; then
8233: lt_prog_compiler_pic=-Kconform_pic
8234: fi
8235: ;;
8236:
8237: *)
8238: lt_prog_compiler_pic='-fPIC'
8239: ;;
8240: esac
8241:
8242: case $cc_basename in
8243: nvcc*) # Cuda Compiler Driver 2.2
8244: lt_prog_compiler_wl='-Xlinker '
8245: if test -n "$lt_prog_compiler_pic"; then
8246: lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8247: fi
8248: ;;
8249: esac
8250: else
8251: # PORTME Check for flag to pass linker flags through the system compiler.
8252: case $host_os in
8253: aix*)
8254: lt_prog_compiler_wl='-Wl,'
8255: if test "$host_cpu" = ia64; then
8256: # AIX 5 now supports IA64 processor
8257: lt_prog_compiler_static='-Bstatic'
8258: else
8259: lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8260: fi
8261: ;;
8262:
8263: mingw* | cygwin* | pw32* | os2* | cegcc*)
8264: # This hack is so that the source file can tell whether it is being
8265: # built for inclusion in a dll (and should export symbols for example).
8266: lt_prog_compiler_pic='-DDLL_EXPORT'
8267: ;;
8268:
8269: hpux9* | hpux10* | hpux11*)
8270: lt_prog_compiler_wl='-Wl,'
8271: # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8272: # not for PA HP-UX.
8273: case $host_cpu in
8274: hppa*64*|ia64*)
8275: # +Z the default
8276: ;;
8277: *)
8278: lt_prog_compiler_pic='+Z'
8279: ;;
8280: esac
8281: # Is there a better lt_prog_compiler_static that works with the bundled CC?
8282: lt_prog_compiler_static='${wl}-a ${wl}archive'
8283: ;;
8284:
8285: irix5* | irix6* | nonstopux*)
8286: lt_prog_compiler_wl='-Wl,'
8287: # PIC (with -KPIC) is the default.
8288: lt_prog_compiler_static='-non_shared'
8289: ;;
8290:
8291: linux* | k*bsd*-gnu | kopensolaris*-gnu)
8292: case $cc_basename in
8293: # old Intel for x86_64 which still supported -KPIC.
8294: ecc*)
8295: lt_prog_compiler_wl='-Wl,'
8296: lt_prog_compiler_pic='-KPIC'
8297: lt_prog_compiler_static='-static'
8298: ;;
8299: # icc used to be incompatible with GCC.
8300: # ICC 10 doesn't accept -KPIC any more.
8301: icc* | ifort*)
8302: lt_prog_compiler_wl='-Wl,'
8303: lt_prog_compiler_pic='-fPIC'
8304: lt_prog_compiler_static='-static'
8305: ;;
8306: # Lahey Fortran 8.1.
8307: lf95*)
8308: lt_prog_compiler_wl='-Wl,'
8309: lt_prog_compiler_pic='--shared'
8310: lt_prog_compiler_static='--static'
8311: ;;
8312: nagfor*)
8313: # NAG Fortran compiler
8314: lt_prog_compiler_wl='-Wl,-Wl,,'
8315: lt_prog_compiler_pic='-PIC'
8316: lt_prog_compiler_static='-Bstatic'
8317: ;;
8318: pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8319: # Portland Group compilers (*not* the Pentium gcc compiler,
8320: # which looks to be a dead project)
8321: lt_prog_compiler_wl='-Wl,'
8322: lt_prog_compiler_pic='-fpic'
8323: lt_prog_compiler_static='-Bstatic'
8324: ;;
8325: ccc*)
8326: lt_prog_compiler_wl='-Wl,'
8327: # All Alpha code is PIC.
8328: lt_prog_compiler_static='-non_shared'
8329: ;;
8330: xl* | bgxl* | bgf* | mpixl*)
8331: # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8332: lt_prog_compiler_wl='-Wl,'
8333: lt_prog_compiler_pic='-qpic'
8334: lt_prog_compiler_static='-qstaticlink'
8335: ;;
8336: *)
8337: case `$CC -V 2>&1 | sed 5q` in
8338: *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8339: # Sun Fortran 8.3 passes all unrecognized flags to the linker
8340: lt_prog_compiler_pic='-KPIC'
8341: lt_prog_compiler_static='-Bstatic'
8342: lt_prog_compiler_wl=''
8343: ;;
8344: *Sun\ F* | *Sun*Fortran*)
8345: lt_prog_compiler_pic='-KPIC'
8346: lt_prog_compiler_static='-Bstatic'
8347: lt_prog_compiler_wl='-Qoption ld '
8348: ;;
8349: *Sun\ C*)
8350: # Sun C 5.9
8351: lt_prog_compiler_pic='-KPIC'
8352: lt_prog_compiler_static='-Bstatic'
8353: lt_prog_compiler_wl='-Wl,'
8354: ;;
8355: *Intel*\ [CF]*Compiler*)
8356: lt_prog_compiler_wl='-Wl,'
8357: lt_prog_compiler_pic='-fPIC'
8358: lt_prog_compiler_static='-static'
8359: ;;
8360: *Portland\ Group*)
8361: lt_prog_compiler_wl='-Wl,'
8362: lt_prog_compiler_pic='-fpic'
8363: lt_prog_compiler_static='-Bstatic'
8364: ;;
8365: esac
8366: ;;
8367: esac
8368: ;;
8369:
8370: newsos6)
8371: lt_prog_compiler_pic='-KPIC'
8372: lt_prog_compiler_static='-Bstatic'
8373: ;;
8374:
8375: *nto* | *qnx*)
8376: # QNX uses GNU C++, but need to define -shared option too, otherwise
8377: # it will coredump.
8378: lt_prog_compiler_pic='-fPIC -shared'
8379: ;;
8380:
8381: osf3* | osf4* | osf5*)
8382: lt_prog_compiler_wl='-Wl,'
8383: # All OSF/1 code is PIC.
8384: lt_prog_compiler_static='-non_shared'
8385: ;;
8386:
8387: rdos*)
8388: lt_prog_compiler_static='-non_shared'
8389: ;;
8390:
8391: solaris*)
8392: lt_prog_compiler_pic='-KPIC'
8393: lt_prog_compiler_static='-Bstatic'
8394: case $cc_basename in
8395: f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8396: lt_prog_compiler_wl='-Qoption ld ';;
8397: *)
8398: lt_prog_compiler_wl='-Wl,';;
8399: esac
8400: ;;
8401:
8402: sunos4*)
8403: lt_prog_compiler_wl='-Qoption ld '
8404: lt_prog_compiler_pic='-PIC'
8405: lt_prog_compiler_static='-Bstatic'
8406: ;;
8407:
8408: sysv4 | sysv4.2uw2* | sysv4.3*)
8409: lt_prog_compiler_wl='-Wl,'
8410: lt_prog_compiler_pic='-KPIC'
8411: lt_prog_compiler_static='-Bstatic'
8412: ;;
8413:
8414: sysv4*MP*)
8415: if test -d /usr/nec ;then
8416: lt_prog_compiler_pic='-Kconform_pic'
8417: lt_prog_compiler_static='-Bstatic'
8418: fi
8419: ;;
8420:
8421: sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8422: lt_prog_compiler_wl='-Wl,'
8423: lt_prog_compiler_pic='-KPIC'
8424: lt_prog_compiler_static='-Bstatic'
8425: ;;
8426:
8427: unicos*)
8428: lt_prog_compiler_wl='-Wl,'
8429: lt_prog_compiler_can_build_shared=no
8430: ;;
8431:
8432: uts4*)
8433: lt_prog_compiler_pic='-pic'
8434: lt_prog_compiler_static='-Bstatic'
8435: ;;
8436:
8437: *)
8438: lt_prog_compiler_can_build_shared=no
8439: ;;
8440: esac
8441: fi
8442:
8443: case $host_os in
8444: # For platforms which do not support PIC, -DPIC is meaningless:
8445: *djgpp*)
8446: lt_prog_compiler_pic=
8447: ;;
8448: *)
8449: lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8450: ;;
8451: esac
8452:
8453: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8454: $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8455: if ${lt_cv_prog_compiler_pic+:} false; then :
8456: $as_echo_n "(cached) " >&6
8457: else
8458: lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8459: fi
8460: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8461: $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8462: lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8463:
8464: #
8465: # Check to make sure the PIC flag actually works.
8466: #
8467: if test -n "$lt_prog_compiler_pic"; then
8468: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8469: $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8470: if ${lt_cv_prog_compiler_pic_works+:} false; then :
8471: $as_echo_n "(cached) " >&6
8472: else
8473: lt_cv_prog_compiler_pic_works=no
8474: ac_outfile=conftest.$ac_objext
8475: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8476: lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8477: # Insert the option either (1) after the last *FLAGS variable, or
8478: # (2) before a word containing "conftest.", or (3) at the end.
8479: # Note that $ac_compile itself does not contain backslashes and begins
8480: # with a dollar sign (not a hyphen), so the echo should work correctly.
8481: # The option is referenced via a variable to avoid confusing sed.
8482: lt_compile=`echo "$ac_compile" | $SED \
8483: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8484: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8485: -e 's:$: $lt_compiler_flag:'`
8486: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8487: (eval "$lt_compile" 2>conftest.err)
8488: ac_status=$?
8489: cat conftest.err >&5
8490: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8491: if (exit $ac_status) && test -s "$ac_outfile"; then
8492: # The compiler can only warn and ignore the option if not recognized
8493: # So say no if there are warnings other than the usual output.
8494: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8495: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8496: if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8497: lt_cv_prog_compiler_pic_works=yes
8498: fi
8499: fi
8500: $RM conftest*
8501:
8502: fi
8503: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8504: $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8505:
8506: if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8507: case $lt_prog_compiler_pic in
8508: "" | " "*) ;;
8509: *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8510: esac
8511: else
8512: lt_prog_compiler_pic=
8513: lt_prog_compiler_can_build_shared=no
8514: fi
8515:
8516: fi
8517:
8518:
8519:
8520:
8521:
8522:
8523:
8524:
8525:
8526:
8527:
8528: #
8529: # Check to make sure the static flag actually works.
8530: #
8531: wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8532: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8533: $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8534: if ${lt_cv_prog_compiler_static_works+:} false; then :
8535: $as_echo_n "(cached) " >&6
8536: else
8537: lt_cv_prog_compiler_static_works=no
8538: save_LDFLAGS="$LDFLAGS"
8539: LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8540: echo "$lt_simple_link_test_code" > conftest.$ac_ext
8541: if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8542: # The linker can only warn and ignore the option if not recognized
8543: # So say no if there are warnings
8544: if test -s conftest.err; then
8545: # Append any errors to the config.log.
8546: cat conftest.err 1>&5
8547: $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8548: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8549: if diff conftest.exp conftest.er2 >/dev/null; then
8550: lt_cv_prog_compiler_static_works=yes
8551: fi
8552: else
8553: lt_cv_prog_compiler_static_works=yes
8554: fi
8555: fi
8556: $RM -r conftest*
8557: LDFLAGS="$save_LDFLAGS"
8558:
8559: fi
8560: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8561: $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8562:
8563: if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8564: :
8565: else
8566: lt_prog_compiler_static=
8567: fi
8568:
8569:
8570:
8571:
8572:
8573:
8574:
8575: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8576: $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8577: if ${lt_cv_prog_compiler_c_o+:} false; then :
8578: $as_echo_n "(cached) " >&6
8579: else
8580: lt_cv_prog_compiler_c_o=no
8581: $RM -r conftest 2>/dev/null
8582: mkdir conftest
8583: cd conftest
8584: mkdir out
8585: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8586:
8587: lt_compiler_flag="-o out/conftest2.$ac_objext"
8588: # Insert the option either (1) after the last *FLAGS variable, or
8589: # (2) before a word containing "conftest.", or (3) at the end.
8590: # Note that $ac_compile itself does not contain backslashes and begins
8591: # with a dollar sign (not a hyphen), so the echo should work correctly.
8592: lt_compile=`echo "$ac_compile" | $SED \
8593: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8594: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8595: -e 's:$: $lt_compiler_flag:'`
8596: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8597: (eval "$lt_compile" 2>out/conftest.err)
8598: ac_status=$?
8599: cat out/conftest.err >&5
8600: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8601: if (exit $ac_status) && test -s out/conftest2.$ac_objext
8602: then
8603: # The compiler can only warn and ignore the option if not recognized
8604: # So say no if there are warnings
8605: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8606: $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8607: if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8608: lt_cv_prog_compiler_c_o=yes
8609: fi
8610: fi
8611: chmod u+w . 2>&5
8612: $RM conftest*
8613: # SGI C++ compiler will create directory out/ii_files/ for
8614: # template instantiation
8615: test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8616: $RM out/* && rmdir out
8617: cd ..
8618: $RM -r conftest
8619: $RM conftest*
8620:
8621: fi
8622: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8623: $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8624:
8625:
8626:
8627:
8628:
8629:
8630: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8631: $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8632: if ${lt_cv_prog_compiler_c_o+:} false; then :
8633: $as_echo_n "(cached) " >&6
8634: else
8635: lt_cv_prog_compiler_c_o=no
8636: $RM -r conftest 2>/dev/null
8637: mkdir conftest
8638: cd conftest
8639: mkdir out
8640: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8641:
8642: lt_compiler_flag="-o out/conftest2.$ac_objext"
8643: # Insert the option either (1) after the last *FLAGS variable, or
8644: # (2) before a word containing "conftest.", or (3) at the end.
8645: # Note that $ac_compile itself does not contain backslashes and begins
8646: # with a dollar sign (not a hyphen), so the echo should work correctly.
8647: lt_compile=`echo "$ac_compile" | $SED \
8648: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8649: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8650: -e 's:$: $lt_compiler_flag:'`
8651: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8652: (eval "$lt_compile" 2>out/conftest.err)
8653: ac_status=$?
8654: cat out/conftest.err >&5
8655: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8656: if (exit $ac_status) && test -s out/conftest2.$ac_objext
8657: then
8658: # The compiler can only warn and ignore the option if not recognized
8659: # So say no if there are warnings
8660: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8661: $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8662: if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8663: lt_cv_prog_compiler_c_o=yes
8664: fi
8665: fi
8666: chmod u+w . 2>&5
8667: $RM conftest*
8668: # SGI C++ compiler will create directory out/ii_files/ for
8669: # template instantiation
8670: test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8671: $RM out/* && rmdir out
8672: cd ..
8673: $RM -r conftest
8674: $RM conftest*
8675:
8676: fi
8677: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8678: $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8679:
8680:
8681:
8682:
8683: hard_links="nottested"
8684: if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8685: # do not overwrite the value of need_locks provided by the user
8686: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8687: $as_echo_n "checking if we can lock with hard links... " >&6; }
8688: hard_links=yes
8689: $RM conftest*
8690: ln conftest.a conftest.b 2>/dev/null && hard_links=no
8691: touch conftest.a
8692: ln conftest.a conftest.b 2>&5 || hard_links=no
8693: ln conftest.a conftest.b 2>/dev/null && hard_links=no
8694: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8695: $as_echo "$hard_links" >&6; }
8696: if test "$hard_links" = no; then
8697: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8698: $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8699: need_locks=warn
8700: fi
8701: else
8702: need_locks=no
8703: fi
8704:
8705:
8706:
8707:
8708:
8709:
8710: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8711: $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8712:
8713: runpath_var=
8714: allow_undefined_flag=
8715: always_export_symbols=no
8716: archive_cmds=
8717: archive_expsym_cmds=
8718: compiler_needs_object=no
8719: enable_shared_with_static_runtimes=no
8720: export_dynamic_flag_spec=
8721: export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8722: hardcode_automatic=no
8723: hardcode_direct=no
8724: hardcode_direct_absolute=no
8725: hardcode_libdir_flag_spec=
8726: hardcode_libdir_separator=
8727: hardcode_minus_L=no
8728: hardcode_shlibpath_var=unsupported
8729: inherit_rpath=no
8730: link_all_deplibs=unknown
8731: module_cmds=
8732: module_expsym_cmds=
8733: old_archive_from_new_cmds=
8734: old_archive_from_expsyms_cmds=
8735: thread_safe_flag_spec=
8736: whole_archive_flag_spec=
8737: # include_expsyms should be a list of space-separated symbols to be *always*
8738: # included in the symbol list
8739: include_expsyms=
8740: # exclude_expsyms can be an extended regexp of symbols to exclude
8741: # it will be wrapped by ` (' and `)$', so one must not match beginning or
8742: # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8743: # as well as any symbol that contains `d'.
8744: exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8745: # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8746: # platforms (ab)use it in PIC code, but their linkers get confused if
8747: # the symbol is explicitly referenced. Since portable code cannot
8748: # rely on this symbol name, it's probably fine to never include it in
8749: # preloaded symbol tables.
8750: # Exclude shared library initialization/finalization symbols.
8751: extract_expsyms_cmds=
8752:
8753: case $host_os in
8754: cygwin* | mingw* | pw32* | cegcc*)
8755: # FIXME: the MSVC++ port hasn't been tested in a loooong time
8756: # When not using gcc, we currently assume that we are using
8757: # Microsoft Visual C++.
8758: if test "$GCC" != yes; then
8759: with_gnu_ld=no
8760: fi
8761: ;;
8762: interix*)
8763: # we just hope/assume this is gcc and not c89 (= MSVC++)
8764: with_gnu_ld=yes
8765: ;;
8766: openbsd*)
8767: with_gnu_ld=no
8768: ;;
8769: esac
8770:
8771: ld_shlibs=yes
8772:
8773: # On some targets, GNU ld is compatible enough with the native linker
8774: # that we're better off using the native interface for both.
8775: lt_use_gnu_ld_interface=no
8776: if test "$with_gnu_ld" = yes; then
8777: case $host_os in
8778: aix*)
8779: # The AIX port of GNU ld has always aspired to compatibility
8780: # with the native linker. However, as the warning in the GNU ld
8781: # block says, versions before 2.19.5* couldn't really create working
8782: # shared libraries, regardless of the interface used.
8783: case `$LD -v 2>&1` in
8784: *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8785: *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8786: *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8787: *)
8788: lt_use_gnu_ld_interface=yes
8789: ;;
8790: esac
8791: ;;
8792: *)
8793: lt_use_gnu_ld_interface=yes
8794: ;;
8795: esac
8796: fi
8797:
8798: if test "$lt_use_gnu_ld_interface" = yes; then
8799: # If archive_cmds runs LD, not CC, wlarc should be empty
8800: wlarc='${wl}'
8801:
8802: # Set some defaults for GNU ld with shared library support. These
8803: # are reset later if shared libraries are not supported. Putting them
8804: # here allows them to be overridden if necessary.
8805: runpath_var=LD_RUN_PATH
8806: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8807: export_dynamic_flag_spec='${wl}--export-dynamic'
8808: # ancient GNU ld didn't support --whole-archive et. al.
8809: if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8810: whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8811: else
8812: whole_archive_flag_spec=
8813: fi
8814: supports_anon_versioning=no
8815: case `$LD -v 2>&1` in
8816: *GNU\ gold*) supports_anon_versioning=yes ;;
8817: *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8818: *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8819: *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8820: *\ 2.11.*) ;; # other 2.11 versions
8821: *) supports_anon_versioning=yes ;;
8822: esac
8823:
8824: # See if GNU ld supports shared libraries.
8825: case $host_os in
8826: aix[3-9]*)
8827: # On AIX/PPC, the GNU linker is very broken
8828: if test "$host_cpu" != ia64; then
8829: ld_shlibs=no
8830: cat <<_LT_EOF 1>&2
8831:
8832: *** Warning: the GNU linker, at least up to release 2.19, is reported
8833: *** to be unable to reliably create shared libraries on AIX.
8834: *** Therefore, libtool is disabling shared libraries support. If you
8835: *** really care for shared libraries, you may want to install binutils
8836: *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8837: *** You will then need to restart the configuration process.
8838:
8839: _LT_EOF
8840: fi
8841: ;;
8842:
8843: amigaos*)
8844: case $host_cpu in
8845: powerpc)
8846: # see comment about AmigaOS4 .so support
8847: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8848: archive_expsym_cmds=''
8849: ;;
8850: m68k)
8851: 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)'
8852: hardcode_libdir_flag_spec='-L$libdir'
8853: hardcode_minus_L=yes
8854: ;;
8855: esac
8856: ;;
8857:
8858: beos*)
8859: if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8860: allow_undefined_flag=unsupported
8861: # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8862: # support --undefined. This deserves some investigation. FIXME
8863: archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8864: else
8865: ld_shlibs=no
8866: fi
8867: ;;
8868:
8869: cygwin* | mingw* | pw32* | cegcc*)
8870: # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8871: # as there is no search path for DLLs.
8872: hardcode_libdir_flag_spec='-L$libdir'
8873: export_dynamic_flag_spec='${wl}--export-all-symbols'
8874: allow_undefined_flag=unsupported
8875: always_export_symbols=no
8876: enable_shared_with_static_runtimes=yes
8877: 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'
8878: exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8879:
8880: if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8881: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8882: # If the export-symbols file already is a .def file (1st line
8883: # is EXPORTS), use it as is; otherwise, prepend...
8884: archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8885: cp $export_symbols $output_objdir/$soname.def;
8886: else
8887: echo EXPORTS > $output_objdir/$soname.def;
8888: cat $export_symbols >> $output_objdir/$soname.def;
8889: fi~
8890: $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8891: else
8892: ld_shlibs=no
8893: fi
8894: ;;
8895:
8896: haiku*)
8897: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8898: link_all_deplibs=yes
8899: ;;
8900:
8901: interix[3-9]*)
8902: hardcode_direct=no
8903: hardcode_shlibpath_var=no
8904: hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8905: export_dynamic_flag_spec='${wl}-E'
8906: # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8907: # Instead, shared libraries are loaded at an image base (0x10000000 by
8908: # default) and relocated if they conflict, which is a slow very memory
8909: # consuming and fragmenting process. To avoid this, we pick a random,
8910: # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8911: # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8912: archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8913: 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'
8914: ;;
8915:
8916: gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8917: tmp_diet=no
8918: if test "$host_os" = linux-dietlibc; then
8919: case $cc_basename in
8920: diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8921: esac
8922: fi
8923: if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8924: && test "$tmp_diet" = no
8925: then
8926: tmp_addflag=' $pic_flag'
8927: tmp_sharedflag='-shared'
8928: case $cc_basename,$host_cpu in
8929: pgcc*) # Portland Group C compiler
8930: 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'
8931: tmp_addflag=' $pic_flag'
8932: ;;
8933: pgf77* | pgf90* | pgf95* | pgfortran*)
8934: # Portland Group f77 and f90 compilers
8935: 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'
8936: tmp_addflag=' $pic_flag -Mnomain' ;;
8937: ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8938: tmp_addflag=' -i_dynamic' ;;
8939: efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8940: tmp_addflag=' -i_dynamic -nofor_main' ;;
8941: ifc* | ifort*) # Intel Fortran compiler
8942: tmp_addflag=' -nofor_main' ;;
8943: lf95*) # Lahey Fortran 8.1
8944: whole_archive_flag_spec=
8945: tmp_sharedflag='--shared' ;;
8946: xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8947: tmp_sharedflag='-qmkshrobj'
8948: tmp_addflag= ;;
8949: nvcc*) # Cuda Compiler Driver 2.2
8950: 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'
8951: compiler_needs_object=yes
8952: ;;
8953: esac
8954: case `$CC -V 2>&1 | sed 5q` in
8955: *Sun\ C*) # Sun C 5.9
8956: 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'
8957: compiler_needs_object=yes
8958: tmp_sharedflag='-G' ;;
8959: *Sun\ F*) # Sun Fortran 8.3
8960: tmp_sharedflag='-G' ;;
8961: esac
8962: archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8963:
8964: if test "x$supports_anon_versioning" = xyes; then
8965: archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8966: cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8967: echo "local: *; };" >> $output_objdir/$libname.ver~
8968: $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8969: fi
8970:
8971: case $cc_basename in
8972: xlf* | bgf* | bgxlf* | mpixlf*)
8973: # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8974: whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8975: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8976: archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8977: if test "x$supports_anon_versioning" = xyes; then
8978: archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8979: cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8980: echo "local: *; };" >> $output_objdir/$libname.ver~
8981: $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8982: fi
8983: ;;
8984: esac
8985: else
8986: ld_shlibs=no
8987: fi
8988: ;;
8989:
8990: netbsd*)
8991: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8992: archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8993: wlarc=
8994: else
8995: archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8996: archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8997: fi
8998: ;;
8999:
9000: solaris*)
9001: if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9002: ld_shlibs=no
9003: cat <<_LT_EOF 1>&2
9004:
9005: *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9006: *** create shared libraries on Solaris systems. Therefore, libtool
9007: *** is disabling shared libraries support. We urge you to upgrade GNU
9008: *** binutils to release 2.9.1 or newer. Another option is to modify
9009: *** your PATH or compiler configuration so that the native linker is
9010: *** used, and then restart.
9011:
9012: _LT_EOF
9013: elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9014: archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9015: archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9016: else
9017: ld_shlibs=no
9018: fi
9019: ;;
9020:
9021: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9022: case `$LD -v 2>&1` in
9023: *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9024: ld_shlibs=no
9025: cat <<_LT_EOF 1>&2
9026:
9027: *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9028: *** reliably create shared libraries on SCO systems. Therefore, libtool
9029: *** is disabling shared libraries support. We urge you to upgrade GNU
9030: *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9031: *** your PATH or compiler configuration so that the native linker is
9032: *** used, and then restart.
9033:
9034: _LT_EOF
9035: ;;
9036: *)
9037: # For security reasons, it is highly recommended that you always
9038: # use absolute paths for naming shared libraries, and exclude the
9039: # DT_RUNPATH tag from executables and libraries. But doing so
9040: # requires that you compile everything twice, which is a pain.
9041: if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9042: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9043: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9044: archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9045: else
9046: ld_shlibs=no
9047: fi
9048: ;;
9049: esac
9050: ;;
9051:
9052: sunos4*)
9053: archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9054: wlarc=
9055: hardcode_direct=yes
9056: hardcode_shlibpath_var=no
9057: ;;
9058:
9059: *)
9060: if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9061: archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9062: archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9063: else
9064: ld_shlibs=no
9065: fi
9066: ;;
9067: esac
9068:
9069: if test "$ld_shlibs" = no; then
9070: runpath_var=
9071: hardcode_libdir_flag_spec=
9072: export_dynamic_flag_spec=
9073: whole_archive_flag_spec=
9074: fi
9075: else
9076: # PORTME fill in a description of your system's linker (not GNU ld)
9077: case $host_os in
9078: aix3*)
9079: allow_undefined_flag=unsupported
9080: always_export_symbols=yes
9081: 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'
9082: # Note: this linker hardcodes the directories in LIBPATH if there
9083: # are no directories specified by -L.
9084: hardcode_minus_L=yes
9085: if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9086: # Neither direct hardcoding nor static linking is supported with a
9087: # broken collect2.
9088: hardcode_direct=unsupported
9089: fi
9090: ;;
9091:
9092: aix[4-9]*)
9093: if test "$host_cpu" = ia64; then
9094: # On IA64, the linker does run time linking by default, so we don't
9095: # have to do anything special.
9096: aix_use_runtimelinking=no
9097: exp_sym_flag='-Bexport'
9098: no_entry_flag=""
9099: else
9100: # If we're using GNU nm, then we don't want the "-C" option.
9101: # -C means demangle to AIX nm, but means don't demangle with GNU nm
9102: # Also, AIX nm treats weak defined symbols like other global
9103: # defined symbols, whereas GNU nm marks them as "W".
9104: if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9105: export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9106: else
9107: export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9108: fi
9109: aix_use_runtimelinking=no
9110:
9111: # Test if we are trying to use run time linking or normal
9112: # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9113: # need to do runtime linking.
9114: case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9115: for ld_flag in $LDFLAGS; do
9116: if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9117: aix_use_runtimelinking=yes
9118: break
9119: fi
9120: done
9121: ;;
9122: esac
9123:
9124: exp_sym_flag='-bexport'
9125: no_entry_flag='-bnoentry'
9126: fi
9127:
9128: # When large executables or shared objects are built, AIX ld can
9129: # have problems creating the table of contents. If linking a library
9130: # or program results in "error TOC overflow" add -mminimal-toc to
9131: # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9132: # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9133:
9134: archive_cmds=''
9135: hardcode_direct=yes
9136: hardcode_direct_absolute=yes
9137: hardcode_libdir_separator=':'
9138: link_all_deplibs=yes
9139: file_list_spec='${wl}-f,'
9140:
9141: if test "$GCC" = yes; then
9142: case $host_os in aix4.[012]|aix4.[012].*)
9143: # We only want to do this on AIX 4.2 and lower, the check
9144: # below for broken collect2 doesn't work under 4.3+
9145: collect2name=`${CC} -print-prog-name=collect2`
9146: if test -f "$collect2name" &&
9147: strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9148: then
9149: # We have reworked collect2
9150: :
9151: else
9152: # We have old collect2
9153: hardcode_direct=unsupported
9154: # It fails to find uninstalled libraries when the uninstalled
9155: # path is not listed in the libpath. Setting hardcode_minus_L
9156: # to unsupported forces relinking
9157: hardcode_minus_L=yes
9158: hardcode_libdir_flag_spec='-L$libdir'
9159: hardcode_libdir_separator=
9160: fi
9161: ;;
9162: esac
9163: shared_flag='-shared'
9164: if test "$aix_use_runtimelinking" = yes; then
9165: shared_flag="$shared_flag "'${wl}-G'
9166: fi
9167: else
9168: # not using gcc
9169: if test "$host_cpu" = ia64; then
9170: # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9171: # chokes on -Wl,-G. The following line is correct:
9172: shared_flag='-G'
9173: else
9174: if test "$aix_use_runtimelinking" = yes; then
9175: shared_flag='${wl}-G'
9176: else
9177: shared_flag='${wl}-bM:SRE'
9178: fi
9179: fi
9180: fi
9181:
9182: export_dynamic_flag_spec='${wl}-bexpall'
9183: # It seems that -bexpall does not export symbols beginning with
9184: # underscore (_), so it is better to generate a list of symbols to export.
9185: always_export_symbols=yes
9186: if test "$aix_use_runtimelinking" = yes; then
9187: # Warning - without using the other runtime loading flags (-brtl),
9188: # -berok will link without error, but may produce a broken library.
9189: allow_undefined_flag='-berok'
9190: # Determine the default libpath from the value encoded in an
9191: # empty executable.
9192: if test "${lt_cv_aix_libpath+set}" = set; then
9193: aix_libpath=$lt_cv_aix_libpath
9194: else
9195: if ${lt_cv_aix_libpath_+:} false; then :
9196: $as_echo_n "(cached) " >&6
9197: else
9198: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9199: /* end confdefs.h. */
9200:
9201: int
9202: main ()
9203: {
9204:
9205: ;
9206: return 0;
9207: }
9208: _ACEOF
9209: if ac_fn_c_try_link "$LINENO"; then :
9210:
9211: lt_aix_libpath_sed='
9212: /Import File Strings/,/^$/ {
9213: /^0/ {
9214: s/^0 *\([^ ]*\) *$/\1/
9215: p
9216: }
9217: }'
9218: lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9219: # Check for a 64-bit object if we didn't find anything.
9220: if test -z "$lt_cv_aix_libpath_"; then
9221: lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9222: fi
9223: fi
9224: rm -f core conftest.err conftest.$ac_objext \
9225: conftest$ac_exeext conftest.$ac_ext
9226: if test -z "$lt_cv_aix_libpath_"; then
9227: lt_cv_aix_libpath_="/usr/lib:/lib"
9228: fi
9229:
9230: fi
9231:
9232: aix_libpath=$lt_cv_aix_libpath_
9233: fi
9234:
9235: hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9236: archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9237: else
9238: if test "$host_cpu" = ia64; then
9239: hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9240: allow_undefined_flag="-z nodefs"
9241: 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"
9242: else
9243: # Determine the default libpath from the value encoded in an
9244: # empty executable.
9245: if test "${lt_cv_aix_libpath+set}" = set; then
9246: aix_libpath=$lt_cv_aix_libpath
9247: else
9248: if ${lt_cv_aix_libpath_+:} false; then :
9249: $as_echo_n "(cached) " >&6
9250: else
9251: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9252: /* end confdefs.h. */
9253:
9254: int
9255: main ()
9256: {
9257:
9258: ;
9259: return 0;
9260: }
9261: _ACEOF
9262: if ac_fn_c_try_link "$LINENO"; then :
9263:
9264: lt_aix_libpath_sed='
9265: /Import File Strings/,/^$/ {
9266: /^0/ {
9267: s/^0 *\([^ ]*\) *$/\1/
9268: p
9269: }
9270: }'
9271: lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9272: # Check for a 64-bit object if we didn't find anything.
9273: if test -z "$lt_cv_aix_libpath_"; then
9274: lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9275: fi
9276: fi
9277: rm -f core conftest.err conftest.$ac_objext \
9278: conftest$ac_exeext conftest.$ac_ext
9279: if test -z "$lt_cv_aix_libpath_"; then
9280: lt_cv_aix_libpath_="/usr/lib:/lib"
9281: fi
9282:
9283: fi
9284:
9285: aix_libpath=$lt_cv_aix_libpath_
9286: fi
9287:
9288: hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9289: # Warning - without using the other run time loading flags,
9290: # -berok will link without error, but may produce a broken library.
9291: no_undefined_flag=' ${wl}-bernotok'
9292: allow_undefined_flag=' ${wl}-berok'
9293: if test "$with_gnu_ld" = yes; then
9294: # We only use this code for GNU lds that support --whole-archive.
9295: whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9296: else
9297: # Exported symbols can be pulled into shared objects from archives
9298: whole_archive_flag_spec='$convenience'
9299: fi
9300: archive_cmds_need_lc=yes
9301: # This is similar to how AIX traditionally builds its shared libraries.
9302: archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9303: fi
9304: fi
9305: ;;
9306:
9307: amigaos*)
9308: case $host_cpu in
9309: powerpc)
9310: # see comment about AmigaOS4 .so support
9311: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9312: archive_expsym_cmds=''
9313: ;;
9314: m68k)
9315: 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)'
9316: hardcode_libdir_flag_spec='-L$libdir'
9317: hardcode_minus_L=yes
9318: ;;
9319: esac
9320: ;;
9321:
9322: bsdi[45]*)
9323: export_dynamic_flag_spec=-rdynamic
9324: ;;
9325:
9326: cygwin* | mingw* | pw32* | cegcc*)
9327: # When not using gcc, we currently assume that we are using
9328: # Microsoft Visual C++.
9329: # hardcode_libdir_flag_spec is actually meaningless, as there is
9330: # no search path for DLLs.
9331: case $cc_basename in
9332: cl*)
9333: # Native MSVC
9334: hardcode_libdir_flag_spec=' '
9335: allow_undefined_flag=unsupported
9336: always_export_symbols=yes
9337: file_list_spec='@'
9338: # Tell ltmain to make .lib files, not .a files.
9339: libext=lib
9340: # Tell ltmain to make .dll files, not .so files.
9341: shrext_cmds=".dll"
9342: # FIXME: Setting linknames here is a bad hack.
9343: archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9344: archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9345: sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9346: else
9347: sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9348: fi~
9349: $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9350: linknames='
9351: # The linker will not automatically build a static lib if we build a DLL.
9352: # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9353: enable_shared_with_static_runtimes=yes
9354: exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9355: export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9356: # Don't use ranlib
9357: old_postinstall_cmds='chmod 644 $oldlib'
9358: postlink_cmds='lt_outputfile="@OUTPUT@"~
9359: lt_tool_outputfile="@TOOL_OUTPUT@"~
9360: case $lt_outputfile in
9361: *.exe|*.EXE) ;;
9362: *)
9363: lt_outputfile="$lt_outputfile.exe"
9364: lt_tool_outputfile="$lt_tool_outputfile.exe"
9365: ;;
9366: esac~
9367: if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9368: $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9369: $RM "$lt_outputfile.manifest";
9370: fi'
9371: ;;
9372: *)
9373: # Assume MSVC wrapper
9374: hardcode_libdir_flag_spec=' '
9375: allow_undefined_flag=unsupported
9376: # Tell ltmain to make .lib files, not .a files.
9377: libext=lib
9378: # Tell ltmain to make .dll files, not .so files.
9379: shrext_cmds=".dll"
9380: # FIXME: Setting linknames here is a bad hack.
9381: archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9382: # The linker will automatically build a .lib file if we build a DLL.
9383: old_archive_from_new_cmds='true'
9384: # FIXME: Should let the user specify the lib program.
9385: old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9386: enable_shared_with_static_runtimes=yes
9387: ;;
9388: esac
9389: ;;
9390:
9391: darwin* | rhapsody*)
9392:
9393:
9394: archive_cmds_need_lc=no
9395: hardcode_direct=no
9396: hardcode_automatic=yes
9397: hardcode_shlibpath_var=unsupported
9398: if test "$lt_cv_ld_force_load" = "yes"; then
9399: 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\"`'
9400:
9401: else
9402: whole_archive_flag_spec=''
9403: fi
9404: link_all_deplibs=yes
9405: allow_undefined_flag="$_lt_dar_allow_undefined"
9406: case $cc_basename in
9407: ifort*) _lt_dar_can_shared=yes ;;
9408: *) _lt_dar_can_shared=$GCC ;;
9409: esac
9410: if test "$_lt_dar_can_shared" = "yes"; then
9411: output_verbose_link_cmd=func_echo_all
9412: archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9413: module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9414: 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}"
9415: 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}"
9416:
9417: else
9418: ld_shlibs=no
9419: fi
9420:
9421: ;;
9422:
9423: dgux*)
9424: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9425: hardcode_libdir_flag_spec='-L$libdir'
9426: hardcode_shlibpath_var=no
9427: ;;
9428:
9429: # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9430: # support. Future versions do this automatically, but an explicit c++rt0.o
9431: # does not break anything, and helps significantly (at the cost of a little
9432: # extra space).
9433: freebsd2.2*)
9434: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9435: hardcode_libdir_flag_spec='-R$libdir'
9436: hardcode_direct=yes
9437: hardcode_shlibpath_var=no
9438: ;;
9439:
9440: # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9441: freebsd2.*)
9442: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9443: hardcode_direct=yes
9444: hardcode_minus_L=yes
9445: hardcode_shlibpath_var=no
9446: ;;
9447:
9448: # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9449: freebsd* | dragonfly*)
9450: archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9451: hardcode_libdir_flag_spec='-R$libdir'
9452: hardcode_direct=yes
9453: hardcode_shlibpath_var=no
9454: ;;
9455:
9456: hpux9*)
9457: if test "$GCC" = yes; then
9458: archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9459: else
9460: archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9461: fi
9462: hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9463: hardcode_libdir_separator=:
9464: hardcode_direct=yes
9465:
9466: # hardcode_minus_L: Not really in the search PATH,
9467: # but as the default location of the library.
9468: hardcode_minus_L=yes
9469: export_dynamic_flag_spec='${wl}-E'
9470: ;;
9471:
9472: hpux10*)
9473: if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9474: archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9475: else
9476: archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9477: fi
9478: if test "$with_gnu_ld" = no; then
9479: hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9480: hardcode_libdir_separator=:
9481: hardcode_direct=yes
9482: hardcode_direct_absolute=yes
9483: export_dynamic_flag_spec='${wl}-E'
9484: # hardcode_minus_L: Not really in the search PATH,
9485: # but as the default location of the library.
9486: hardcode_minus_L=yes
9487: fi
9488: ;;
9489:
9490: hpux11*)
9491: if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9492: case $host_cpu in
9493: hppa*64*)
9494: archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9495: ;;
9496: ia64*)
9497: archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9498: ;;
9499: *)
9500: archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9501: ;;
9502: esac
9503: else
9504: case $host_cpu in
9505: hppa*64*)
9506: archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9507: ;;
9508: ia64*)
9509: archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9510: ;;
9511: *)
9512:
9513: # Older versions of the 11.00 compiler do not understand -b yet
9514: # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9515: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9516: $as_echo_n "checking if $CC understands -b... " >&6; }
9517: if ${lt_cv_prog_compiler__b+:} false; then :
9518: $as_echo_n "(cached) " >&6
9519: else
9520: lt_cv_prog_compiler__b=no
9521: save_LDFLAGS="$LDFLAGS"
9522: LDFLAGS="$LDFLAGS -b"
9523: echo "$lt_simple_link_test_code" > conftest.$ac_ext
9524: if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9525: # The linker can only warn and ignore the option if not recognized
9526: # So say no if there are warnings
9527: if test -s conftest.err; then
9528: # Append any errors to the config.log.
9529: cat conftest.err 1>&5
9530: $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9531: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9532: if diff conftest.exp conftest.er2 >/dev/null; then
9533: lt_cv_prog_compiler__b=yes
9534: fi
9535: else
9536: lt_cv_prog_compiler__b=yes
9537: fi
9538: fi
9539: $RM -r conftest*
9540: LDFLAGS="$save_LDFLAGS"
9541:
9542: fi
9543: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9544: $as_echo "$lt_cv_prog_compiler__b" >&6; }
9545:
9546: if test x"$lt_cv_prog_compiler__b" = xyes; then
9547: archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9548: else
9549: archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9550: fi
9551:
9552: ;;
9553: esac
9554: fi
9555: if test "$with_gnu_ld" = no; then
9556: hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9557: hardcode_libdir_separator=:
9558:
9559: case $host_cpu in
9560: hppa*64*|ia64*)
9561: hardcode_direct=no
9562: hardcode_shlibpath_var=no
9563: ;;
9564: *)
9565: hardcode_direct=yes
9566: hardcode_direct_absolute=yes
9567: export_dynamic_flag_spec='${wl}-E'
9568:
9569: # hardcode_minus_L: Not really in the search PATH,
9570: # but as the default location of the library.
9571: hardcode_minus_L=yes
9572: ;;
9573: esac
9574: fi
9575: ;;
9576:
9577: irix5* | irix6* | nonstopux*)
9578: if test "$GCC" = yes; then
9579: 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'
9580: # Try to use the -exported_symbol ld option, if it does not
9581: # work, assume that -exports_file does not work either and
9582: # implicitly export all symbols.
9583: # This should be the same for all languages, so no per-tag cache variable.
9584: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9585: $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9586: if ${lt_cv_irix_exported_symbol+:} false; then :
9587: $as_echo_n "(cached) " >&6
9588: else
9589: save_LDFLAGS="$LDFLAGS"
9590: LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9591: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9592: /* end confdefs.h. */
9593: int foo (void) { return 0; }
9594: _ACEOF
9595: if ac_fn_c_try_link "$LINENO"; then :
9596: lt_cv_irix_exported_symbol=yes
9597: else
9598: lt_cv_irix_exported_symbol=no
9599: fi
9600: rm -f core conftest.err conftest.$ac_objext \
9601: conftest$ac_exeext conftest.$ac_ext
9602: LDFLAGS="$save_LDFLAGS"
9603: fi
9604: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9605: $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9606: if test "$lt_cv_irix_exported_symbol" = yes; then
9607: 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'
9608: fi
9609: else
9610: 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'
9611: 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'
9612: fi
9613: archive_cmds_need_lc='no'
9614: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9615: hardcode_libdir_separator=:
9616: inherit_rpath=yes
9617: link_all_deplibs=yes
9618: ;;
9619:
9620: netbsd*)
9621: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9622: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9623: else
9624: archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9625: fi
9626: hardcode_libdir_flag_spec='-R$libdir'
9627: hardcode_direct=yes
9628: hardcode_shlibpath_var=no
9629: ;;
9630:
9631: newsos6)
9632: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9633: hardcode_direct=yes
9634: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9635: hardcode_libdir_separator=:
9636: hardcode_shlibpath_var=no
9637: ;;
9638:
9639: *nto* | *qnx*)
9640: ;;
9641:
9642: openbsd*)
9643: if test -f /usr/libexec/ld.so; then
9644: hardcode_direct=yes
9645: hardcode_shlibpath_var=no
9646: hardcode_direct_absolute=yes
9647: if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9648: archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9649: archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9650: hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9651: export_dynamic_flag_spec='${wl}-E'
9652: else
9653: case $host_os in
9654: openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9655: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9656: hardcode_libdir_flag_spec='-R$libdir'
9657: ;;
9658: *)
9659: archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9660: hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9661: ;;
9662: esac
9663: fi
9664: else
9665: ld_shlibs=no
9666: fi
9667: ;;
9668:
9669: os2*)
9670: hardcode_libdir_flag_spec='-L$libdir'
9671: hardcode_minus_L=yes
9672: allow_undefined_flag=unsupported
9673: archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
9674: old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9675: ;;
9676:
9677: osf3*)
9678: if test "$GCC" = yes; then
9679: allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9680: 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'
9681: else
9682: allow_undefined_flag=' -expect_unresolved \*'
9683: 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'
9684: fi
9685: archive_cmds_need_lc='no'
9686: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9687: hardcode_libdir_separator=:
9688: ;;
9689:
9690: osf4* | osf5*) # as osf3* with the addition of -msym flag
9691: if test "$GCC" = yes; then
9692: allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9693: 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'
9694: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9695: else
9696: allow_undefined_flag=' -expect_unresolved \*'
9697: 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'
9698: 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~
9699: $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'
9700:
9701: # Both c and cxx compiler support -rpath directly
9702: hardcode_libdir_flag_spec='-rpath $libdir'
9703: fi
9704: archive_cmds_need_lc='no'
9705: hardcode_libdir_separator=:
9706: ;;
9707:
9708: solaris*)
9709: no_undefined_flag=' -z defs'
9710: if test "$GCC" = yes; then
9711: wlarc='${wl}'
9712: archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9713: archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9714: $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'
9715: else
9716: case `$CC -V 2>&1` in
9717: *"Compilers 5.0"*)
9718: wlarc=''
9719: archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9720: archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9721: $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9722: ;;
9723: *)
9724: wlarc='${wl}'
9725: archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9726: archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9727: $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9728: ;;
9729: esac
9730: fi
9731: hardcode_libdir_flag_spec='-R$libdir'
9732: hardcode_shlibpath_var=no
9733: case $host_os in
9734: solaris2.[0-5] | solaris2.[0-5].*) ;;
9735: *)
9736: # The compiler driver will combine and reorder linker options,
9737: # but understands `-z linker_flag'. GCC discards it without `$wl',
9738: # but is careful enough not to reorder.
9739: # Supported since Solaris 2.6 (maybe 2.5.1?)
9740: if test "$GCC" = yes; then
9741: whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
1.4 paf 9742: else
1.5 moko 9743: whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
1.4 paf 9744: fi
1.5 moko 9745: ;;
9746: esac
9747: link_all_deplibs=yes
9748: ;;
9749:
9750: sunos4*)
9751: if test "x$host_vendor" = xsequent; then
9752: # Use $CC to link under sequent, because it throws in some extra .o
9753: # files that make .init and .fini sections work.
9754: archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9755: else
9756: archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9757: fi
9758: hardcode_libdir_flag_spec='-L$libdir'
9759: hardcode_direct=yes
9760: hardcode_minus_L=yes
9761: hardcode_shlibpath_var=no
9762: ;;
9763:
9764: sysv4)
9765: case $host_vendor in
9766: sni)
9767: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9768: hardcode_direct=yes # is this really true???
9769: ;;
9770: siemens)
9771: ## LD is ld it makes a PLAMLIB
9772: ## CC just makes a GrossModule.
9773: archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9774: reload_cmds='$CC -r -o $output$reload_objs'
9775: hardcode_direct=no
9776: ;;
9777: motorola)
9778: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9779: hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9780: ;;
1.4 paf 9781: esac
1.5 moko 9782: runpath_var='LD_RUN_PATH'
9783: hardcode_shlibpath_var=no
9784: ;;
9785:
9786: sysv4.3*)
9787: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9788: hardcode_shlibpath_var=no
9789: export_dynamic_flag_spec='-Bexport'
9790: ;;
9791:
9792: sysv4*MP*)
9793: if test -d /usr/nec; then
9794: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9795: hardcode_shlibpath_var=no
9796: runpath_var=LD_RUN_PATH
9797: hardcode_runpath_var=yes
9798: ld_shlibs=yes
9799: fi
9800: ;;
9801:
9802: sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9803: no_undefined_flag='${wl}-z,text'
9804: archive_cmds_need_lc=no
9805: hardcode_shlibpath_var=no
9806: runpath_var='LD_RUN_PATH'
1.4 paf 9807:
1.5 moko 9808: if test "$GCC" = yes; then
9809: archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9810: archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
1.4 paf 9811: else
1.5 moko 9812: archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9813: archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
1.4 paf 9814: fi
1.5 moko 9815: ;;
1.4 paf 9816:
1.5 moko 9817: sysv5* | sco3.2v5* | sco5v6*)
9818: # Note: We can NOT use -z defs as we might desire, because we do not
9819: # link with -lc, and that would cause any symbols used from libc to
9820: # always be unresolved, which means just about no library would
9821: # ever link correctly. If we're not using GNU ld we use -z text
9822: # though, which does catch some bad symbols but isn't as heavy-handed
9823: # as -z defs.
9824: no_undefined_flag='${wl}-z,text'
9825: allow_undefined_flag='${wl}-z,nodefs'
9826: archive_cmds_need_lc=no
9827: hardcode_shlibpath_var=no
9828: hardcode_libdir_flag_spec='${wl}-R,$libdir'
9829: hardcode_libdir_separator=':'
9830: link_all_deplibs=yes
9831: export_dynamic_flag_spec='${wl}-Bexport'
9832: runpath_var='LD_RUN_PATH'
9833:
9834: if test "$GCC" = yes; then
9835: archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9836: archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
1.4 paf 9837: else
1.5 moko 9838: archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9839: archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
1.4 paf 9840: fi
1.5 moko 9841: ;;
9842:
9843: uts4*)
9844: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9845: hardcode_libdir_flag_spec='-L$libdir'
9846: hardcode_shlibpath_var=no
9847: ;;
9848:
9849: *)
9850: ld_shlibs=no
9851: ;;
9852: esac
9853:
9854: if test x$host_vendor = xsni; then
9855: case $host in
9856: sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9857: export_dynamic_flag_spec='${wl}-Blargedynsym'
9858: ;;
9859: esac
1.4 paf 9860: fi
1.5 moko 9861: fi
9862:
9863: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9864: $as_echo "$ld_shlibs" >&6; }
9865: test "$ld_shlibs" = no && can_build_shared=no
9866:
9867: with_gnu_ld=$with_gnu_ld
9868:
9869:
9870:
9871:
9872:
9873:
9874:
9875:
9876:
9877:
9878:
9879:
9880:
1.4 paf 9881:
9882:
1.5 moko 9883: #
9884: # Do we need to explicitly link libc?
9885: #
9886: case "x$archive_cmds_need_lc" in
9887: x|xyes)
9888: # Assume -lc should be added
9889: archive_cmds_need_lc=yes
1.4 paf 9890:
1.5 moko 9891: if test "$enable_shared" = yes && test "$GCC" = yes; then
9892: case $archive_cmds in
9893: *'~'*)
9894: # FIXME: we may have to deal with multi-command sequences.
1.4 paf 9895: ;;
1.5 moko 9896: '$CC '*)
9897: # Test whether the compiler implicitly links with -lc since on some
9898: # systems, -lgcc has to come before -lc. If gcc already passes -lc
9899: # to ld, don't add -lc before -lgcc.
9900: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9901: $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9902: if ${lt_cv_archive_cmds_need_lc+:} false; then :
9903: $as_echo_n "(cached) " >&6
9904: else
9905: $RM conftest*
9906: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9907:
9908: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9909: (eval $ac_compile) 2>&5
9910: ac_status=$?
9911: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9912: test $ac_status = 0; } 2>conftest.err; then
9913: soname=conftest
9914: lib=conftest
9915: libobjs=conftest.$ac_objext
9916: deplibs=
9917: wl=$lt_prog_compiler_wl
9918: pic_flag=$lt_prog_compiler_pic
9919: compiler_flags=-v
9920: linker_flags=-v
9921: verstring=
9922: output_objdir=.
9923: libname=conftest
9924: lt_save_allow_undefined_flag=$allow_undefined_flag
9925: allow_undefined_flag=
9926: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9927: (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9928: ac_status=$?
9929: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9930: test $ac_status = 0; }
9931: then
9932: lt_cv_archive_cmds_need_lc=no
9933: else
9934: lt_cv_archive_cmds_need_lc=yes
9935: fi
9936: allow_undefined_flag=$lt_save_allow_undefined_flag
9937: else
9938: cat conftest.err 1>&5
9939: fi
9940: $RM conftest*
9941:
9942: fi
9943: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9944: $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9945: archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
1.4 paf 9946: ;;
9947: esac
1.5 moko 9948: fi
9949: ;;
9950: esac
9951:
9952:
9953:
9954:
9955:
9956:
9957:
9958:
9959:
9960:
9961:
9962:
9963:
9964:
9965:
9966:
9967:
9968:
9969:
9970:
9971:
9972:
9973:
9974:
9975:
9976:
9977:
9978:
9979:
9980:
9981:
9982:
9983:
9984:
9985:
9986:
9987:
9988:
9989:
9990:
9991:
9992:
9993:
9994:
9995:
9996:
9997:
9998:
9999:
10000:
10001:
10002:
10003:
10004:
10005:
10006:
10007:
10008:
10009:
10010:
10011:
10012:
10013:
10014:
10015:
10016:
10017:
10018:
10019:
10020:
10021:
10022:
10023:
10024:
10025:
10026:
10027:
10028:
10029:
10030:
10031:
10032:
10033:
10034:
10035:
10036:
10037:
10038:
10039:
10040:
10041:
10042:
10043:
10044:
10045:
10046:
10047:
10048:
10049:
10050:
10051:
10052:
10053:
10054:
10055:
10056:
10057:
10058:
10059:
10060:
10061:
10062:
10063:
10064:
10065:
10066:
10067:
10068:
10069:
10070:
10071:
10072:
10073:
10074:
10075:
10076:
10077:
10078:
1.4 paf 10079:
10080:
10081:
10082:
10083:
10084:
10085:
10086:
10087:
10088:
10089:
10090:
10091:
10092:
10093:
10094:
10095:
10096:
10097:
10098:
10099:
10100:
10101:
10102:
1.5 moko 10103: { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10104: $as_echo_n "checking dynamic linker characteristics... " >&6; }
1.4 paf 10105:
1.5 moko 10106: if test "$GCC" = yes; then
10107: case $host_os in
10108: darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10109: *) lt_awk_arg="/^libraries:/" ;;
10110: esac
10111: case $host_os in
10112: mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10113: *) lt_sed_strip_eq="s,=/,/,g" ;;
10114: esac
10115: lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10116: case $lt_search_path_spec in
10117: *\;*)
10118: # if the path contains ";" then we assume it to be the separator
10119: # otherwise default to the standard path separator (i.e. ":") - it is
10120: # assumed that no part of a normal pathname contains ";" but that should
10121: # okay in the real world where ";" in dirpaths is itself problematic.
10122: lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
1.4 paf 10123: ;;
10124: *)
1.5 moko 10125: lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
1.4 paf 10126: ;;
10127: esac
1.5 moko 10128: # Ok, now we have the path, separated by spaces, we can step through it
10129: # and add multilib dir if necessary.
10130: lt_tmp_lt_search_path_spec=
10131: lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10132: for lt_sys_path in $lt_search_path_spec; do
10133: if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10134: lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10135: else
10136: test -d "$lt_sys_path" && \
10137: lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10138: fi
10139: done
10140: lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10141: BEGIN {RS=" "; FS="/|\n";} {
10142: lt_foo="";
10143: lt_count=0;
10144: for (lt_i = NF; lt_i > 0; lt_i--) {
10145: if ($lt_i != "" && $lt_i != ".") {
10146: if ($lt_i == "..") {
10147: lt_count++;
10148: } else {
10149: if (lt_count == 0) {
10150: lt_foo="/" $lt_i lt_foo;
10151: } else {
10152: lt_count--;
10153: }
10154: }
10155: }
10156: }
10157: if (lt_foo != "") { lt_freq[lt_foo]++; }
10158: if (lt_freq[lt_foo] == 1) { print lt_foo; }
10159: }'`
10160: # AWK program above erroneously prepends '/' to C:/dos/paths
10161: # for these hosts.
10162: case $host_os in
10163: mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10164: $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10165: esac
10166: sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
1.4 paf 10167: else
1.5 moko 10168: sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
1.4 paf 10169: fi
10170: library_names_spec=
10171: libname_spec='lib$name'
10172: soname_spec=
1.5 moko 10173: shrext_cmds=".so"
1.4 paf 10174: postinstall_cmds=
10175: postuninstall_cmds=
10176: finish_cmds=
10177: finish_eval=
10178: shlibpath_var=
10179: shlibpath_overrides_runpath=unknown
10180: version_type=none
10181: dynamic_linker="$host_os ld.so"
10182: sys_lib_dlsearch_path_spec="/lib /usr/lib"
1.5 moko 10183: need_lib_prefix=unknown
10184: hardcode_into_libs=no
10185:
10186: # when you set need_version to no, make sure it does not cause -set_version
10187: # flags to be left without arguments
10188: need_version=unknown
1.4 paf 10189:
10190: case $host_os in
10191: aix3*)
1.5 moko 10192: version_type=linux # correct to gnu/linux during the next big refactor
10193: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
1.4 paf 10194: shlibpath_var=LIBPATH
10195:
1.5 moko 10196: # AIX 3 has no versioning support, so we append a major version to the name.
10197: soname_spec='${libname}${release}${shared_ext}$major'
1.4 paf 10198: ;;
10199:
1.5 moko 10200: aix[4-9]*)
10201: version_type=linux # correct to gnu/linux during the next big refactor
1.4 paf 10202: need_lib_prefix=no
10203: need_version=no
10204: hardcode_into_libs=yes
10205: if test "$host_cpu" = ia64; then
10206: # AIX 5 supports IA64
1.5 moko 10207: library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
1.4 paf 10208: shlibpath_var=LD_LIBRARY_PATH
10209: else
10210: # With GCC up to 2.95.x, collect2 would create an import file
10211: # for dependence libraries. The import file would start with
10212: # the line `#! .'. This would cause the generated library to
10213: # depend on `.', always an invalid library. This was fixed in
10214: # development snapshots of GCC prior to 3.0.
10215: case $host_os in
10216: aix4 | aix4.[01] | aix4.[01].*)
1.5 moko 10217: if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10218: echo ' yes '
10219: echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10220: :
10221: else
10222: can_build_shared=no
10223: fi
10224: ;;
1.4 paf 10225: esac
1.5 moko 10226: # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10227: # soname into executable. Probably we can add versioning support to
10228: # collect2, so additional links can be useful in future.
1.4 paf 10229: if test "$aix_use_runtimelinking" = yes; then
10230: # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10231: # instead of lib<name>.a to let people know that these are not
10232: # typical AIX shared libraries.
1.5 moko 10233: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1.4 paf 10234: else
10235: # We preserve .a as extension for shared libraries through AIX4.2
10236: # and later when we are not doing run time linking.
10237: library_names_spec='${libname}${release}.a $libname.a'
1.5 moko 10238: soname_spec='${libname}${release}${shared_ext}$major'
1.4 paf 10239: fi
10240: shlibpath_var=LIBPATH
10241: fi
10242: ;;
10243:
10244: amigaos*)
1.5 moko 10245: case $host_cpu in
10246: powerpc)
10247: # Since July 2007 AmigaOS4 officially supports .so libraries.
10248: # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10249: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10250: ;;
10251: m68k)
10252: library_names_spec='$libname.ixlibrary $libname.a'
10253: # Create ${libname}_ixlibrary.a entries in /sys/libs.
10254: finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
10255: ;;
10256: esac
1.4 paf 10257: ;;
10258:
10259: beos*)
1.5 moko 10260: library_names_spec='${libname}${shared_ext}'
1.4 paf 10261: dynamic_linker="$host_os ld.so"
10262: shlibpath_var=LIBRARY_PATH
10263: ;;
10264:
1.5 moko 10265: bsdi[45]*)
10266: version_type=linux # correct to gnu/linux during the next big refactor
1.4 paf 10267: need_version=no
1.5 moko 10268: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10269: soname_spec='${libname}${release}${shared_ext}$major'
1.4 paf 10270: finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10271: shlibpath_var=LD_LIBRARY_PATH
10272: sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10273: sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10274: # the default ld.so.conf also contains /usr/contrib/lib and
10275: # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10276: # libtool to hard-code these into programs
10277: ;;
10278:
1.5 moko 10279: cygwin* | mingw* | pw32* | cegcc*)
1.4 paf 10280: version_type=windows
1.5 moko 10281: shrext_cmds=".dll"
1.4 paf 10282: need_version=no
10283: need_lib_prefix=no
1.5 moko 10284:
10285: case $GCC,$cc_basename in
10286: yes,*)
10287: # gcc
1.4 paf 10288: library_names_spec='$libname.dll.a'
1.5 moko 10289: # DLL is installed to $(libdir)/../bin by postinstall_cmds
10290: postinstall_cmds='base_file=`basename \${file}`~
10291: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
1.4 paf 10292: dldir=$destdir/`dirname \$dlpath`~
10293: test -d \$dldir || mkdir -p \$dldir~
1.5 moko 10294: $install_prog $dir/$dlname \$dldir/$dlname~
10295: chmod a+x \$dldir/$dlname~
10296: if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10297: eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10298: fi'
10299: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
1.4 paf 10300: dlpath=$dir/\$dldll~
1.5 moko 10301: $RM \$dlpath'
10302: shlibpath_overrides_runpath=yes
10303:
10304: case $host_os in
10305: cygwin*)
10306: # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10307: soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10308:
10309: sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10310: ;;
10311: mingw* | cegcc*)
10312: # MinGW DLLs use traditional 'lib' prefix
10313: soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10314: ;;
10315: pw32*)
10316: # pw32 DLLs use 'pw' prefix rather than 'lib'
10317: library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10318: ;;
10319: esac
10320: dynamic_linker='Win32 ld.exe'
1.4 paf 10321: ;;
1.5 moko 10322:
10323: *,cl*)
10324: # Native MSVC
10325: libname_spec='$name'
10326: soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10327: library_names_spec='${libname}.dll.lib'
10328:
10329: case $build_os in
10330: mingw*)
10331: sys_lib_search_path_spec=
10332: lt_save_ifs=$IFS
10333: IFS=';'
10334: for lt_path in $LIB
10335: do
10336: IFS=$lt_save_ifs
10337: # Let DOS variable expansion print the short 8.3 style file name.
10338: lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10339: sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10340: done
10341: IFS=$lt_save_ifs
10342: # Convert to MSYS style.
10343: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10344: ;;
10345: cygwin*)
10346: # Convert to unix form, then to dos form, then back to unix form
10347: # but this time dos style (no spaces!) so that the unix form looks
10348: # like /cygdrive/c/PROGRA~1:/cygdr...
10349: sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10350: sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10351: sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10352: ;;
10353: *)
10354: sys_lib_search_path_spec="$LIB"
10355: if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10356: # It is most probably a Windows format PATH.
10357: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10358: else
10359: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10360: fi
10361: # FIXME: find the short name or the path components, as spaces are
10362: # common. (e.g. "Program Files" -> "PROGRA~1")
10363: ;;
10364: esac
10365:
10366: # DLL is installed to $(libdir)/../bin by postinstall_cmds
10367: postinstall_cmds='base_file=`basename \${file}`~
10368: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10369: dldir=$destdir/`dirname \$dlpath`~
10370: test -d \$dldir || mkdir -p \$dldir~
10371: $install_prog $dir/$dlname \$dldir/$dlname'
10372: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10373: dlpath=$dir/\$dldll~
10374: $RM \$dlpath'
10375: shlibpath_overrides_runpath=yes
10376: dynamic_linker='Win32 link.exe'
1.4 paf 10377: ;;
1.5 moko 10378:
1.4 paf 10379: *)
1.5 moko 10380: # Assume MSVC wrapper
10381: library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10382: dynamic_linker='Win32 ld.exe'
1.4 paf 10383: ;;
10384: esac
10385: # FIXME: first we should search . and the directory the executable is in
10386: shlibpath_var=PATH
10387: ;;
10388:
10389: darwin* | rhapsody*)
10390: dynamic_linker="$host_os dyld"
10391: version_type=darwin
10392: need_lib_prefix=no
10393: need_version=no
1.5 moko 10394: library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10395: soname_spec='${libname}${release}${major}$shared_ext'
1.4 paf 10396: shlibpath_overrides_runpath=yes
10397: shlibpath_var=DYLD_LIBRARY_PATH
1.5 moko 10398: shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10399:
10400: sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10401: sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
1.4 paf 10402: ;;
10403:
1.5 moko 10404: dgux*)
10405: version_type=linux # correct to gnu/linux during the next big refactor
10406: need_lib_prefix=no
10407: need_version=no
10408: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10409: soname_spec='${libname}${release}${shared_ext}$major'
10410: shlibpath_var=LD_LIBRARY_PATH
1.4 paf 10411: ;;
10412:
1.5 moko 10413: freebsd* | dragonfly*)
10414: # DragonFly does not have aout. When/if they implement a new
10415: # versioning mechanism, adjust this.
10416: if test -x /usr/bin/objformat; then
10417: objformat=`/usr/bin/objformat`
10418: else
10419: case $host_os in
10420: freebsd[23].*) objformat=aout ;;
10421: *) objformat=elf ;;
10422: esac
10423: fi
1.4 paf 10424: version_type=freebsd-$objformat
10425: case $version_type in
10426: freebsd-elf*)
1.5 moko 10427: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
1.4 paf 10428: need_version=no
10429: need_lib_prefix=no
10430: ;;
10431: freebsd-*)
1.5 moko 10432: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
1.4 paf 10433: need_version=yes
10434: ;;
10435: esac
10436: shlibpath_var=LD_LIBRARY_PATH
10437: case $host_os in
1.5 moko 10438: freebsd2.*)
10439: shlibpath_overrides_runpath=yes
10440: ;;
10441: freebsd3.[01]* | freebsdelf3.[01]*)
1.4 paf 10442: shlibpath_overrides_runpath=yes
1.5 moko 10443: hardcode_into_libs=yes
1.4 paf 10444: ;;
1.5 moko 10445: freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10446: freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
1.4 paf 10447: shlibpath_overrides_runpath=no
10448: hardcode_into_libs=yes
10449: ;;
1.5 moko 10450: *) # from 4.6 on, and DragonFly
10451: shlibpath_overrides_runpath=yes
10452: hardcode_into_libs=yes
10453: ;;
1.4 paf 10454: esac
10455: ;;
10456:
10457: gnu*)
1.5 moko 10458: version_type=linux # correct to gnu/linux during the next big refactor
1.4 paf 10459: need_lib_prefix=no
10460: need_version=no
1.5 moko 10461: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10462: soname_spec='${libname}${release}${shared_ext}$major'
1.4 paf 10463: shlibpath_var=LD_LIBRARY_PATH
1.5 moko 10464: shlibpath_overrides_runpath=no
10465: hardcode_into_libs=yes
10466: ;;
10467:
10468: haiku*)
10469: version_type=linux # correct to gnu/linux during the next big refactor
10470: need_lib_prefix=no
10471: need_version=no
10472: dynamic_linker="$host_os runtime_loader"
10473: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10474: soname_spec='${libname}${release}${shared_ext}$major'
10475: shlibpath_var=LIBRARY_PATH
10476: shlibpath_overrides_runpath=yes
10477: sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
1.4 paf 10478: hardcode_into_libs=yes
10479: ;;
10480:
10481: hpux9* | hpux10* | hpux11*)
10482: # Give a soname corresponding to the major version so that dld.sl refuses to
10483: # link against other versions.
10484: version_type=sunos
10485: need_lib_prefix=no
10486: need_version=no
1.5 moko 10487: case $host_cpu in
10488: ia64*)
10489: shrext_cmds='.so'
10490: hardcode_into_libs=yes
10491: dynamic_linker="$host_os dld.so"
10492: shlibpath_var=LD_LIBRARY_PATH
10493: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10494: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10495: soname_spec='${libname}${release}${shared_ext}$major'
10496: if test "X$HPUX_IA64_MODE" = X32; then
10497: sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10498: else
10499: sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10500: fi
10501: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10502: ;;
10503: hppa*64*)
10504: shrext_cmds='.sl'
10505: hardcode_into_libs=yes
10506: dynamic_linker="$host_os dld.sl"
10507: shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10508: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10509: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10510: soname_spec='${libname}${release}${shared_ext}$major'
10511: sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10512: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10513: ;;
10514: *)
10515: shrext_cmds='.sl'
10516: dynamic_linker="$host_os dld.sl"
10517: shlibpath_var=SHLIB_PATH
10518: shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10519: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10520: soname_spec='${libname}${release}${shared_ext}$major'
10521: ;;
10522: esac
10523: # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
1.4 paf 10524: postinstall_cmds='chmod 555 $lib'
1.5 moko 10525: # or fails outright, so override atomically:
10526: install_override_mode=555
10527: ;;
10528:
10529: interix[3-9]*)
10530: version_type=linux # correct to gnu/linux during the next big refactor
10531: need_lib_prefix=no
10532: need_version=no
10533: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10534: soname_spec='${libname}${release}${shared_ext}$major'
10535: dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10536: shlibpath_var=LD_LIBRARY_PATH
10537: shlibpath_overrides_runpath=no
10538: hardcode_into_libs=yes
1.4 paf 10539: ;;
10540:
10541: irix5* | irix6* | nonstopux*)
10542: case $host_os in
10543: nonstopux*) version_type=nonstopux ;;
1.5 moko 10544: *)
10545: if test "$lt_cv_prog_gnu_ld" = yes; then
10546: version_type=linux # correct to gnu/linux during the next big refactor
10547: else
10548: version_type=irix
10549: fi ;;
1.4 paf 10550: esac
10551: need_lib_prefix=no
10552: need_version=no
1.5 moko 10553: soname_spec='${libname}${release}${shared_ext}$major'
10554: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
1.4 paf 10555: case $host_os in
10556: irix5* | nonstopux*)
10557: libsuff= shlibsuff=
10558: ;;
10559: *)
10560: case $LD in # libtool.m4 will add one of these switches to LD
1.5 moko 10561: *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10562: libsuff= shlibsuff= libmagic=32-bit;;
10563: *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10564: libsuff=32 shlibsuff=N32 libmagic=N32;;
10565: *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10566: libsuff=64 shlibsuff=64 libmagic=64-bit;;
1.4 paf 10567: *) libsuff= shlibsuff= libmagic=never-match;;
10568: esac
10569: ;;
10570: esac
10571: shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10572: shlibpath_overrides_runpath=no
10573: sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10574: sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
1.5 moko 10575: hardcode_into_libs=yes
1.4 paf 10576: ;;
10577:
10578: # No shared lib support for Linux oldld, aout, or coff.
1.5 moko 10579: linux*oldld* | linux*aout* | linux*coff*)
1.4 paf 10580: dynamic_linker=no
10581: ;;
10582:
1.5 moko 10583: # This must be glibc/ELF.
10584: linux* | k*bsd*-gnu | kopensolaris*-gnu)
10585: version_type=linux # correct to gnu/linux during the next big refactor
1.4 paf 10586: need_lib_prefix=no
10587: need_version=no
1.5 moko 10588: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10589: soname_spec='${libname}${release}${shared_ext}$major'
1.4 paf 10590: finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10591: shlibpath_var=LD_LIBRARY_PATH
10592: shlibpath_overrides_runpath=no
1.5 moko 10593:
10594: # Some binutils ld are patched to set DT_RUNPATH
10595: if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10596: $as_echo_n "(cached) " >&6
10597: else
10598: lt_cv_shlibpath_overrides_runpath=no
10599: save_LDFLAGS=$LDFLAGS
10600: save_libdir=$libdir
10601: eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10602: LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10603: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10604: /* end confdefs.h. */
10605:
10606: int
10607: main ()
10608: {
10609:
10610: ;
10611: return 0;
10612: }
10613: _ACEOF
10614: if ac_fn_c_try_link "$LINENO"; then :
10615: if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10616: lt_cv_shlibpath_overrides_runpath=yes
10617: fi
10618: fi
10619: rm -f core conftest.err conftest.$ac_objext \
10620: conftest$ac_exeext conftest.$ac_ext
10621: LDFLAGS=$save_LDFLAGS
10622: libdir=$save_libdir
10623:
10624: fi
10625:
10626: shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10627:
1.4 paf 10628: # This implies no fast_install, which is unacceptable.
10629: # Some rework will be needed to allow for fast_install
10630: # before this can be enabled.
10631: hardcode_into_libs=yes
10632:
1.5 moko 10633: # Append ld.so.conf contents to the search path
10634: if test -f /etc/ld.so.conf; then
10635: 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' ' '`
10636: sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10637: fi
10638:
1.4 paf 10639: # We used to test for /lib/ld.so.1 and disable shared libraries on
10640: # powerpc, because MkLinux only supported shared libraries with the
10641: # GNU dynamic linker. Since this was broken with cross compilers,
10642: # most powerpc-linux boxes support dynamic linking these days and
10643: # people can always --disable-shared, the test was removed, and we
10644: # assume the GNU/Linux dynamic linker is in use.
10645: dynamic_linker='GNU/Linux ld.so'
10646: ;;
10647:
10648: netbsd*)
10649: version_type=sunos
10650: need_lib_prefix=no
10651: need_version=no
1.5 moko 10652: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10653: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
1.4 paf 10654: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10655: dynamic_linker='NetBSD (a.out) ld.so'
10656: else
1.5 moko 10657: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10658: soname_spec='${libname}${release}${shared_ext}$major'
1.4 paf 10659: dynamic_linker='NetBSD ld.elf_so'
10660: fi
10661: shlibpath_var=LD_LIBRARY_PATH
10662: shlibpath_overrides_runpath=yes
10663: hardcode_into_libs=yes
10664: ;;
10665:
10666: newsos6)
1.5 moko 10667: version_type=linux # correct to gnu/linux during the next big refactor
10668: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1.4 paf 10669: shlibpath_var=LD_LIBRARY_PATH
10670: shlibpath_overrides_runpath=yes
10671: ;;
10672:
1.5 moko 10673: *nto* | *qnx*)
10674: version_type=qnx
10675: need_lib_prefix=no
10676: need_version=no
10677: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10678: soname_spec='${libname}${release}${shared_ext}$major'
10679: shlibpath_var=LD_LIBRARY_PATH
10680: shlibpath_overrides_runpath=no
10681: hardcode_into_libs=yes
10682: dynamic_linker='ldqnx.so'
10683: ;;
10684:
1.4 paf 10685: openbsd*)
10686: version_type=sunos
1.5 moko 10687: sys_lib_dlsearch_path_spec="/usr/lib"
1.4 paf 10688: need_lib_prefix=no
1.5 moko 10689: # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10690: case $host_os in
10691: openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10692: *) need_version=no ;;
10693: esac
10694: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10695: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10696: shlibpath_var=LD_LIBRARY_PATH
10697: if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10698: case $host_os in
10699: openbsd2.[89] | openbsd2.[89].*)
10700: shlibpath_overrides_runpath=no
10701: ;;
10702: *)
10703: shlibpath_overrides_runpath=yes
10704: ;;
10705: esac
1.4 paf 10706: else
10707: shlibpath_overrides_runpath=yes
10708: fi
10709: ;;
10710:
10711: os2*)
10712: libname_spec='$name'
1.5 moko 10713: shrext_cmds=".dll"
1.4 paf 10714: need_lib_prefix=no
1.5 moko 10715: library_names_spec='$libname${shared_ext} $libname.a'
1.4 paf 10716: dynamic_linker='OS/2 ld.exe'
10717: shlibpath_var=LIBPATH
10718: ;;
10719:
10720: osf3* | osf4* | osf5*)
10721: version_type=osf
1.5 moko 10722: need_lib_prefix=no
1.4 paf 10723: need_version=no
1.5 moko 10724: soname_spec='${libname}${release}${shared_ext}$major'
10725: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1.4 paf 10726: shlibpath_var=LD_LIBRARY_PATH
10727: sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10728: sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10729: ;;
10730:
1.5 moko 10731: rdos*)
10732: dynamic_linker=no
1.4 paf 10733: ;;
10734:
10735: solaris*)
1.5 moko 10736: version_type=linux # correct to gnu/linux during the next big refactor
1.4 paf 10737: need_lib_prefix=no
10738: need_version=no
1.5 moko 10739: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10740: soname_spec='${libname}${release}${shared_ext}$major'
1.4 paf 10741: shlibpath_var=LD_LIBRARY_PATH
10742: shlibpath_overrides_runpath=yes
10743: hardcode_into_libs=yes
10744: # ldd complains unless libraries are executable
10745: postinstall_cmds='chmod +x $lib'
10746: ;;
10747:
10748: sunos4*)
10749: version_type=sunos
1.5 moko 10750: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
1.4 paf 10751: finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10752: shlibpath_var=LD_LIBRARY_PATH
10753: shlibpath_overrides_runpath=yes
10754: if test "$with_gnu_ld" = yes; then
10755: need_lib_prefix=no
10756: fi
10757: need_version=yes
10758: ;;
10759:
1.5 moko 10760: sysv4 | sysv4.3*)
10761: version_type=linux # correct to gnu/linux during the next big refactor
10762: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10763: soname_spec='${libname}${release}${shared_ext}$major'
1.4 paf 10764: shlibpath_var=LD_LIBRARY_PATH
10765: case $host_vendor in
10766: sni)
10767: shlibpath_overrides_runpath=no
10768: need_lib_prefix=no
10769: runpath_var=LD_RUN_PATH
10770: ;;
10771: siemens)
10772: need_lib_prefix=no
10773: ;;
10774: motorola)
10775: need_lib_prefix=no
10776: need_version=no
1.5 moko 10777: shlibpath_overrides_runpath=no
10778: sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10779: ;;
10780: esac
10781: ;;
10782:
10783: sysv4*MP*)
10784: if test -d /usr/nec ;then
10785: version_type=linux # correct to gnu/linux during the next big refactor
10786: library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10787: soname_spec='$libname${shared_ext}.$major'
10788: shlibpath_var=LD_LIBRARY_PATH
10789: fi
1.4 paf 10790: ;;
10791:
1.5 moko 10792: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10793: version_type=freebsd-elf
10794: need_lib_prefix=no
10795: need_version=no
10796: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10797: soname_spec='${libname}${release}${shared_ext}$major'
1.4 paf 10798: shlibpath_var=LD_LIBRARY_PATH
1.5 moko 10799: shlibpath_overrides_runpath=yes
10800: hardcode_into_libs=yes
10801: if test "$with_gnu_ld" = yes; then
10802: sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10803: else
10804: sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10805: case $host_os in
10806: sco3.2v5*)
10807: sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10808: ;;
10809: esac
10810: fi
10811: sys_lib_dlsearch_path_spec='/usr/lib'
1.4 paf 10812: ;;
10813:
1.5 moko 10814: tpf*)
10815: # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10816: version_type=linux # correct to gnu/linux during the next big refactor
1.4 paf 10817: need_lib_prefix=no
10818: need_version=no
1.5 moko 10819: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1.4 paf 10820: shlibpath_var=LD_LIBRARY_PATH
1.5 moko 10821: shlibpath_overrides_runpath=no
10822: hardcode_into_libs=yes
1.4 paf 10823: ;;
10824:
1.5 moko 10825: uts4*)
10826: version_type=linux # correct to gnu/linux during the next big refactor
10827: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10828: soname_spec='${libname}${release}${shared_ext}$major'
10829: shlibpath_var=LD_LIBRARY_PATH
1.4 paf 10830: ;;
10831:
10832: *)
10833: dynamic_linker=no
10834: ;;
10835: esac
1.5 moko 10836: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10837: $as_echo "$dynamic_linker" >&6; }
1.4 paf 10838: test "$dynamic_linker" = no && can_build_shared=no
10839:
1.5 moko 10840: variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10841: if test "$GCC" = yes; then
10842: variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10843: fi
10844:
10845: if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10846: sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10847: fi
10848: if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10849: sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10850: fi
10851:
10852:
10853:
10854:
10855:
10856:
10857:
10858:
10859:
10860:
10861:
10862:
10863:
10864:
10865:
10866:
10867:
10868:
10869:
10870:
10871:
10872:
10873:
10874:
10875:
10876:
10877:
10878:
10879:
10880:
10881:
10882:
10883:
10884:
10885:
10886:
10887:
10888:
10889:
10890:
10891:
10892:
10893:
10894:
10895:
10896:
10897:
10898:
10899:
10900:
10901:
10902:
10903:
10904:
10905:
10906:
10907:
10908:
10909:
10910:
10911:
10912:
10913:
10914:
10915:
10916:
10917:
10918:
10919:
10920:
10921:
10922:
10923:
10924:
10925:
10926:
10927:
10928:
10929:
10930:
10931:
10932:
10933:
10934:
10935:
10936:
10937:
10938:
10939:
10940:
10941:
10942:
10943: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10944: $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10945: hardcode_action=
10946: if test -n "$hardcode_libdir_flag_spec" ||
10947: test -n "$runpath_var" ||
10948: test "X$hardcode_automatic" = "Xyes" ; then
1.4 paf 10949:
1.5 moko 10950: # We can hardcode non-existent directories.
10951: if test "$hardcode_direct" != no &&
10952: # If the only mechanism to avoid hardcoding is shlibpath_var, we
10953: # have to relink, otherwise we might link with an installed library
10954: # when we should be linking with a yet-to-be-installed one
10955: ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10956: test "$hardcode_minus_L" != no; then
10957: # Linking always hardcodes the temporary library directory.
10958: hardcode_action=relink
10959: else
10960: # We can link without hardcoding, and we can hardcode nonexisting dirs.
10961: hardcode_action=immediate
1.4 paf 10962: fi
1.5 moko 10963: else
10964: # We cannot hardcode anything, or else we can only hardcode existing
10965: # directories.
10966: hardcode_action=unsupported
10967: fi
10968: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10969: $as_echo "$hardcode_action" >&6; }
1.4 paf 10970:
1.5 moko 10971: if test "$hardcode_action" = relink ||
10972: test "$inherit_rpath" = yes; then
1.4 paf 10973: # Fast installation is not supported
10974: enable_fast_install=no
10975: elif test "$shlibpath_overrides_runpath" = yes ||
10976: test "$enable_shared" = no; then
10977: # Fast installation is not necessary
10978: enable_fast_install=needless
10979: fi
10980:
10981:
1.5 moko 10982:
10983:
10984:
10985:
10986: if test "x$enable_dlopen" != xyes; then
1.4 paf 10987: enable_dlopen=unknown
10988: enable_dlopen_self=unknown
10989: enable_dlopen_self_static=unknown
10990: else
10991: lt_cv_dlopen=no
10992: lt_cv_dlopen_libs=
10993:
10994: case $host_os in
10995: beos*)
10996: lt_cv_dlopen="load_add_on"
10997: lt_cv_dlopen_libs=
10998: lt_cv_dlopen_self=yes
10999: ;;
11000:
1.5 moko 11001: mingw* | pw32* | cegcc*)
1.4 paf 11002: lt_cv_dlopen="LoadLibrary"
11003: lt_cv_dlopen_libs=
1.5 moko 11004: ;;
11005:
11006: cygwin*)
11007: lt_cv_dlopen="dlopen"
11008: lt_cv_dlopen_libs=
11009: ;;
1.4 paf 11010:
1.5 moko 11011: darwin*)
11012: # if libdl is installed we need to link against it
11013: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11014: $as_echo_n "checking for dlopen in -ldl... " >&6; }
11015: if ${ac_cv_lib_dl_dlopen+:} false; then :
11016: $as_echo_n "(cached) " >&6
1.4 paf 11017: else
1.5 moko 11018: ac_check_lib_save_LIBS=$LIBS
11019: LIBS="-ldl $LIBS"
11020: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.4 paf 11021: /* end confdefs.h. */
1.5 moko 11022:
11023: /* Override any GCC internal prototype to avoid an error.
11024: Use char because int might match the return type of a GCC
11025: builtin and then its argument prototype would still apply. */
1.4 paf 11026: #ifdef __cplusplus
11027: extern "C"
11028: #endif
1.5 moko 11029: char dlopen ();
1.4 paf 11030: int
11031: main ()
11032: {
1.5 moko 11033: return dlopen ();
1.4 paf 11034: ;
11035: return 0;
11036: }
11037: _ACEOF
1.5 moko 11038: if ac_fn_c_try_link "$LINENO"; then :
11039: ac_cv_lib_dl_dlopen=yes
11040: else
11041: ac_cv_lib_dl_dlopen=no
11042: fi
11043: rm -f core conftest.err conftest.$ac_objext \
11044: conftest$ac_exeext conftest.$ac_ext
11045: LIBS=$ac_check_lib_save_LIBS
11046: fi
11047: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11048: $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11049: if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11050: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
1.4 paf 11051: else
11052:
1.5 moko 11053: lt_cv_dlopen="dyld"
11054: lt_cv_dlopen_libs=
11055: lt_cv_dlopen_self=yes
11056:
1.4 paf 11057: fi
1.5 moko 11058:
11059: ;;
11060:
11061: *)
11062: ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11063: if test "x$ac_cv_func_shl_load" = xyes; then :
1.4 paf 11064: lt_cv_dlopen="shl_load"
11065: else
1.5 moko 11066: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11067: $as_echo_n "checking for shl_load in -ldld... " >&6; }
11068: if ${ac_cv_lib_dld_shl_load+:} false; then :
11069: $as_echo_n "(cached) " >&6
1.4 paf 11070: else
11071: ac_check_lib_save_LIBS=$LIBS
11072: LIBS="-ldld $LIBS"
1.5 moko 11073: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.4 paf 11074: /* end confdefs.h. */
11075:
1.5 moko 11076: /* Override any GCC internal prototype to avoid an error.
11077: Use char because int might match the return type of a GCC
11078: builtin and then its argument prototype would still apply. */
1.4 paf 11079: #ifdef __cplusplus
11080: extern "C"
11081: #endif
11082: char shl_load ();
11083: int
11084: main ()
11085: {
1.5 moko 11086: return shl_load ();
1.4 paf 11087: ;
11088: return 0;
11089: }
11090: _ACEOF
1.5 moko 11091: if ac_fn_c_try_link "$LINENO"; then :
11092: ac_cv_lib_dld_shl_load=yes
1.4 paf 11093: else
1.5 moko 11094: ac_cv_lib_dld_shl_load=no
1.4 paf 11095: fi
1.5 moko 11096: rm -f core conftest.err conftest.$ac_objext \
11097: conftest$ac_exeext conftest.$ac_ext
11098: LIBS=$ac_check_lib_save_LIBS
1.4 paf 11099: fi
1.5 moko 11100: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11101: $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11102: if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11103: lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11104: else
11105: ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11106: if test "x$ac_cv_func_dlopen" = xyes; then :
1.4 paf 11107: lt_cv_dlopen="dlopen"
11108: else
1.5 moko 11109: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11110: $as_echo_n "checking for dlopen in -ldl... " >&6; }
11111: if ${ac_cv_lib_dl_dlopen+:} false; then :
11112: $as_echo_n "(cached) " >&6
1.4 paf 11113: else
11114: ac_check_lib_save_LIBS=$LIBS
11115: LIBS="-ldl $LIBS"
1.5 moko 11116: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.4 paf 11117: /* end confdefs.h. */
11118:
1.5 moko 11119: /* Override any GCC internal prototype to avoid an error.
11120: Use char because int might match the return type of a GCC
11121: builtin and then its argument prototype would still apply. */
1.4 paf 11122: #ifdef __cplusplus
11123: extern "C"
11124: #endif
11125: char dlopen ();
11126: int
11127: main ()
11128: {
1.5 moko 11129: return dlopen ();
1.4 paf 11130: ;
11131: return 0;
11132: }
11133: _ACEOF
1.5 moko 11134: if ac_fn_c_try_link "$LINENO"; then :
1.4 paf 11135: ac_cv_lib_dl_dlopen=yes
11136: else
1.5 moko 11137: ac_cv_lib_dl_dlopen=no
1.4 paf 11138: fi
1.5 moko 11139: rm -f core conftest.err conftest.$ac_objext \
11140: conftest$ac_exeext conftest.$ac_ext
1.4 paf 11141: LIBS=$ac_check_lib_save_LIBS
11142: fi
1.5 moko 11143: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11144: $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11145: if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
1.4 paf 11146: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11147: else
1.5 moko 11148: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11149: $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11150: if ${ac_cv_lib_svld_dlopen+:} false; then :
11151: $as_echo_n "(cached) " >&6
1.4 paf 11152: else
11153: ac_check_lib_save_LIBS=$LIBS
11154: LIBS="-lsvld $LIBS"
1.5 moko 11155: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.4 paf 11156: /* end confdefs.h. */
11157:
1.5 moko 11158: /* Override any GCC internal prototype to avoid an error.
11159: Use char because int might match the return type of a GCC
11160: builtin and then its argument prototype would still apply. */
1.4 paf 11161: #ifdef __cplusplus
11162: extern "C"
11163: #endif
11164: char dlopen ();
11165: int
11166: main ()
11167: {
1.5 moko 11168: return dlopen ();
1.4 paf 11169: ;
11170: return 0;
11171: }
11172: _ACEOF
1.5 moko 11173: if ac_fn_c_try_link "$LINENO"; then :
1.4 paf 11174: ac_cv_lib_svld_dlopen=yes
11175: else
1.5 moko 11176: ac_cv_lib_svld_dlopen=no
1.4 paf 11177: fi
1.5 moko 11178: rm -f core conftest.err conftest.$ac_objext \
11179: conftest$ac_exeext conftest.$ac_ext
1.4 paf 11180: LIBS=$ac_check_lib_save_LIBS
11181: fi
1.5 moko 11182: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11183: $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11184: if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
1.4 paf 11185: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11186: else
1.5 moko 11187: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11188: $as_echo_n "checking for dld_link in -ldld... " >&6; }
11189: if ${ac_cv_lib_dld_dld_link+:} false; then :
11190: $as_echo_n "(cached) " >&6
1.4 paf 11191: else
11192: ac_check_lib_save_LIBS=$LIBS
11193: LIBS="-ldld $LIBS"
1.5 moko 11194: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.4 paf 11195: /* end confdefs.h. */
11196:
1.5 moko 11197: /* Override any GCC internal prototype to avoid an error.
11198: Use char because int might match the return type of a GCC
11199: builtin and then its argument prototype would still apply. */
1.4 paf 11200: #ifdef __cplusplus
11201: extern "C"
11202: #endif
11203: char dld_link ();
11204: int
11205: main ()
11206: {
1.5 moko 11207: return dld_link ();
1.4 paf 11208: ;
11209: return 0;
11210: }
11211: _ACEOF
1.5 moko 11212: if ac_fn_c_try_link "$LINENO"; then :
1.4 paf 11213: ac_cv_lib_dld_dld_link=yes
11214: else
1.5 moko 11215: ac_cv_lib_dld_dld_link=no
1.4 paf 11216: fi
1.5 moko 11217: rm -f core conftest.err conftest.$ac_objext \
11218: conftest$ac_exeext conftest.$ac_ext
1.4 paf 11219: LIBS=$ac_check_lib_save_LIBS
11220: fi
1.5 moko 11221: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11222: $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11223: if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11224: lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
1.4 paf 11225: fi
11226:
11227:
11228: fi
11229:
11230:
11231: fi
11232:
11233:
11234: fi
11235:
11236:
11237: fi
11238:
11239:
11240: fi
11241:
11242: ;;
11243: esac
11244:
11245: if test "x$lt_cv_dlopen" != xno; then
11246: enable_dlopen=yes
11247: else
11248: enable_dlopen=no
11249: fi
11250:
11251: case $lt_cv_dlopen in
11252: dlopen)
11253: save_CPPFLAGS="$CPPFLAGS"
1.5 moko 11254: test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
1.4 paf 11255:
11256: save_LDFLAGS="$LDFLAGS"
1.5 moko 11257: wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
1.4 paf 11258:
11259: save_LIBS="$LIBS"
11260: LIBS="$lt_cv_dlopen_libs $LIBS"
11261:
1.5 moko 11262: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11263: $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11264: if ${lt_cv_dlopen_self+:} false; then :
11265: $as_echo_n "(cached) " >&6
1.4 paf 11266: else
11267: if test "$cross_compiling" = yes; then :
11268: lt_cv_dlopen_self=cross
11269: else
1.5 moko 11270: lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
1.4 paf 11271: lt_status=$lt_dlunknown
1.5 moko 11272: cat > conftest.$ac_ext <<_LT_EOF
11273: #line $LINENO "configure"
1.4 paf 11274: #include "confdefs.h"
11275:
11276: #if HAVE_DLFCN_H
11277: #include <dlfcn.h>
11278: #endif
11279:
11280: #include <stdio.h>
11281:
11282: #ifdef RTLD_GLOBAL
11283: # define LT_DLGLOBAL RTLD_GLOBAL
11284: #else
11285: # ifdef DL_GLOBAL
11286: # define LT_DLGLOBAL DL_GLOBAL
11287: # else
11288: # define LT_DLGLOBAL 0
11289: # endif
11290: #endif
11291:
11292: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11293: find out it does not work in some platform. */
11294: #ifndef LT_DLLAZY_OR_NOW
11295: # ifdef RTLD_LAZY
11296: # define LT_DLLAZY_OR_NOW RTLD_LAZY
11297: # else
11298: # ifdef DL_LAZY
11299: # define LT_DLLAZY_OR_NOW DL_LAZY
11300: # else
11301: # ifdef RTLD_NOW
11302: # define LT_DLLAZY_OR_NOW RTLD_NOW
11303: # else
11304: # ifdef DL_NOW
11305: # define LT_DLLAZY_OR_NOW DL_NOW
11306: # else
11307: # define LT_DLLAZY_OR_NOW 0
11308: # endif
11309: # endif
11310: # endif
11311: # endif
11312: #endif
11313:
1.5 moko 11314: /* When -fvisbility=hidden is used, assume the code has been annotated
11315: correspondingly for the symbols needed. */
11316: #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11317: int fnord () __attribute__((visibility("default")));
1.4 paf 11318: #endif
11319:
1.5 moko 11320: int fnord () { return 42; }
1.4 paf 11321: int main ()
11322: {
11323: void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11324: int status = $lt_dlunknown;
11325:
11326: if (self)
11327: {
11328: if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
1.5 moko 11329: else
11330: {
11331: if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11332: else puts (dlerror ());
11333: }
1.4 paf 11334: /* dlclose (self); */
11335: }
1.5 moko 11336: else
11337: puts (dlerror ());
1.4 paf 11338:
1.5 moko 11339: return status;
1.4 paf 11340: }
1.5 moko 11341: _LT_EOF
11342: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
1.4 paf 11343: (eval $ac_link) 2>&5
11344: ac_status=$?
1.5 moko 11345: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11346: test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11347: (./conftest; exit; ) >&5 2>/dev/null
1.4 paf 11348: lt_status=$?
11349: case x$lt_status in
11350: x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11351: x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
1.5 moko 11352: x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
1.4 paf 11353: esac
11354: else :
11355: # compilation failed
11356: lt_cv_dlopen_self=no
11357: fi
11358: fi
11359: rm -fr conftest*
11360:
11361:
11362: fi
1.5 moko 11363: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11364: $as_echo "$lt_cv_dlopen_self" >&6; }
1.4 paf 11365:
11366: if test "x$lt_cv_dlopen_self" = xyes; then
1.5 moko 11367: wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11368: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11369: $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11370: if ${lt_cv_dlopen_self_static+:} false; then :
11371: $as_echo_n "(cached) " >&6
1.4 paf 11372: else
11373: if test "$cross_compiling" = yes; then :
11374: lt_cv_dlopen_self_static=cross
11375: else
1.5 moko 11376: lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
1.4 paf 11377: lt_status=$lt_dlunknown
1.5 moko 11378: cat > conftest.$ac_ext <<_LT_EOF
11379: #line $LINENO "configure"
1.4 paf 11380: #include "confdefs.h"
11381:
11382: #if HAVE_DLFCN_H
11383: #include <dlfcn.h>
11384: #endif
11385:
11386: #include <stdio.h>
11387:
11388: #ifdef RTLD_GLOBAL
11389: # define LT_DLGLOBAL RTLD_GLOBAL
11390: #else
11391: # ifdef DL_GLOBAL
11392: # define LT_DLGLOBAL DL_GLOBAL
11393: # else
11394: # define LT_DLGLOBAL 0
11395: # endif
11396: #endif
11397:
11398: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11399: find out it does not work in some platform. */
11400: #ifndef LT_DLLAZY_OR_NOW
11401: # ifdef RTLD_LAZY
11402: # define LT_DLLAZY_OR_NOW RTLD_LAZY
11403: # else
11404: # ifdef DL_LAZY
11405: # define LT_DLLAZY_OR_NOW DL_LAZY
11406: # else
11407: # ifdef RTLD_NOW
11408: # define LT_DLLAZY_OR_NOW RTLD_NOW
11409: # else
11410: # ifdef DL_NOW
11411: # define LT_DLLAZY_OR_NOW DL_NOW
11412: # else
11413: # define LT_DLLAZY_OR_NOW 0
11414: # endif
11415: # endif
11416: # endif
11417: # endif
11418: #endif
11419:
1.5 moko 11420: /* When -fvisbility=hidden is used, assume the code has been annotated
11421: correspondingly for the symbols needed. */
11422: #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11423: int fnord () __attribute__((visibility("default")));
1.4 paf 11424: #endif
11425:
1.5 moko 11426: int fnord () { return 42; }
1.4 paf 11427: int main ()
11428: {
11429: void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11430: int status = $lt_dlunknown;
11431:
11432: if (self)
11433: {
11434: if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
1.5 moko 11435: else
11436: {
11437: if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11438: else puts (dlerror ());
11439: }
1.4 paf 11440: /* dlclose (self); */
11441: }
1.5 moko 11442: else
11443: puts (dlerror ());
1.4 paf 11444:
1.5 moko 11445: return status;
1.4 paf 11446: }
1.5 moko 11447: _LT_EOF
11448: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
1.4 paf 11449: (eval $ac_link) 2>&5
11450: ac_status=$?
1.5 moko 11451: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11452: test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11453: (./conftest; exit; ) >&5 2>/dev/null
1.4 paf 11454: lt_status=$?
11455: case x$lt_status in
11456: x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11457: x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
1.5 moko 11458: x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
1.4 paf 11459: esac
11460: else :
11461: # compilation failed
11462: lt_cv_dlopen_self_static=no
11463: fi
11464: fi
11465: rm -fr conftest*
11466:
11467:
11468: fi
1.5 moko 11469: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11470: $as_echo "$lt_cv_dlopen_self_static" >&6; }
1.4 paf 11471: fi
11472:
11473: CPPFLAGS="$save_CPPFLAGS"
11474: LDFLAGS="$save_LDFLAGS"
11475: LIBS="$save_LIBS"
11476: ;;
11477: esac
11478:
11479: case $lt_cv_dlopen_self in
11480: yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11481: *) enable_dlopen_self=unknown ;;
11482: esac
11483:
11484: case $lt_cv_dlopen_self_static in
11485: yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11486: *) enable_dlopen_self_static=unknown ;;
11487: esac
11488: fi
11489:
11490:
11491:
11492:
11493:
11494:
11495:
11496:
11497:
11498:
11499:
11500:
11501:
11502:
11503:
11504:
11505:
1.5 moko 11506: striplib=
11507: old_striplib=
11508: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11509: $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11510: if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11511: test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11512: test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11513: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11514: $as_echo "yes" >&6; }
11515: else
11516: # FIXME - insert some real tests, host_os isn't really good enough
11517: case $host_os in
11518: darwin*)
11519: if test -n "$STRIP" ; then
11520: striplib="$STRIP -x"
11521: old_striplib="$STRIP -S"
11522: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11523: $as_echo "yes" >&6; }
11524: else
11525: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11526: $as_echo "no" >&6; }
11527: fi
11528: ;;
11529: *)
11530: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11531: $as_echo "no" >&6; }
11532: ;;
11533: esac
11534: fi
1.4 paf 11535:
11536:
11537:
11538:
11539:
11540:
11541:
11542:
11543:
11544:
11545:
11546:
1.5 moko 11547: # Report which library types will actually be built
11548: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11549: $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11550: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11551: $as_echo "$can_build_shared" >&6; }
1.4 paf 11552:
1.5 moko 11553: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11554: $as_echo_n "checking whether to build shared libraries... " >&6; }
11555: test "$can_build_shared" = "no" && enable_shared=no
1.4 paf 11556:
1.5 moko 11557: # On AIX, shared libraries and static libraries use the same namespace, and
11558: # are all built from PIC.
11559: case $host_os in
11560: aix3*)
11561: test "$enable_shared" = yes && enable_static=no
11562: if test -n "$RANLIB"; then
11563: archive_cmds="$archive_cmds~\$RANLIB \$lib"
11564: postinstall_cmds='$RANLIB $lib'
11565: fi
11566: ;;
1.4 paf 11567:
1.5 moko 11568: aix[4-9]*)
11569: if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11570: test "$enable_shared" = yes && enable_static=no
11571: fi
11572: ;;
11573: esac
11574: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11575: $as_echo "$enable_shared" >&6; }
1.4 paf 11576:
1.5 moko 11577: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11578: $as_echo_n "checking whether to build static libraries... " >&6; }
11579: # Make sure either enable_shared or enable_static is yes.
11580: test "$enable_shared" = yes || enable_static=yes
11581: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11582: $as_echo "$enable_static" >&6; }
1.4 paf 11583:
11584:
11585:
11586:
1.5 moko 11587: fi
11588: ac_ext=c
11589: ac_cpp='$CPP $CPPFLAGS'
11590: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11591: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11592: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.4 paf 11593:
1.5 moko 11594: CC="$lt_save_CC"
1.4 paf 11595:
11596:
11597:
11598:
11599:
11600:
11601:
11602:
11603:
11604:
11605:
11606:
11607:
11608:
11609:
1.5 moko 11610: ac_config_commands="$ac_config_commands libtool"
1.4 paf 11611:
11612:
11613:
11614:
1.5 moko 11615: # Only expand once:
1.4 paf 11616:
11617:
1.5 moko 11618: { $as_echo "$as_me:${as_lineno-$LINENO}: checking which extension is used for runtime loadable modules" >&5
11619: $as_echo_n "checking which extension is used for runtime loadable modules... " >&6; }
11620: if ${libltdl_cv_shlibext+:} false; then :
11621: $as_echo_n "(cached) " >&6
11622: else
1.4 paf 11623:
1.5 moko 11624: module=yes
11625: eval libltdl_cv_shlibext=$shrext_cmds
11626: module=no
11627: eval libltdl_cv_shrext=$shrext_cmds
1.4 paf 11628:
1.5 moko 11629: fi
11630: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibext" >&5
11631: $as_echo "$libltdl_cv_shlibext" >&6; }
11632: if test -n "$libltdl_cv_shlibext"; then
1.4 paf 11633:
1.5 moko 11634: cat >>confdefs.h <<_ACEOF
11635: #define LT_MODULE_EXT "$libltdl_cv_shlibext"
11636: _ACEOF
1.4 paf 11637:
1.5 moko 11638: fi
11639: if test "$libltdl_cv_shrext" != "$libltdl_cv_shlibext"; then
1.4 paf 11640:
1.5 moko 11641: cat >>confdefs.h <<_ACEOF
11642: #define LT_SHARED_EXT "$libltdl_cv_shrext"
11643: _ACEOF
1.4 paf 11644:
1.5 moko 11645: fi
1.4 paf 11646:
1.5 moko 11647: { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variable specifies run-time module search path" >&5
11648: $as_echo_n "checking which variable specifies run-time module search path... " >&6; }
11649: if ${lt_cv_module_path_var+:} false; then :
11650: $as_echo_n "(cached) " >&6
11651: else
11652: lt_cv_module_path_var="$shlibpath_var"
11653: fi
11654: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_module_path_var" >&5
11655: $as_echo "$lt_cv_module_path_var" >&6; }
11656: if test -n "$lt_cv_module_path_var"; then
1.4 paf 11657:
1.5 moko 11658: cat >>confdefs.h <<_ACEOF
11659: #define LT_MODULE_PATH_VAR "$lt_cv_module_path_var"
11660: _ACEOF
1.4 paf 11661:
1.5 moko 11662: fi
1.4 paf 11663:
1.5 moko 11664: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default library search path" >&5
11665: $as_echo_n "checking for the default library search path... " >&6; }
11666: if ${lt_cv_sys_dlsearch_path+:} false; then :
11667: $as_echo_n "(cached) " >&6
11668: else
11669: lt_cv_sys_dlsearch_path="$sys_lib_dlsearch_path_spec"
11670: fi
11671: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlsearch_path" >&5
11672: $as_echo "$lt_cv_sys_dlsearch_path" >&6; }
11673: if test -n "$lt_cv_sys_dlsearch_path"; then
11674: sys_dlsearch_path=
11675: for dir in $lt_cv_sys_dlsearch_path; do
11676: if test -z "$sys_dlsearch_path"; then
11677: sys_dlsearch_path="$dir"
11678: else
11679: sys_dlsearch_path="$sys_dlsearch_path$PATH_SEPARATOR$dir"
11680: fi
11681: done
1.4 paf 11682:
1.5 moko 11683: cat >>confdefs.h <<_ACEOF
11684: #define LT_DLSEARCH_PATH "$sys_dlsearch_path"
11685: _ACEOF
1.4 paf 11686:
1.5 moko 11687: fi
1.4 paf 11688:
11689:
1.5 moko 11690: LT_DLLOADERS=
1.4 paf 11691:
11692:
1.5 moko 11693: ac_ext=c
11694: ac_cpp='$CPP $CPPFLAGS'
11695: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11696: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11697: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.4 paf 11698:
11699:
1.5 moko 11700: LIBADD_DLOPEN=
11701: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
11702: $as_echo_n "checking for library containing dlopen... " >&6; }
11703: if ${ac_cv_search_dlopen+:} false; then :
11704: $as_echo_n "(cached) " >&6
11705: else
11706: ac_func_search_save_LIBS=$LIBS
11707: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11708: /* end confdefs.h. */
1.4 paf 11709:
1.5 moko 11710: /* Override any GCC internal prototype to avoid an error.
11711: Use char because int might match the return type of a GCC
11712: builtin and then its argument prototype would still apply. */
11713: #ifdef __cplusplus
11714: extern "C"
11715: #endif
11716: char dlopen ();
11717: int
11718: main ()
11719: {
11720: return dlopen ();
11721: ;
11722: return 0;
11723: }
11724: _ACEOF
11725: for ac_lib in '' dl; do
11726: if test -z "$ac_lib"; then
11727: ac_res="none required"
11728: else
11729: ac_res=-l$ac_lib
11730: LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11731: fi
11732: if ac_fn_c_try_link "$LINENO"; then :
11733: ac_cv_search_dlopen=$ac_res
11734: fi
11735: rm -f core conftest.err conftest.$ac_objext \
11736: conftest$ac_exeext
11737: if ${ac_cv_search_dlopen+:} false; then :
11738: break
1.4 paf 11739: fi
1.5 moko 11740: done
11741: if ${ac_cv_search_dlopen+:} false; then :
1.4 paf 11742:
1.5 moko 11743: else
11744: ac_cv_search_dlopen=no
11745: fi
11746: rm conftest.$ac_ext
11747: LIBS=$ac_func_search_save_LIBS
11748: fi
11749: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
11750: $as_echo "$ac_cv_search_dlopen" >&6; }
11751: ac_res=$ac_cv_search_dlopen
11752: if test "$ac_res" != no; then :
11753: test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
1.4 paf 11754:
1.5 moko 11755: $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
1.4 paf 11756:
1.5 moko 11757: if test "$ac_cv_search_dlopen" != "none required" ; then
11758: LIBADD_DLOPEN="-ldl"
11759: fi
11760: libltdl_cv_lib_dl_dlopen="yes"
11761: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
11762: else
11763: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11764: /* end confdefs.h. */
11765: #if HAVE_DLFCN_H
11766: # include <dlfcn.h>
11767: #endif
1.4 paf 11768:
1.5 moko 11769: int
11770: main ()
11771: {
11772: dlopen(0, 0);
11773: ;
11774: return 0;
11775: }
11776: _ACEOF
11777: if ac_fn_c_try_link "$LINENO"; then :
1.4 paf 11778:
1.5 moko 11779: $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
1.4 paf 11780:
1.5 moko 11781: libltdl_cv_func_dlopen="yes"
11782: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
11783: else
11784: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11785: $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11786: if ${ac_cv_lib_svld_dlopen+:} false; then :
11787: $as_echo_n "(cached) " >&6
11788: else
11789: ac_check_lib_save_LIBS=$LIBS
11790: LIBS="-lsvld $LIBS"
11791: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11792: /* end confdefs.h. */
1.4 paf 11793:
1.5 moko 11794: /* Override any GCC internal prototype to avoid an error.
11795: Use char because int might match the return type of a GCC
11796: builtin and then its argument prototype would still apply. */
11797: #ifdef __cplusplus
11798: extern "C"
11799: #endif
11800: char dlopen ();
11801: int
11802: main ()
11803: {
11804: return dlopen ();
11805: ;
11806: return 0;
11807: }
11808: _ACEOF
11809: if ac_fn_c_try_link "$LINENO"; then :
11810: ac_cv_lib_svld_dlopen=yes
11811: else
11812: ac_cv_lib_svld_dlopen=no
11813: fi
11814: rm -f core conftest.err conftest.$ac_objext \
11815: conftest$ac_exeext conftest.$ac_ext
11816: LIBS=$ac_check_lib_save_LIBS
11817: fi
11818: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11819: $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11820: if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
1.4 paf 11821:
1.5 moko 11822: $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
1.4 paf 11823:
1.5 moko 11824: LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes"
11825: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
11826: fi
1.4 paf 11827:
1.5 moko 11828: fi
11829: rm -f core conftest.err conftest.$ac_objext \
11830: conftest$ac_exeext conftest.$ac_ext
11831: fi
1.4 paf 11832:
1.5 moko 11833: if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
11834: then
11835: lt_save_LIBS="$LIBS"
11836: LIBS="$LIBS $LIBADD_DLOPEN"
11837: for ac_func in dlerror
11838: do :
11839: ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror"
11840: if test "x$ac_cv_func_dlerror" = xyes; then :
11841: cat >>confdefs.h <<_ACEOF
11842: #define HAVE_DLERROR 1
11843: _ACEOF
1.4 paf 11844:
1.5 moko 11845: fi
11846: done
1.4 paf 11847:
1.5 moko 11848: LIBS="$lt_save_LIBS"
11849: fi
1.4 paf 11850:
11851:
1.5 moko 11852: LIBADD_SHL_LOAD=
11853: ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11854: if test "x$ac_cv_func_shl_load" = xyes; then :
1.4 paf 11855:
1.5 moko 11856: $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
1.4 paf 11857:
1.5 moko 11858: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
11859: else
11860: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11861: $as_echo_n "checking for shl_load in -ldld... " >&6; }
11862: if ${ac_cv_lib_dld_shl_load+:} false; then :
11863: $as_echo_n "(cached) " >&6
1.4 paf 11864: else
1.5 moko 11865: ac_check_lib_save_LIBS=$LIBS
11866: LIBS="-ldld $LIBS"
11867: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.4 paf 11868: /* end confdefs.h. */
11869:
1.5 moko 11870: /* Override any GCC internal prototype to avoid an error.
11871: Use char because int might match the return type of a GCC
11872: builtin and then its argument prototype would still apply. */
11873: #ifdef __cplusplus
11874: extern "C"
11875: #endif
11876: char shl_load ();
1.4 paf 11877: int
11878: main ()
11879: {
1.5 moko 11880: return shl_load ();
1.4 paf 11881: ;
11882: return 0;
11883: }
11884: _ACEOF
1.5 moko 11885: if ac_fn_c_try_link "$LINENO"; then :
11886: ac_cv_lib_dld_shl_load=yes
1.4 paf 11887: else
1.5 moko 11888: ac_cv_lib_dld_shl_load=no
11889: fi
11890: rm -f core conftest.err conftest.$ac_objext \
11891: conftest$ac_exeext conftest.$ac_ext
11892: LIBS=$ac_check_lib_save_LIBS
11893: fi
11894: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11895: $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11896: if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11897:
11898: $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
1.4 paf 11899:
1.5 moko 11900: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
11901: LIBADD_SHL_LOAD="-ldld"
1.4 paf 11902: fi
1.5 moko 11903:
1.4 paf 11904: fi
11905:
1.5 moko 11906:
11907:
11908: case $host_os in
11909: darwin[1567].*)
11910: # We only want this for pre-Mac OS X 10.4.
11911: ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup"
11912: if test "x$ac_cv_func__dyld_func_lookup" = xyes; then :
11913:
11914: $as_echo "#define HAVE_DYLD 1" >>confdefs.h
11915:
11916: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"
1.4 paf 11917: fi
11918:
1.5 moko 11919: ;;
11920: beos*)
11921: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
11922: ;;
11923: cygwin* | mingw* | os2* | pw32*)
11924: ac_fn_c_check_decl "$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include <sys/cygwin.h>
11925: "
11926: if test "x$ac_cv_have_decl_cygwin_conv_path" = xyes; then :
11927: ac_have_decl=1
1.4 paf 11928: else
1.5 moko 11929: ac_have_decl=0
11930: fi
11931:
11932: cat >>confdefs.h <<_ACEOF
11933: #define HAVE_DECL_CYGWIN_CONV_PATH $ac_have_decl
1.4 paf 11934: _ACEOF
1.5 moko 11935:
11936: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
11937: ;;
11938: esac
11939:
11940: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11941: $as_echo_n "checking for dld_link in -ldld... " >&6; }
11942: if ${ac_cv_lib_dld_dld_link+:} false; then :
11943: $as_echo_n "(cached) " >&6
11944: else
11945: ac_check_lib_save_LIBS=$LIBS
11946: LIBS="-ldld $LIBS"
11947: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.4 paf 11948: /* end confdefs.h. */
11949:
1.5 moko 11950: /* Override any GCC internal prototype to avoid an error.
11951: Use char because int might match the return type of a GCC
11952: builtin and then its argument prototype would still apply. */
1.4 paf 11953: #ifdef __cplusplus
11954: extern "C"
11955: #endif
1.5 moko 11956: char dld_link ();
1.4 paf 11957: int
11958: main ()
11959: {
1.5 moko 11960: return dld_link ();
1.4 paf 11961: ;
11962: return 0;
11963: }
11964: _ACEOF
1.5 moko 11965: if ac_fn_c_try_link "$LINENO"; then :
11966: ac_cv_lib_dld_dld_link=yes
11967: else
11968: ac_cv_lib_dld_dld_link=no
11969: fi
11970: rm -f core conftest.err conftest.$ac_objext \
11971: conftest$ac_exeext conftest.$ac_ext
11972: LIBS=$ac_check_lib_save_LIBS
11973: fi
11974: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11975: $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11976: if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11977:
11978: $as_echo "#define HAVE_DLD 1" >>confdefs.h
11979:
11980: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"
11981: fi
11982:
11983:
11984:
11985:
11986: LT_DLPREOPEN=
11987: if test -n "$LT_DLLOADERS"
11988: then
11989: for lt_loader in $LT_DLLOADERS; do
11990: LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
11991: done
11992:
11993: $as_echo "#define HAVE_LIBDLLOADER 1" >>confdefs.h
11994:
11995: fi
11996:
11997:
11998: LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
11999:
12000:
12001: ac_ext=c
12002: ac_cpp='$CPP $CPPFLAGS'
12003: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12004: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12005: ac_compiler_gnu=$ac_cv_c_compiler_gnu
12006:
12007:
12008: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5
12009: $as_echo_n "checking for _ prefix in compiled symbols... " >&6; }
12010: if ${lt_cv_sys_symbol_underscore+:} false; then :
12011: $as_echo_n "(cached) " >&6
12012: else
12013: lt_cv_sys_symbol_underscore=no
12014: cat > conftest.$ac_ext <<_LT_EOF
12015: void nm_test_func(){}
12016: int main(){nm_test_func;return 0;}
12017: _LT_EOF
12018: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12019: (eval $ac_compile) 2>&5
1.4 paf 12020: ac_status=$?
1.5 moko 12021: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12022: test $ac_status = 0; }; then
12023: # Now try to grab the symbols.
12024: ac_nlist=conftest.nm
12025: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\""; } >&5
12026: (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
12027: ac_status=$?
12028: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12029: test $ac_status = 0; } && test -s "$ac_nlist"; then
12030: # See whether the symbols have a leading underscore.
12031: if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
12032: lt_cv_sys_symbol_underscore=yes
12033: else
12034: if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
12035: :
12036: else
12037: echo "configure: cannot find nm_test_func in $ac_nlist" >&5
12038: fi
12039: fi
12040: else
12041: echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
12042: fi
12043: else
12044: echo "configure: failed program was:" >&5
12045: cat conftest.c >&5
12046: fi
12047: rm -rf conftest*
12048:
12049: fi
12050: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_symbol_underscore" >&5
12051: $as_echo "$lt_cv_sys_symbol_underscore" >&6; }
12052: sys_symbol_underscore=$lt_cv_sys_symbol_underscore
12053:
12054:
12055: if test x"$lt_cv_sys_symbol_underscore" = xyes; then
12056: if test x"$libltdl_cv_func_dlopen" = xyes ||
12057: test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
12058: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have to add an underscore for dlsym" >&5
12059: $as_echo_n "checking whether we have to add an underscore for dlsym... " >&6; }
12060: if ${libltdl_cv_need_uscore+:} false; then :
12061: $as_echo_n "(cached) " >&6
12062: else
12063: libltdl_cv_need_uscore=unknown
12064: save_LIBS="$LIBS"
12065: LIBS="$LIBS $LIBADD_DLOPEN"
12066: if test "$cross_compiling" = yes; then :
12067: libltdl_cv_need_uscore=cross
1.4 paf 12068: else
1.5 moko 12069: lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12070: lt_status=$lt_dlunknown
12071: cat > conftest.$ac_ext <<_LT_EOF
12072: #line $LINENO "configure"
12073: #include "confdefs.h"
12074:
12075: #if HAVE_DLFCN_H
12076: #include <dlfcn.h>
12077: #endif
12078:
12079: #include <stdio.h>
12080:
12081: #ifdef RTLD_GLOBAL
12082: # define LT_DLGLOBAL RTLD_GLOBAL
12083: #else
12084: # ifdef DL_GLOBAL
12085: # define LT_DLGLOBAL DL_GLOBAL
12086: # else
12087: # define LT_DLGLOBAL 0
12088: # endif
12089: #endif
1.4 paf 12090:
1.5 moko 12091: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12092: find out it does not work in some platform. */
12093: #ifndef LT_DLLAZY_OR_NOW
12094: # ifdef RTLD_LAZY
12095: # define LT_DLLAZY_OR_NOW RTLD_LAZY
12096: # else
12097: # ifdef DL_LAZY
12098: # define LT_DLLAZY_OR_NOW DL_LAZY
12099: # else
12100: # ifdef RTLD_NOW
12101: # define LT_DLLAZY_OR_NOW RTLD_NOW
12102: # else
12103: # ifdef DL_NOW
12104: # define LT_DLLAZY_OR_NOW DL_NOW
12105: # else
12106: # define LT_DLLAZY_OR_NOW 0
12107: # endif
12108: # endif
12109: # endif
12110: # endif
12111: #endif
1.2 paf 12112:
1.5 moko 12113: /* When -fvisbility=hidden is used, assume the code has been annotated
12114: correspondingly for the symbols needed. */
12115: #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12116: int fnord () __attribute__((visibility("default")));
1.4 paf 12117: #endif
1.5 moko 12118:
12119: int fnord () { return 42; }
12120: int main ()
1.4 paf 12121: {
1.5 moko 12122: void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12123: int status = $lt_dlunknown;
1.2 paf 12124:
1.5 moko 12125: if (self)
12126: {
12127: if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12128: else
12129: {
12130: if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12131: else puts (dlerror ());
12132: }
12133: /* dlclose (self); */
12134: }
12135: else
12136: puts (dlerror ());
1.4 paf 12137:
1.5 moko 12138: return status;
1.4 paf 12139: }
1.5 moko 12140: _LT_EOF
12141: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
1.4 paf 12142: (eval $ac_link) 2>&5
12143: ac_status=$?
1.5 moko 12144: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12145: test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12146: (./conftest; exit; ) >&5 2>/dev/null
12147: lt_status=$?
12148: case x$lt_status in
12149: x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
12150: x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
12151: x$lt_dlunknown|x*) ;;
12152: esac
12153: else :
12154: # compilation failed
1.4 paf 12155:
1.5 moko 12156: fi
1.4 paf 12157: fi
1.5 moko 12158: rm -fr conftest*
1.4 paf 12159:
1.5 moko 12160: LIBS="$save_LIBS"
1.4 paf 12161:
12162: fi
1.5 moko 12163: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_need_uscore" >&5
12164: $as_echo "$libltdl_cv_need_uscore" >&6; }
12165: fi
1.4 paf 12166: fi
12167:
1.5 moko 12168: if test x"$libltdl_cv_need_uscore" = xyes; then
12169:
12170: $as_echo "#define NEED_USCORE 1" >>confdefs.h
1.4 paf 12171:
12172: fi
12173:
1.5 moko 12174: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether deplibs are loaded by dlopen" >&5
12175: $as_echo_n "checking whether deplibs are loaded by dlopen... " >&6; }
12176: if ${lt_cv_sys_dlopen_deplibs+:} false; then :
12177: $as_echo_n "(cached) " >&6
1.2 paf 12178: else
1.5 moko 12179: # PORTME does your system automatically load deplibs for dlopen?
12180: # or its logical equivalent (e.g. shl_load for HP-UX < 11)
12181: # For now, we just catch OSes we know something about -- in the
12182: # future, we'll try test this programmatically.
12183: lt_cv_sys_dlopen_deplibs=unknown
12184: case $host_os in
12185: aix3*|aix4.1.*|aix4.2.*)
12186: # Unknown whether this is true for these versions of AIX, but
12187: # we want this `case' here to explicitly catch those versions.
12188: lt_cv_sys_dlopen_deplibs=unknown
12189: ;;
12190: aix[4-9]*)
12191: lt_cv_sys_dlopen_deplibs=yes
12192: ;;
12193: amigaos*)
12194: case $host_cpu in
12195: powerpc)
12196: lt_cv_sys_dlopen_deplibs=no
1.4 paf 12197: ;;
12198: esac
1.5 moko 12199: ;;
12200: darwin*)
12201: # Assuming the user has installed a libdl from somewhere, this is true
12202: # If you are looking for one http://www.opendarwin.org/projects/dlcompat
12203: lt_cv_sys_dlopen_deplibs=yes
12204: ;;
12205: freebsd* | dragonfly*)
12206: lt_cv_sys_dlopen_deplibs=yes
12207: ;;
12208: gnu* | linux* | k*bsd*-gnu | kopensolaris*-gnu)
12209: # GNU and its variants, using gnu ld.so (Glibc)
12210: lt_cv_sys_dlopen_deplibs=yes
12211: ;;
12212: hpux10*|hpux11*)
12213: lt_cv_sys_dlopen_deplibs=yes
12214: ;;
12215: interix*)
12216: lt_cv_sys_dlopen_deplibs=yes
12217: ;;
12218: irix[12345]*|irix6.[01]*)
12219: # Catch all versions of IRIX before 6.2, and indicate that we don't
12220: # know how it worked for any of those versions.
12221: lt_cv_sys_dlopen_deplibs=unknown
12222: ;;
12223: irix*)
12224: # The case above catches anything before 6.2, and it's known that
12225: # at 6.2 and later dlopen does load deplibs.
12226: lt_cv_sys_dlopen_deplibs=yes
12227: ;;
12228: netbsd*)
12229: lt_cv_sys_dlopen_deplibs=yes
12230: ;;
12231: openbsd*)
12232: lt_cv_sys_dlopen_deplibs=yes
12233: ;;
12234: osf[1234]*)
12235: # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
12236: # it did *not* use an RPATH in a shared library to find objects the
12237: # library depends on, so we explicitly say `no'.
12238: lt_cv_sys_dlopen_deplibs=no
12239: ;;
12240: osf5.0|osf5.0a|osf5.1)
12241: # dlopen *does* load deplibs and with the right loader patch applied
12242: # it even uses RPATH in a shared library to search for shared objects
12243: # that the library depends on, but there's no easy way to know if that
12244: # patch is installed. Since this is the case, all we can really
12245: # say is unknown -- it depends on the patch being installed. If
12246: # it is, this changes to `yes'. Without it, it would be `no'.
12247: lt_cv_sys_dlopen_deplibs=unknown
12248: ;;
12249: osf*)
12250: # the two cases above should catch all versions of osf <= 5.1. Read
12251: # the comments above for what we know about them.
12252: # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
12253: # is used to find them so we can finally say `yes'.
12254: lt_cv_sys_dlopen_deplibs=yes
12255: ;;
12256: qnx*)
12257: lt_cv_sys_dlopen_deplibs=yes
12258: ;;
12259: solaris*)
12260: lt_cv_sys_dlopen_deplibs=yes
12261: ;;
12262: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12263: libltdl_cv_sys_dlopen_deplibs=yes
12264: ;;
12265: esac
12266:
1.4 paf 12267: fi
1.5 moko 12268: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlopen_deplibs" >&5
12269: $as_echo "$lt_cv_sys_dlopen_deplibs" >&6; }
12270: if test "$lt_cv_sys_dlopen_deplibs" != yes; then
1.4 paf 12271:
1.5 moko 12272: $as_echo "#define LTDL_DLOPEN_DEPLIBS 1" >>confdefs.h
1.1 paf 12273:
12274: fi
12275:
1.5 moko 12276: :
1.4 paf 12277:
1.5 moko 12278: for ac_header in argz.h
12279: do :
12280: ac_fn_c_check_header_compile "$LINENO" "argz.h" "ac_cv_header_argz_h" "$ac_includes_default
12281: "
12282: if test "x$ac_cv_header_argz_h" = xyes; then :
1.4 paf 12283: cat >>confdefs.h <<_ACEOF
1.5 moko 12284: #define HAVE_ARGZ_H 1
1.4 paf 12285: _ACEOF
12286:
12287: fi
1.1 paf 12288:
1.2 paf 12289: done
1.4 paf 12290:
12291:
1.5 moko 12292: ac_fn_c_check_type "$LINENO" "error_t" "ac_cv_type_error_t" "#if defined(HAVE_ARGZ_H)
12293: # include <argz.h>
12294: #endif
12295: "
12296: if test "x$ac_cv_type_error_t" = xyes; then :
1.4 paf 12297:
1.5 moko 12298: cat >>confdefs.h <<_ACEOF
12299: #define HAVE_ERROR_T 1
12300: _ACEOF
1.4 paf 12301:
12302:
1.5 moko 12303: else
1.4 paf 12304:
1.5 moko 12305: $as_echo "#define error_t int" >>confdefs.h
1.4 paf 12306:
12307:
1.5 moko 12308: $as_echo "#define __error_t_defined 1" >>confdefs.h
1.4 paf 12309:
12310: fi
12311:
12312:
1.5 moko 12313: ARGZ_H=
12314: for ac_func in argz_add argz_append argz_count argz_create_sep argz_insert \
12315: argz_next argz_stringify
12316: do :
12317: as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12318: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12319: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12320: cat >>confdefs.h <<_ACEOF
12321: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12322: _ACEOF
1.4 paf 12323:
1.5 moko 12324: else
12325: ARGZ_H=argz.h; case " $LIBOBJS " in
12326: *" argz.$ac_objext "* ) ;;
12327: *) LIBOBJS="$LIBOBJS argz.$ac_objext"
12328: ;;
12329: esac
1.4 paf 12330:
12331: fi
1.5 moko 12332: done
1.4 paf 12333:
12334:
1.5 moko 12335: if test -z "$ARGZ_H"; then :
12336: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if argz actually works" >&5
12337: $as_echo_n "checking if argz actually works... " >&6; }
12338: if ${lt_cv_sys_argz_works+:} false; then :
12339: $as_echo_n "(cached) " >&6
12340: else
12341: case $host_os in #(
12342: *cygwin*)
12343: lt_cv_sys_argz_works=no
12344: if test "$cross_compiling" != no; then
12345: lt_cv_sys_argz_works="guessing no"
12346: else
12347: lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/'
12348: save_IFS=$IFS
12349: IFS=-.
12350: set x `uname -r | sed -e "$lt_sed_extract_leading_digits"`
12351: IFS=$save_IFS
12352: lt_os_major=${2-0}
12353: lt_os_minor=${3-0}
12354: lt_os_micro=${4-0}
12355: if test "$lt_os_major" -gt 1 \
12356: || { test "$lt_os_major" -eq 1 \
12357: && { test "$lt_os_minor" -gt 5 \
12358: || { test "$lt_os_minor" -eq 5 \
12359: && test "$lt_os_micro" -gt 24; }; }; }; then
12360: lt_cv_sys_argz_works=yes
12361: fi
12362: fi
12363: ;; #(
12364: *) lt_cv_sys_argz_works=yes ;;
12365: esac
1.4 paf 12366: fi
1.5 moko 12367: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_argz_works" >&5
12368: $as_echo "$lt_cv_sys_argz_works" >&6; }
12369: if test "$lt_cv_sys_argz_works" = yes; then :
1.4 paf 12370:
1.5 moko 12371: $as_echo "#define HAVE_WORKING_ARGZ 1" >>confdefs.h
1.4 paf 12372:
12373: else
1.5 moko 12374: ARGZ_H=argz.h
12375: case " $LIBOBJS " in
12376: *" argz.$ac_objext "* ) ;;
12377: *) LIBOBJS="$LIBOBJS argz.$ac_objext"
12378: ;;
12379: esac
12380:
1.4 paf 12381: fi
1.5 moko 12382: fi
12383:
1.4 paf 12384:
1.5 moko 12385:
12386: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libtool supports -dlopen/-dlpreopen" >&5
12387: $as_echo_n "checking whether libtool supports -dlopen/-dlpreopen... " >&6; }
12388: if ${libltdl_cv_preloaded_symbols+:} false; then :
12389: $as_echo_n "(cached) " >&6
12390: else
12391: if test -n "$lt_cv_sys_global_symbol_pipe"; then
12392: libltdl_cv_preloaded_symbols=yes
12393: else
12394: libltdl_cv_preloaded_symbols=no
12395: fi
1.4 paf 12396:
1.1 paf 12397: fi
1.5 moko 12398: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_preloaded_symbols" >&5
12399: $as_echo "$libltdl_cv_preloaded_symbols" >&6; }
12400: if test x"$libltdl_cv_preloaded_symbols" = xyes; then
1.1 paf 12401:
1.5 moko 12402: $as_echo "#define HAVE_PRELOADED_SYMBOLS 1" >>confdefs.h
1.1 paf 12403:
1.4 paf 12404: fi
12405:
12406:
1.5 moko 12407:
12408: # Check whether --enable-ltdl-install was given.
12409: if test "${enable_ltdl_install+set}" = set; then :
12410: enableval=$enable_ltdl_install;
1.4 paf 12411: fi
12412:
1.5 moko 12413:
12414: case ,${enable_ltdl_install},${enable_ltdl_convenience} in
12415: *yes*) ;;
12416: *) enable_ltdl_convenience=yes ;;
12417: esac
12418:
12419: if test x"${enable_ltdl_install-no}" != xno; then
12420: INSTALL_LTDL_TRUE=
12421: INSTALL_LTDL_FALSE='#'
1.4 paf 12422: else
1.5 moko 12423: INSTALL_LTDL_TRUE='#'
12424: INSTALL_LTDL_FALSE=
12425: fi
12426:
12427: if test x"${enable_ltdl_convenience-no}" != xno; then
12428: CONVENIENCE_LTDL_TRUE=
12429: CONVENIENCE_LTDL_FALSE='#'
1.4 paf 12430: else
1.5 moko 12431: CONVENIENCE_LTDL_TRUE='#'
12432: CONVENIENCE_LTDL_FALSE=
1.1 paf 12433: fi
1.4 paf 12434:
12435:
12436:
12437:
12438:
12439:
1.5 moko 12440: # In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS
12441: # the user used. This is so that ltdl.h can pick up the parent projects
12442: # config.h file, The first file in AC_CONFIG_HEADERS must contain the
12443: # definitions required by ltdl.c.
12444: # FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility).
1.4 paf 12445:
12446:
12447:
1.5 moko 12448: for ac_header in unistd.h dl.h sys/dl.h dld.h mach-o/dyld.h dirent.h
12449: do :
12450: as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12451: ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
12452: "
12453: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12454: cat >>confdefs.h <<_ACEOF
12455: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
1.2 paf 12456: _ACEOF
12457:
1.4 paf 12458: fi
12459:
1.5 moko 12460: done
12461:
12462:
12463: for ac_func in closedir opendir readdir
12464: do :
12465: as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12466: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12467: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12468: cat >>confdefs.h <<_ACEOF
12469: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.4 paf 12470: _ACEOF
1.2 paf 12471:
1.4 paf 12472: else
1.5 moko 12473: case " $LIBOBJS " in
12474: *" lt__dirent.$ac_objext "* ) ;;
12475: *) LIBOBJS="$LIBOBJS lt__dirent.$ac_objext"
12476: ;;
12477: esac
12478:
12479: fi
12480: done
12481:
12482: for ac_func in strlcat strlcpy
12483: do :
12484: as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12485: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12486: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12487: cat >>confdefs.h <<_ACEOF
12488: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.2 paf 12489: _ACEOF
1.4 paf 12490:
1.2 paf 12491: else
1.5 moko 12492: case " $LIBOBJS " in
12493: *" lt__strl.$ac_objext "* ) ;;
12494: *) LIBOBJS="$LIBOBJS lt__strl.$ac_objext"
12495: ;;
12496: esac
1.2 paf 12497:
1.1 paf 12498: fi
1.5 moko 12499: done
12500:
12501:
1.1 paf 12502:
1.5 moko 12503: cat >>confdefs.h <<_ACEOF
12504: #define LT_LIBEXT "$libext"
1.4 paf 12505: _ACEOF
1.2 paf 12506:
1.5 moko 12507:
12508: name=
12509: eval "lt_libprefix=\"$libname_spec\""
12510:
12511: cat >>confdefs.h <<_ACEOF
12512: #define LT_LIBPREFIX "$lt_libprefix"
1.2 paf 12513: _ACEOF
12514:
1.5 moko 12515:
12516: name=ltdl
12517: eval "LTDLOPEN=\"$libname_spec\""
12518:
12519:
12520:
12521:
12522: ## -------- ##
12523: ## Outputs. ##
12524: ## -------- ##
12525: ac_config_files="$ac_config_files Makefile"
12526:
12527: cat >confcache <<\_ACEOF
12528: # This file is a shell script that caches the results of configure
12529: # tests run on this system so they can be shared between configure
12530: # scripts and configure runs, see configure's option --config-cache.
12531: # It is not useful on other systems. If it contains results you don't
12532: # want to keep, you may remove or edit it.
12533: #
12534: # config.status only pays attention to the cache file if you give it
12535: # the --recheck option to rerun configure.
12536: #
12537: # `ac_cv_env_foo' variables (set or unset) will be overridden when
12538: # loading this file, other *unset* `ac_cv_foo' will be assigned the
12539: # following values.
12540:
1.2 paf 12541: _ACEOF
12542:
1.5 moko 12543: # The following way of writing the cache mishandles newlines in values,
12544: # but we know of no workaround that is simple, portable, and efficient.
12545: # So, we kill variables containing newlines.
12546: # Ultrix sh set writes to stderr and can't be redirected directly,
12547: # and sets the high bit in the cache file unless we assign to the vars.
12548: (
12549: for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12550: eval ac_val=\$$ac_var
12551: case $ac_val in #(
12552: *${as_nl}*)
12553: case $ac_var in #(
12554: *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12555: $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12556: esac
12557: case $ac_var in #(
12558: _ | IFS | as_nl) ;; #(
12559: BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12560: *) { eval $ac_var=; unset $ac_var;} ;;
12561: esac ;;
12562: esac
12563: done
12564:
12565: (set) 2>&1 |
12566: case $as_nl`(ac_space=' '; set) 2>&1` in #(
12567: *${as_nl}ac_space=\ *)
12568: # `set' does not quote correctly, so add quotes: double-quote
12569: # substitution turns \\\\ into \\, and sed turns \\ into \.
12570: sed -n \
12571: "s/'/'\\\\''/g;
12572: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12573: ;; #(
12574: *)
12575: # `set' quotes correctly as required by POSIX, so do not add quotes.
12576: sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12577: ;;
12578: esac |
12579: sort
12580: ) |
12581: sed '
12582: /^ac_cv_env_/b end
12583: t clear
12584: :clear
12585: s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12586: t end
12587: s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12588: :end' >>confcache
12589: if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12590: if test -w "$cache_file"; then
12591: if test "x$cache_file" != "x/dev/null"; then
12592: { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12593: $as_echo "$as_me: updating cache $cache_file" >&6;}
12594: if test ! -f "$cache_file" || test -h "$cache_file"; then
12595: cat confcache >"$cache_file"
12596: else
12597: case $cache_file in #(
12598: */* | ?:*)
12599: mv -f confcache "$cache_file"$$ &&
12600: mv -f "$cache_file"$$ "$cache_file" ;; #(
12601: *)
12602: mv -f confcache "$cache_file" ;;
12603: esac
12604: fi
12605: fi
12606: else
12607: { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12608: $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12609: fi
1.4 paf 12610: fi
1.5 moko 12611: rm -f confcache
12612:
12613: test "x$prefix" = xNONE && prefix=$ac_default_prefix
12614: # Let make expand exec_prefix.
12615: test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12616:
12617: DEFS=-DHAVE_CONFIG_H
12618:
12619: ac_libobjs=
12620: ac_ltlibobjs=
12621: U=
12622: for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12623: # 1. Remove the extension, and $U if already installed.
12624: ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12625: ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12626: # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12627: # will be set to the directory where LIBOBJS objects are built.
12628: as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12629: as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12630: done
12631: LIBOBJS=$ac_libobjs
12632:
12633: LTLIBOBJS=$ac_ltlibobjs
1.4 paf 12634:
1.1 paf 12635:
1.5 moko 12636: if test -n "$EXEEXT"; then
12637: am__EXEEXT_TRUE=
12638: am__EXEEXT_FALSE='#'
1.4 paf 12639: else
1.5 moko 12640: am__EXEEXT_TRUE='#'
12641: am__EXEEXT_FALSE=
12642: fi
1.4 paf 12643:
1.5 moko 12644: if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12645: as_fn_error $? "conditional \"AMDEP\" was never defined.
12646: Usually this means the macro was only invoked conditionally." "$LINENO" 5
12647: fi
12648: if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12649: as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12650: Usually this means the macro was only invoked conditionally." "$LINENO" 5
12651: fi
12652: if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
12653: as_fn_error $? "conditional \"INSTALL_LTDL\" was never defined.
12654: Usually this means the macro was only invoked conditionally." "$LINENO" 5
12655: fi
12656: if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
12657: as_fn_error $? "conditional \"CONVENIENCE_LTDL\" was never defined.
12658: Usually this means the macro was only invoked conditionally." "$LINENO" 5
12659: fi
12660: LT_CONFIG_H=config.h
1.2 paf 12661:
1.5 moko 12662: : "${CONFIG_STATUS=./config.status}"
12663: ac_write_fail=0
12664: ac_clean_files_save=$ac_clean_files
12665: ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12666: { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12667: $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12668: as_write_fail=0
12669: cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12670: #! $SHELL
12671: # Generated by $as_me.
12672: # Run this file to recreate the current configuration.
12673: # Compiler output produced by configure, useful for debugging
12674: # configure, is in config.log if it exists.
1.4 paf 12675:
1.5 moko 12676: debug=false
12677: ac_cs_recheck=false
12678: ac_cs_silent=false
1.1 paf 12679:
1.5 moko 12680: SHELL=\${CONFIG_SHELL-$SHELL}
12681: export SHELL
12682: _ASEOF
12683: cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12684: ## -------------------- ##
12685: ## M4sh Initialization. ##
12686: ## -------------------- ##
12687:
12688: # Be more Bourne compatible
12689: DUALCASE=1; export DUALCASE # for MKS sh
12690: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12691: emulate sh
12692: NULLCMD=:
12693: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12694: # is contrary to our usage. Disable this feature.
12695: alias -g '${1+"$@"}'='"$@"'
12696: setopt NO_GLOB_SUBST
1.4 paf 12697: else
1.5 moko 12698: case `(set -o) 2>/dev/null` in #(
12699: *posix*) :
12700: set -o posix ;; #(
12701: *) :
12702: ;;
12703: esac
12704: fi
1.2 paf 12705:
1.4 paf 12706:
1.5 moko 12707: as_nl='
12708: '
12709: export as_nl
12710: # Printing a long string crashes Solaris 7 /usr/bin/printf.
12711: as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12712: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12713: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12714: # Prefer a ksh shell builtin over an external printf program on Solaris,
12715: # but without wasting forks for bash or zsh.
12716: if test -z "$BASH_VERSION$ZSH_VERSION" \
12717: && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12718: as_echo='print -r --'
12719: as_echo_n='print -rn --'
12720: elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12721: as_echo='printf %s\n'
12722: as_echo_n='printf %s'
12723: else
12724: if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12725: as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12726: as_echo_n='/usr/ucb/echo -n'
12727: else
12728: as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12729: as_echo_n_body='eval
12730: arg=$1;
12731: case $arg in #(
12732: *"$as_nl"*)
12733: expr "X$arg" : "X\\(.*\\)$as_nl";
12734: arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12735: esac;
12736: expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12737: '
12738: export as_echo_n_body
12739: as_echo_n='sh -c $as_echo_n_body as_echo'
12740: fi
12741: export as_echo_body
12742: as_echo='sh -c $as_echo_body as_echo'
1.4 paf 12743: fi
1.5 moko 12744:
12745: # The user is always right.
12746: if test "${PATH_SEPARATOR+set}" != set; then
12747: PATH_SEPARATOR=:
12748: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12749: (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12750: PATH_SEPARATOR=';'
12751: }
1.1 paf 12752: fi
1.4 paf 12753:
1.1 paf 12754:
1.5 moko 12755: # IFS
12756: # We need space, tab and new line, in precisely that order. Quoting is
12757: # there to prevent editors from complaining about space-tab.
12758: # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12759: # splitting by setting IFS to empty value.)
12760: IFS=" "" $as_nl"
12761:
12762: # Find who we are. Look in the path if we contain no directory separator.
12763: as_myself=
12764: case $0 in #((
12765: *[\\/]* ) as_myself=$0 ;;
12766: *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12767: for as_dir in $PATH
12768: do
12769: IFS=$as_save_IFS
12770: test -z "$as_dir" && as_dir=.
12771: test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12772: done
12773: IFS=$as_save_IFS
12774:
12775: ;;
12776: esac
12777: # We did not find ourselves, most probably we were run as `sh COMMAND'
12778: # in which case we are not to be found in the path.
12779: if test "x$as_myself" = x; then
12780: as_myself=$0
12781: fi
12782: if test ! -f "$as_myself"; then
12783: $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12784: exit 1
12785: fi
12786:
12787: # Unset variables that we do not need and which cause bugs (e.g. in
12788: # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
12789: # suppresses any "Segmentation fault" message there. '((' could
12790: # trigger a bug in pdksh 5.2.14.
12791: for as_var in BASH_ENV ENV MAIL MAILPATH
12792: do eval test x\${$as_var+set} = xset \
12793: && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12794: done
12795: PS1='$ '
12796: PS2='> '
12797: PS4='+ '
1.4 paf 12798:
1.5 moko 12799: # NLS nuisances.
12800: LC_ALL=C
12801: export LC_ALL
12802: LANGUAGE=C
12803: export LANGUAGE
1.2 paf 12804:
1.5 moko 12805: # CDPATH.
12806: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
1.1 paf 12807:
1.2 paf 12808:
1.5 moko 12809: # as_fn_error STATUS ERROR [LINENO LOG_FD]
12810: # ----------------------------------------
12811: # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12812: # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12813: # script with STATUS, using 1 if that was 0.
12814: as_fn_error ()
12815: {
12816: as_status=$1; test $as_status -eq 0 && as_status=1
12817: if test "$4"; then
12818: as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12819: $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12820: fi
12821: $as_echo "$as_me: error: $2" >&2
12822: as_fn_exit $as_status
12823: } # as_fn_error
12824:
12825:
12826: # as_fn_set_status STATUS
12827: # -----------------------
12828: # Set $? to STATUS, without forking.
12829: as_fn_set_status ()
12830: {
12831: return $1
12832: } # as_fn_set_status
12833:
12834: # as_fn_exit STATUS
12835: # -----------------
12836: # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12837: as_fn_exit ()
12838: {
12839: set +e
12840: as_fn_set_status $1
12841: exit $1
12842: } # as_fn_exit
12843:
12844: # as_fn_unset VAR
12845: # ---------------
12846: # Portably unset VAR.
12847: as_fn_unset ()
12848: {
12849: { eval $1=; unset $1;}
12850: }
12851: as_unset=as_fn_unset
12852: # as_fn_append VAR VALUE
12853: # ----------------------
12854: # Append the text in VALUE to the end of the definition contained in VAR. Take
12855: # advantage of any shell optimizations that allow amortized linear growth over
12856: # repeated appends, instead of the typical quadratic growth present in naive
12857: # implementations.
12858: if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12859: eval 'as_fn_append ()
12860: {
12861: eval $1+=\$2
12862: }'
12863: else
12864: as_fn_append ()
12865: {
12866: eval $1=\$$1\$2
12867: }
12868: fi # as_fn_append
1.4 paf 12869:
1.5 moko 12870: # as_fn_arith ARG...
12871: # ------------------
12872: # Perform arithmetic evaluation on the ARGs, and store the result in the
12873: # global $as_val. Take advantage of shells that can avoid forks. The arguments
12874: # must be portable across $(()) and expr.
12875: if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12876: eval 'as_fn_arith ()
12877: {
12878: as_val=$(( $* ))
12879: }'
12880: else
12881: as_fn_arith ()
12882: {
12883: as_val=`expr "$@" || test $? -eq 1`
12884: }
12885: fi # as_fn_arith
1.4 paf 12886:
12887:
1.5 moko 12888: if expr a : '\(a\)' >/dev/null 2>&1 &&
12889: test "X`expr 00001 : '.*\(...\)'`" = X001; then
12890: as_expr=expr
12891: else
12892: as_expr=false
1.2 paf 12893: fi
12894:
1.5 moko 12895: if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12896: as_basename=basename
12897: else
12898: as_basename=false
1.4 paf 12899: fi
1.2 paf 12900:
1.5 moko 12901: if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12902: as_dirname=dirname
12903: else
12904: as_dirname=false
1.4 paf 12905: fi
1.2 paf 12906:
1.5 moko 12907: as_me=`$as_basename -- "$0" ||
12908: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12909: X"$0" : 'X\(//\)$' \| \
12910: X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12911: $as_echo X/"$0" |
12912: sed '/^.*\/\([^/][^/]*\)\/*$/{
12913: s//\1/
12914: q
12915: }
12916: /^X\/\(\/\/\)$/{
12917: s//\1/
12918: q
12919: }
12920: /^X\/\(\/\).*/{
12921: s//\1/
12922: q
12923: }
12924: s/.*/./; q'`
1.2 paf 12925:
1.5 moko 12926: # Avoid depending upon Character Ranges.
12927: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12928: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12929: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12930: as_cr_digits='0123456789'
12931: as_cr_alnum=$as_cr_Letters$as_cr_digits
1.2 paf 12932:
1.5 moko 12933: ECHO_C= ECHO_N= ECHO_T=
12934: case `echo -n x` in #(((((
12935: -n*)
12936: case `echo 'xy\c'` in
12937: *c*) ECHO_T=' ';; # ECHO_T is single tab character.
12938: xy) ECHO_C='\c';;
12939: *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
12940: ECHO_T=' ';;
12941: esac;;
12942: *)
12943: ECHO_N='-n';;
12944: esac
1.2 paf 12945:
1.5 moko 12946: rm -f conf$$ conf$$.exe conf$$.file
12947: if test -d conf$$.dir; then
12948: rm -f conf$$.dir/conf$$.file
12949: else
12950: rm -f conf$$.dir
12951: mkdir conf$$.dir 2>/dev/null
12952: fi
12953: if (echo >conf$$.file) 2>/dev/null; then
12954: if ln -s conf$$.file conf$$ 2>/dev/null; then
12955: as_ln_s='ln -s'
12956: # ... but there are two gotchas:
12957: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12958: # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
1.7 ! moko 12959: # In both cases, we have to default to `cp -pR'.
1.5 moko 12960: ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
1.7 ! moko 12961: as_ln_s='cp -pR'
1.5 moko 12962: elif ln conf$$.file conf$$ 2>/dev/null; then
12963: as_ln_s=ln
12964: else
1.7 ! moko 12965: as_ln_s='cp -pR'
1.5 moko 12966: fi
12967: else
1.7 ! moko 12968: as_ln_s='cp -pR'
1.4 paf 12969: fi
1.5 moko 12970: rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12971: rmdir conf$$.dir 2>/dev/null
1.2 paf 12972:
12973:
1.5 moko 12974: # as_fn_mkdir_p
12975: # -------------
12976: # Create "$as_dir" as a directory, including parents if necessary.
12977: as_fn_mkdir_p ()
1.4 paf 12978: {
1.2 paf 12979:
1.5 moko 12980: case $as_dir in #(
12981: -*) as_dir=./$as_dir;;
12982: esac
12983: test -d "$as_dir" || eval $as_mkdir_p || {
12984: as_dirs=
12985: while :; do
12986: case $as_dir in #(
12987: *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12988: *) as_qdir=$as_dir;;
12989: esac
12990: as_dirs="'$as_qdir' $as_dirs"
12991: as_dir=`$as_dirname -- "$as_dir" ||
12992: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12993: X"$as_dir" : 'X\(//\)[^/]' \| \
12994: X"$as_dir" : 'X\(//\)$' \| \
12995: X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12996: $as_echo X"$as_dir" |
12997: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12998: s//\1/
12999: q
13000: }
13001: /^X\(\/\/\)[^/].*/{
13002: s//\1/
13003: q
13004: }
13005: /^X\(\/\/\)$/{
13006: s//\1/
13007: q
13008: }
13009: /^X\(\/\).*/{
13010: s//\1/
13011: q
13012: }
13013: s/.*/./; q'`
13014: test -d "$as_dir" && break
13015: done
13016: test -z "$as_dirs" || eval "mkdir $as_dirs"
13017: } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
1.1 paf 13018:
1.4 paf 13019:
1.5 moko 13020: } # as_fn_mkdir_p
13021: if mkdir -p . 2>/dev/null; then
13022: as_mkdir_p='mkdir -p "$as_dir"'
13023: else
13024: test -d ./-p && rmdir ./-p
13025: as_mkdir_p=false
1.4 paf 13026: fi
13027:
1.7 ! moko 13028:
! 13029: # as_fn_executable_p FILE
! 13030: # -----------------------
! 13031: # Test if FILE is an executable regular file.
! 13032: as_fn_executable_p ()
! 13033: {
! 13034: test -f "$1" && test -x "$1"
! 13035: } # as_fn_executable_p
! 13036: as_test_x='test -x'
! 13037: as_executable_p=as_fn_executable_p
1.4 paf 13038:
1.5 moko 13039: # Sed expression to map a string onto a valid CPP name.
13040: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
1.4 paf 13041:
1.5 moko 13042: # Sed expression to map a string onto a valid variable name.
13043: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
1.4 paf 13044:
13045:
1.5 moko 13046: exec 6>&1
13047: ## ----------------------------------- ##
13048: ## Main body of $CONFIG_STATUS script. ##
13049: ## ----------------------------------- ##
13050: _ASEOF
13051: test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
1.4 paf 13052:
1.5 moko 13053: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13054: # Save the log message, to keep $0 and so on meaningful, and to
13055: # report actual input values of CONFIG_FILES etc. instead of their
13056: # values after options handling.
13057: ac_log="
13058: This file was extended by libltdl $as_me 2.4.2, which was
1.7 ! moko 13059: generated by GNU Autoconf 2.69. Invocation command line was
1.4 paf 13060:
1.5 moko 13061: CONFIG_FILES = $CONFIG_FILES
13062: CONFIG_HEADERS = $CONFIG_HEADERS
13063: CONFIG_LINKS = $CONFIG_LINKS
13064: CONFIG_COMMANDS = $CONFIG_COMMANDS
13065: $ $0 $@
1.4 paf 13066:
1.5 moko 13067: on `(hostname || uname -n) 2>/dev/null | sed 1q`
13068: "
1.4 paf 13069:
1.5 moko 13070: _ACEOF
1.4 paf 13071:
1.5 moko 13072: case $ac_config_files in *"
13073: "*) set x $ac_config_files; shift; ac_config_files=$*;;
13074: esac
1.4 paf 13075:
1.5 moko 13076: case $ac_config_headers in *"
13077: "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13078: esac
1.4 paf 13079:
13080:
1.5 moko 13081: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13082: # Files that config.status was made for.
13083: config_files="$ac_config_files"
13084: config_headers="$ac_config_headers"
13085: config_commands="$ac_config_commands"
1.4 paf 13086:
1.5 moko 13087: _ACEOF
1.1 paf 13088:
1.5 moko 13089: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13090: ac_cs_usage="\
13091: \`$as_me' instantiates files and other configuration actions
13092: from templates according to the current configuration. Unless the files
13093: and actions are specified as TAGs, all are instantiated by default.
1.2 paf 13094:
1.5 moko 13095: Usage: $0 [OPTION]... [TAG]...
1.2 paf 13096:
1.5 moko 13097: -h, --help print this help, then exit
13098: -V, --version print version number and configuration settings, then exit
13099: --config print configuration, then exit
13100: -q, --quiet, --silent
13101: do not print progress messages
13102: -d, --debug don't remove temporary files
13103: --recheck update $as_me by reconfiguring in the same conditions
13104: --file=FILE[:TEMPLATE]
13105: instantiate the configuration file FILE
13106: --header=FILE[:TEMPLATE]
13107: instantiate the configuration header FILE
1.2 paf 13108:
1.5 moko 13109: Configuration files:
13110: $config_files
1.2 paf 13111:
1.5 moko 13112: Configuration headers:
13113: $config_headers
1.2 paf 13114:
1.5 moko 13115: Configuration commands:
13116: $config_commands
1.4 paf 13117:
1.5 moko 13118: Report bugs to <bug-libtool@gnu.org>."
1.2 paf 13119:
1.4 paf 13120: _ACEOF
1.5 moko 13121: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13122: ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13123: ac_cs_version="\\
13124: libltdl config.status 2.4.2
1.7 ! moko 13125: configured by $0, generated by GNU Autoconf 2.69,
1.5 moko 13126: with options \\"\$ac_cs_config\\"
1.2 paf 13127:
1.7 ! moko 13128: Copyright (C) 2012 Free Software Foundation, Inc.
1.5 moko 13129: This config.status script is free software; the Free Software Foundation
13130: gives unlimited permission to copy, distribute and modify it."
1.2 paf 13131:
1.5 moko 13132: ac_pwd='$ac_pwd'
13133: srcdir='$srcdir'
13134: INSTALL='$INSTALL'
13135: MKDIR_P='$MKDIR_P'
13136: AWK='$AWK'
13137: test -n "\$AWK" || AWK=awk
13138: _ACEOF
1.2 paf 13139:
1.5 moko 13140: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13141: # The default lists apply if the user does not specify any file.
13142: ac_need_defaults=:
13143: while test $# != 0
1.1 paf 13144: do
1.5 moko 13145: case $1 in
13146: --*=?*)
13147: ac_option=`expr "X$1" : 'X\([^=]*\)='`
13148: ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13149: ac_shift=:
13150: ;;
13151: --*=)
13152: ac_option=`expr "X$1" : 'X\([^=]*\)='`
13153: ac_optarg=
13154: ac_shift=:
1.2 paf 13155: ;;
1.5 moko 13156: *)
13157: ac_option=$1
13158: ac_optarg=$2
13159: ac_shift=shift
1.2 paf 13160: ;;
1.5 moko 13161: esac
13162:
13163: case $ac_option in
13164: # Handling of the options.
13165: -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13166: ac_cs_recheck=: ;;
13167: --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13168: $as_echo "$ac_cs_version"; exit ;;
13169: --config | --confi | --conf | --con | --co | --c )
13170: $as_echo "$ac_cs_config"; exit ;;
13171: --debug | --debu | --deb | --de | --d | -d )
13172: debug=: ;;
13173: --file | --fil | --fi | --f )
13174: $ac_shift
13175: case $ac_optarg in
13176: *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13177: '') as_fn_error $? "missing file argument" ;;
13178: esac
13179: as_fn_append CONFIG_FILES " '$ac_optarg'"
13180: ac_need_defaults=false;;
13181: --header | --heade | --head | --hea )
13182: $ac_shift
13183: case $ac_optarg in
13184: *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13185: esac
13186: as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13187: ac_need_defaults=false;;
13188: --he | --h)
13189: # Conflict between --help and --header
13190: as_fn_error $? "ambiguous option: \`$1'
13191: Try \`$0 --help' for more information.";;
13192: --help | --hel | -h )
13193: $as_echo "$ac_cs_usage"; exit ;;
13194: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13195: | -silent | --silent | --silen | --sile | --sil | --si | --s)
13196: ac_cs_silent=: ;;
1.2 paf 13197:
1.5 moko 13198: # This is an error.
13199: -*) as_fn_error $? "unrecognized option: \`$1'
13200: Try \`$0 --help' for more information." ;;
1.2 paf 13201:
1.5 moko 13202: *) as_fn_append ac_config_targets " $1"
13203: ac_need_defaults=false ;;
1.2 paf 13204:
1.5 moko 13205: esac
13206: shift
1.1 paf 13207: done
13208:
1.5 moko 13209: ac_configure_extra_args=
13210:
13211: if $ac_cs_silent; then
13212: exec 6>/dev/null
13213: ac_configure_extra_args="$ac_configure_extra_args --silent"
13214: fi
1.2 paf 13215:
1.4 paf 13216: _ACEOF
1.5 moko 13217: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13218: if \$ac_cs_recheck; then
1.7 ! moko 13219: set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
1.5 moko 13220: shift
13221: \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13222: CONFIG_SHELL='$SHELL'
13223: export CONFIG_SHELL
13224: exec "\$@"
13225: fi
1.4 paf 13226:
1.5 moko 13227: _ACEOF
13228: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13229: exec 5>>config.log
1.4 paf 13230: {
1.5 moko 13231: echo
13232: sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13233: ## Running $as_me. ##
13234: _ASBOX
13235: $as_echo "$ac_log"
13236: } >&5
13237:
1.4 paf 13238: _ACEOF
1.5 moko 13239: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13240: #
13241: # INIT-COMMANDS
13242: #
13243: AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
1.4 paf 13244:
13245:
1.5 moko 13246: # The HP-UX ksh and POSIX shell print the target directory to stdout
13247: # if CDPATH is set.
13248: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
1.4 paf 13249:
1.5 moko 13250: sed_quote_subst='$sed_quote_subst'
13251: double_quote_subst='$double_quote_subst'
13252: delay_variable_subst='$delay_variable_subst'
13253: macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
13254: macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
13255: AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
13256: DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
13257: OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
13258: enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
13259: enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
13260: pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
13261: enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
13262: SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
13263: ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
13264: PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
13265: host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
13266: host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
13267: host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
13268: build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
13269: build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
13270: build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
13271: SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
13272: Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
13273: GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
13274: EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
13275: FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
13276: LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
13277: NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
13278: LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
13279: max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
13280: ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
13281: exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
13282: lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
13283: lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
13284: lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
13285: lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
13286: lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
13287: reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
13288: reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
13289: deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
13290: file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
13291: file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
13292: want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
13293: sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
13294: AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
13295: AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
13296: archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
13297: STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
13298: RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
13299: old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13300: old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13301: old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
13302: lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
13303: CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
13304: CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
13305: compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
13306: GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
13307: lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
13308: lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
13309: lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
13310: 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"`'
13311: nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
13312: lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
13313: objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
13314: MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
13315: lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
13316: lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
13317: lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
13318: lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
13319: lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
13320: need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
13321: MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
13322: DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
13323: NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
13324: LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
13325: OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
13326: OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
13327: libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
13328: shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
13329: extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13330: archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
13331: enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
13332: export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
13333: whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
13334: compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
13335: old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
13336: old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13337: archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
13338: archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13339: module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
13340: module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13341: with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
13342: allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
13343: no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
13344: hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
13345: hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
13346: hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
13347: hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
13348: hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
13349: hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
13350: hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
13351: inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
13352: link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
13353: always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
13354: export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
13355: exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
13356: include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
13357: prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
13358: postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
13359: file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
13360: variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
13361: need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
13362: need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
13363: version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
13364: runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
13365: shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
13366: shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
13367: libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
13368: library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
13369: soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
13370: install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
13371: postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13372: postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13373: finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
13374: finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
13375: hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
13376: sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
13377: sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
13378: hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
13379: enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
13380: enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
13381: enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
13382: old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
13383: striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
13384:
13385: LTCC='$LTCC'
13386: LTCFLAGS='$LTCFLAGS'
13387: compiler='$compiler_DEFAULT'
13388:
13389: # A function that is used when there is no print builtin or printf.
13390: func_fallback_echo ()
13391: {
13392: eval 'cat <<_LTECHO_EOF
13393: \$1
13394: _LTECHO_EOF'
13395: }
13396:
13397: # Quote evaled strings.
13398: for var in AS \
13399: DLLTOOL \
13400: OBJDUMP \
13401: SHELL \
13402: ECHO \
13403: PATH_SEPARATOR \
13404: SED \
13405: GREP \
13406: EGREP \
13407: FGREP \
13408: LD \
13409: NM \
13410: LN_S \
13411: lt_SP2NL \
13412: lt_NL2SP \
13413: reload_flag \
13414: deplibs_check_method \
13415: file_magic_cmd \
13416: file_magic_glob \
13417: want_nocaseglob \
13418: sharedlib_from_linklib_cmd \
13419: AR \
13420: AR_FLAGS \
13421: archiver_list_spec \
13422: STRIP \
13423: RANLIB \
13424: CC \
13425: CFLAGS \
13426: compiler \
13427: lt_cv_sys_global_symbol_pipe \
13428: lt_cv_sys_global_symbol_to_cdecl \
13429: lt_cv_sys_global_symbol_to_c_name_address \
13430: lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13431: nm_file_list_spec \
13432: lt_prog_compiler_no_builtin_flag \
13433: lt_prog_compiler_pic \
13434: lt_prog_compiler_wl \
13435: lt_prog_compiler_static \
13436: lt_cv_prog_compiler_c_o \
13437: need_locks \
13438: MANIFEST_TOOL \
13439: DSYMUTIL \
13440: NMEDIT \
13441: LIPO \
13442: OTOOL \
13443: OTOOL64 \
13444: shrext_cmds \
13445: export_dynamic_flag_spec \
13446: whole_archive_flag_spec \
13447: compiler_needs_object \
13448: with_gnu_ld \
13449: allow_undefined_flag \
13450: no_undefined_flag \
13451: hardcode_libdir_flag_spec \
13452: hardcode_libdir_separator \
13453: exclude_expsyms \
13454: include_expsyms \
13455: file_list_spec \
13456: variables_saved_for_relink \
13457: libname_spec \
13458: library_names_spec \
13459: soname_spec \
13460: install_override_mode \
13461: finish_eval \
13462: old_striplib \
13463: striplib; do
13464: case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13465: *[\\\\\\\`\\"\\\$]*)
13466: eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13467: ;;
13468: *)
13469: eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13470: ;;
13471: esac
13472: done
1.4 paf 13473:
1.5 moko 13474: # Double-quote double-evaled strings.
13475: for var in reload_cmds \
13476: old_postinstall_cmds \
13477: old_postuninstall_cmds \
13478: old_archive_cmds \
13479: extract_expsyms_cmds \
13480: old_archive_from_new_cmds \
13481: old_archive_from_expsyms_cmds \
13482: archive_cmds \
13483: archive_expsym_cmds \
13484: module_cmds \
13485: module_expsym_cmds \
13486: export_symbols_cmds \
13487: prelink_cmds \
13488: postlink_cmds \
13489: postinstall_cmds \
13490: postuninstall_cmds \
13491: finish_cmds \
13492: sys_lib_search_path_spec \
13493: sys_lib_dlsearch_path_spec; do
13494: case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13495: *[\\\\\\\`\\"\\\$]*)
13496: eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13497: ;;
13498: *)
13499: eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13500: ;;
13501: esac
13502: done
1.4 paf 13503:
1.5 moko 13504: ac_aux_dir='$ac_aux_dir'
13505: xsi_shell='$xsi_shell'
13506: lt_shell_append='$lt_shell_append'
1.4 paf 13507:
1.5 moko 13508: # See if we are running on zsh, and set the options which allow our
13509: # commands through without removal of \ escapes INIT.
13510: if test -n "\${ZSH_VERSION+set}" ; then
13511: setopt NO_GLOB_SUBST
1.4 paf 13512: fi
13513:
13514:
1.5 moko 13515: PACKAGE='$PACKAGE'
13516: VERSION='$VERSION'
13517: TIMESTAMP='$TIMESTAMP'
13518: RM='$RM'
13519: ofile='$ofile'
1.4 paf 13520:
13521:
13522:
13523:
13524: _ACEOF
13525:
1.5 moko 13526: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1.4 paf 13527:
1.5 moko 13528: # Handling of arguments.
13529: for ac_config_target in $ac_config_targets
13530: do
13531: case $ac_config_target in
13532: "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config-h.in" ;;
13533: "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13534: "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13535: "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
1.4 paf 13536:
1.5 moko 13537: *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13538: esac
1.4 paf 13539: done
13540:
13541:
1.5 moko 13542: # If the user did not use the arguments to specify the items to instantiate,
13543: # then the envvar interface is used. Set only those that are not.
13544: # We use the long form for the default assignment because of an extremely
13545: # bizarre bug on SunOS 4.1.3.
13546: if $ac_need_defaults; then
13547: test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13548: test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13549: test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13550: fi
1.4 paf 13551:
1.5 moko 13552: # Have a temporary directory for convenience. Make it in the build tree
13553: # simply because there is no reason against having it here, and in addition,
13554: # creating and moving files from /tmp can sometimes cause problems.
13555: # Hook for its removal unless debugging.
13556: # Note that there is a small window in which the directory will not be cleaned:
13557: # after its creation but before its name has been assigned to `$tmp'.
13558: $debug ||
13559: {
13560: tmp= ac_tmp=
13561: trap 'exit_status=$?
13562: : "${ac_tmp:=$tmp}"
13563: { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
13564: ' 0
13565: trap 'as_fn_exit 1' 1 2 13 15
13566: }
13567: # Create a (secure) tmp directory for tmp files.
1.4 paf 13568:
1.5 moko 13569: {
13570: tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13571: test -d "$tmp"
13572: } ||
13573: {
13574: tmp=./conf$$-$RANDOM
13575: (umask 077 && mkdir "$tmp")
13576: } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13577: ac_tmp=$tmp
1.4 paf 13578:
1.5 moko 13579: # Set up the scripts for CONFIG_FILES section.
13580: # No need to generate them if there are no CONFIG_FILES.
13581: # This happens for instance with `./config.status config.h'.
13582: if test -n "$CONFIG_FILES"; then
1.4 paf 13583:
13584:
1.5 moko 13585: ac_cr=`echo X | tr X '\015'`
13586: # On cygwin, bash can eat \r inside `` if the user requested igncr.
13587: # But we know of no other shell where ac_cr would be empty at this
13588: # point, so we can use a bashism as a fallback.
13589: if test "x$ac_cr" = x; then
13590: eval ac_cr=\$\'\\r\'
13591: fi
13592: ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13593: if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13594: ac_cs_awk_cr='\\r'
13595: else
13596: ac_cs_awk_cr=$ac_cr
13597: fi
1.4 paf 13598:
1.5 moko 13599: echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
13600: _ACEOF
1.4 paf 13601:
13602:
1.5 moko 13603: {
13604: echo "cat >conf$$subs.awk <<_ACEOF" &&
13605: echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13606: echo "_ACEOF"
13607: } >conf$$subs.sh ||
13608: as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13609: ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
13610: ac_delim='%!_!# '
13611: for ac_last_try in false false false false false :; do
13612: . ./conf$$subs.sh ||
13613: as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
1.4 paf 13614:
1.5 moko 13615: ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13616: if test $ac_delim_n = $ac_delim_num; then
13617: break
13618: elif $ac_last_try; then
13619: as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13620: else
13621: ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13622: fi
13623: done
13624: rm -f conf$$subs.sh
1.4 paf 13625:
1.5 moko 13626: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13627: cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
13628: _ACEOF
13629: sed -n '
13630: h
13631: s/^/S["/; s/!.*/"]=/
13632: p
13633: g
13634: s/^[^!]*!//
13635: :repl
13636: t repl
13637: s/'"$ac_delim"'$//
13638: t delim
13639: :nl
13640: h
13641: s/\(.\{148\}\)..*/\1/
13642: t more1
13643: s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13644: p
13645: n
13646: b repl
13647: :more1
13648: s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13649: p
13650: g
13651: s/.\{148\}//
13652: t nl
13653: :delim
13654: h
13655: s/\(.\{148\}\)..*/\1/
13656: t more2
13657: s/["\\]/\\&/g; s/^/"/; s/$/"/
13658: p
13659: b
13660: :more2
13661: s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13662: p
13663: g
13664: s/.\{148\}//
13665: t delim
13666: ' <conf$$subs.awk | sed '
13667: /^[^""]/{
13668: N
13669: s/\n//
13670: }
13671: ' >>$CONFIG_STATUS || ac_write_fail=1
13672: rm -f conf$$subs.awk
13673: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13674: _ACAWK
13675: cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
13676: for (key in S) S_is_set[key] = 1
13677: FS = ""
13678:
13679: }
13680: {
13681: line = $ 0
13682: nfields = split(line, field, "@")
13683: substed = 0
13684: len = length(field[1])
13685: for (i = 2; i < nfields; i++) {
13686: key = field[i]
13687: keylen = length(key)
13688: if (S_is_set[key]) {
13689: value = S[key]
13690: line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13691: len += length(value) + length(field[++i])
13692: substed = 1
13693: } else
13694: len += 1 + keylen
13695: }
1.4 paf 13696:
1.5 moko 13697: print line
13698: }
1.4 paf 13699:
1.5 moko 13700: _ACAWK
13701: _ACEOF
13702: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13703: if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13704: sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13705: else
13706: cat
13707: fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
13708: || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
13709: _ACEOF
1.4 paf 13710:
1.5 moko 13711: # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13712: # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
13713: # trailing colons and then remove the whole line if VPATH becomes empty
13714: # (actually we leave an empty line to preserve line numbers).
13715: if test "x$srcdir" = x.; then
13716: ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
13717: h
13718: s///
13719: s/^/:/
13720: s/[ ]*$/:/
13721: s/:\$(srcdir):/:/g
13722: s/:\${srcdir}:/:/g
13723: s/:@srcdir@:/:/g
13724: s/^:*//
13725: s/:*$//
13726: x
13727: s/\(=[ ]*\).*/\1/
13728: G
13729: s/\n//
13730: s/^[^=]*=[ ]*$//
13731: }'
13732: fi
1.4 paf 13733:
1.5 moko 13734: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13735: fi # test -n "$CONFIG_FILES"
1.4 paf 13736:
1.5 moko 13737: # Set up the scripts for CONFIG_HEADERS section.
13738: # No need to generate them if there are no CONFIG_HEADERS.
13739: # This happens for instance with `./config.status Makefile'.
13740: if test -n "$CONFIG_HEADERS"; then
13741: cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
13742: BEGIN {
13743: _ACEOF
13744:
13745: # Transform confdefs.h into an awk script `defines.awk', embedded as
13746: # here-document in config.status, that substitutes the proper values into
13747: # config.h.in to produce config.h.
13748:
13749: # Create a delimiter string that does not exist in confdefs.h, to ease
13750: # handling of long lines.
13751: ac_delim='%!_!# '
13752: for ac_last_try in false false :; do
13753: ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
13754: if test -z "$ac_tt"; then
13755: break
13756: elif $ac_last_try; then
13757: as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
13758: else
13759: ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13760: fi
13761: done
1.2 paf 13762:
1.5 moko 13763: # For the awk script, D is an array of macro values keyed by name,
13764: # likewise P contains macro parameters if any. Preserve backslash
13765: # newline sequences.
13766:
13767: ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13768: sed -n '
13769: s/.\{148\}/&'"$ac_delim"'/g
13770: t rset
13771: :rset
13772: s/^[ ]*#[ ]*define[ ][ ]*/ /
13773: t def
13774: d
13775: :def
13776: s/\\$//
13777: t bsnl
13778: s/["\\]/\\&/g
13779: s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13780: D["\1"]=" \3"/p
13781: s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
13782: d
13783: :bsnl
13784: s/["\\]/\\&/g
13785: s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13786: D["\1"]=" \3\\\\\\n"\\/p
13787: t cont
13788: s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13789: t cont
13790: d
13791: :cont
13792: n
13793: s/.\{148\}/&'"$ac_delim"'/g
13794: t clear
13795: :clear
13796: s/\\$//
13797: t bsnlc
13798: s/["\\]/\\&/g; s/^/"/; s/$/"/p
13799: d
13800: :bsnlc
13801: s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13802: b cont
13803: ' <confdefs.h | sed '
13804: s/'"$ac_delim"'/"\\\
13805: "/g' >>$CONFIG_STATUS || ac_write_fail=1
13806:
13807: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13808: for (key in D) D_is_set[key] = 1
13809: FS = ""
13810: }
13811: /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13812: line = \$ 0
13813: split(line, arg, " ")
13814: if (arg[1] == "#") {
13815: defundef = arg[2]
13816: mac1 = arg[3]
13817: } else {
13818: defundef = substr(arg[1], 2)
13819: mac1 = arg[2]
13820: }
13821: split(mac1, mac2, "(") #)
13822: macro = mac2[1]
13823: prefix = substr(line, 1, index(line, defundef) - 1)
13824: if (D_is_set[macro]) {
13825: # Preserve the white space surrounding the "#".
13826: print prefix "define", macro P[macro] D[macro]
13827: next
13828: } else {
13829: # Replace #undef with comments. This is necessary, for example,
13830: # in the case of _POSIX_SOURCE, which is predefined and required
13831: # on some systems where configure will not decide to define it.
13832: if (defundef == "undef") {
13833: print "/*", prefix defundef, macro, "*/"
13834: next
13835: }
13836: }
13837: }
13838: { print }
13839: _ACAWK
13840: _ACEOF
13841: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13842: as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
13843: fi # test -n "$CONFIG_HEADERS"
13844:
13845:
13846: eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
13847: shift
13848: for ac_tag
13849: do
13850: case $ac_tag in
13851: :[FHLC]) ac_mode=$ac_tag; continue;;
13852: esac
13853: case $ac_mode$ac_tag in
13854: :[FHL]*:*);;
13855: :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
13856: :[FH]-) ac_tag=-:-;;
13857: :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13858: esac
13859: ac_save_IFS=$IFS
13860: IFS=:
13861: set x $ac_tag
13862: IFS=$ac_save_IFS
13863: shift
13864: ac_file=$1
13865: shift
1.4 paf 13866:
1.5 moko 13867: case $ac_mode in
13868: :L) ac_source=$1;;
13869: :[FH])
13870: ac_file_inputs=
13871: for ac_f
13872: do
13873: case $ac_f in
13874: -) ac_f="$ac_tmp/stdin";;
13875: *) # Look for the file first in the build tree, then in the source tree
13876: # (if the path is not absolute). The absolute path cannot be DOS-style,
13877: # because $ac_f cannot contain `:'.
13878: test -f "$ac_f" ||
13879: case $ac_f in
13880: [\\/$]*) false;;
13881: *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13882: esac ||
13883: as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
13884: esac
13885: case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13886: as_fn_append ac_file_inputs " '$ac_f'"
13887: done
1.4 paf 13888:
1.5 moko 13889: # Let's still pretend it is `configure' which instantiates (i.e., don't
13890: # use $as_me), people would be surprised to read:
13891: # /* config.h. Generated by config.status. */
13892: configure_input='Generated from '`
13893: $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13894: `' by configure.'
13895: if test x"$ac_file" != x-; then
13896: configure_input="$ac_file. $configure_input"
13897: { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13898: $as_echo "$as_me: creating $ac_file" >&6;}
13899: fi
13900: # Neutralize special characters interpreted by sed in replacement strings.
13901: case $configure_input in #(
13902: *\&* | *\|* | *\\* )
13903: ac_sed_conf_input=`$as_echo "$configure_input" |
13904: sed 's/[\\\\&|]/\\\\&/g'`;; #(
13905: *) ac_sed_conf_input=$configure_input;;
13906: esac
1.4 paf 13907:
1.5 moko 13908: case $ac_tag in
13909: *:-:* | *:-) cat >"$ac_tmp/stdin" \
13910: || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
13911: esac
13912: ;;
13913: esac
1.4 paf 13914:
1.5 moko 13915: ac_dir=`$as_dirname -- "$ac_file" ||
13916: $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13917: X"$ac_file" : 'X\(//\)[^/]' \| \
13918: X"$ac_file" : 'X\(//\)$' \| \
13919: X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13920: $as_echo X"$ac_file" |
13921: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13922: s//\1/
13923: q
13924: }
13925: /^X\(\/\/\)[^/].*/{
13926: s//\1/
13927: q
13928: }
13929: /^X\(\/\/\)$/{
13930: s//\1/
13931: q
13932: }
13933: /^X\(\/\).*/{
13934: s//\1/
13935: q
13936: }
13937: s/.*/./; q'`
13938: as_dir="$ac_dir"; as_fn_mkdir_p
13939: ac_builddir=.
1.4 paf 13940:
1.5 moko 13941: case "$ac_dir" in
13942: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13943: *)
13944: ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13945: # A ".." for each directory in $ac_dir_suffix.
13946: ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13947: case $ac_top_builddir_sub in
13948: "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13949: *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13950: esac ;;
13951: esac
13952: ac_abs_top_builddir=$ac_pwd
13953: ac_abs_builddir=$ac_pwd$ac_dir_suffix
13954: # for backward compatibility:
13955: ac_top_builddir=$ac_top_build_prefix
1.4 paf 13956:
1.5 moko 13957: case $srcdir in
13958: .) # We are building in place.
13959: ac_srcdir=.
13960: ac_top_srcdir=$ac_top_builddir_sub
13961: ac_abs_top_srcdir=$ac_pwd ;;
13962: [\\/]* | ?:[\\/]* ) # Absolute name.
13963: ac_srcdir=$srcdir$ac_dir_suffix;
13964: ac_top_srcdir=$srcdir
13965: ac_abs_top_srcdir=$srcdir ;;
13966: *) # Relative name.
13967: ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13968: ac_top_srcdir=$ac_top_build_prefix$srcdir
13969: ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13970: esac
13971: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1.4 paf 13972:
13973:
1.5 moko 13974: case $ac_mode in
13975: :F)
13976: #
13977: # CONFIG_FILE
13978: #
1.4 paf 13979:
1.5 moko 13980: case $INSTALL in
13981: [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13982: *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13983: esac
13984: ac_MKDIR_P=$MKDIR_P
13985: case $MKDIR_P in
13986: [\\/$]* | ?:[\\/]* ) ;;
13987: */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
13988: esac
1.2 paf 13989: _ACEOF
13990:
1.5 moko 13991: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13992: # If the template does not know about datarootdir, expand it.
13993: # FIXME: This hack should be removed a few years after 2.60.
13994: ac_datarootdir_hack=; ac_datarootdir_seen=
13995: ac_sed_dataroot='
13996: /datarootdir/ {
13997: p
13998: q
13999: }
14000: /@datadir@/p
14001: /@docdir@/p
14002: /@infodir@/p
14003: /@localedir@/p
14004: /@mandir@/p'
14005: case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14006: *datarootdir*) ac_datarootdir_seen=yes;;
14007: *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14008: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14009: $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14010: _ACEOF
14011: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14012: ac_datarootdir_hack='
14013: s&@datadir@&$datadir&g
14014: s&@docdir@&$docdir&g
14015: s&@infodir@&$infodir&g
14016: s&@localedir@&$localedir&g
14017: s&@mandir@&$mandir&g
14018: s&\\\${datarootdir}&$datarootdir&g' ;;
14019: esac
1.2 paf 14020: _ACEOF
14021:
1.5 moko 14022: # Neutralize VPATH when `$srcdir' = `.'.
14023: # Shell code in configure.ac might set extrasub.
14024: # FIXME: do we really want to maintain this feature?
14025: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14026: ac_sed_extra="$ac_vpsub
14027: $extrasub
1.2 paf 14028: _ACEOF
1.5 moko 14029: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14030: :t
14031: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14032: s|@configure_input@|$ac_sed_conf_input|;t t
14033: s&@top_builddir@&$ac_top_builddir_sub&;t t
14034: s&@top_build_prefix@&$ac_top_build_prefix&;t t
14035: s&@srcdir@&$ac_srcdir&;t t
14036: s&@abs_srcdir@&$ac_abs_srcdir&;t t
14037: s&@top_srcdir@&$ac_top_srcdir&;t t
14038: s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14039: s&@builddir@&$ac_builddir&;t t
14040: s&@abs_builddir@&$ac_abs_builddir&;t t
14041: s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14042: s&@INSTALL@&$ac_INSTALL&;t t
14043: s&@MKDIR_P@&$ac_MKDIR_P&;t t
14044: $ac_datarootdir_hack
14045: "
14046: eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
14047: >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14048:
14049: test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14050: { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
14051: { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
14052: "$ac_tmp/out"`; test -z "$ac_out"; } &&
14053: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14054: which seems to be undefined. Please make sure it is defined" >&5
14055: $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14056: which seems to be undefined. Please make sure it is defined" >&2;}
1.4 paf 14057:
1.5 moko 14058: rm -f "$ac_tmp/stdin"
14059: case $ac_file in
14060: -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
14061: *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
14062: esac \
14063: || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14064: ;;
14065: :H)
14066: #
14067: # CONFIG_HEADER
14068: #
14069: if test x"$ac_file" != x-; then
14070: {
14071: $as_echo "/* $configure_input */" \
14072: && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
14073: } >"$ac_tmp/config.h" \
14074: || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14075: if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
14076: { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14077: $as_echo "$as_me: $ac_file is unchanged" >&6;}
14078: else
14079: rm -f "$ac_file"
14080: mv "$ac_tmp/config.h" "$ac_file" \
14081: || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14082: fi
14083: else
14084: $as_echo "/* $configure_input */" \
14085: && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
14086: || as_fn_error $? "could not create -" "$LINENO" 5
14087: fi
14088: # Compute "$ac_file"'s index in $config_headers.
14089: _am_arg="$ac_file"
14090: _am_stamp_count=1
14091: for _am_header in $config_headers :; do
14092: case $_am_header in
14093: $_am_arg | $_am_arg:* )
14094: break ;;
14095: * )
14096: _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14097: esac
1.1 paf 14098: done
1.5 moko 14099: echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14100: $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14101: X"$_am_arg" : 'X\(//\)[^/]' \| \
14102: X"$_am_arg" : 'X\(//\)$' \| \
14103: X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14104: $as_echo X"$_am_arg" |
14105: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14106: s//\1/
14107: q
14108: }
14109: /^X\(\/\/\)[^/].*/{
14110: s//\1/
14111: q
14112: }
14113: /^X\(\/\/\)$/{
14114: s//\1/
14115: q
14116: }
14117: /^X\(\/\).*/{
14118: s//\1/
14119: q
14120: }
14121: s/.*/./; q'`/stamp-h$_am_stamp_count
14122: ;;
1.1 paf 14123:
1.5 moko 14124: :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14125: $as_echo "$as_me: executing $ac_file commands" >&6;}
14126: ;;
14127: esac
1.2 paf 14128:
14129:
1.5 moko 14130: case $ac_file$ac_mode in
14131: "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14132: # Autoconf 2.62 quotes --file arguments for eval, but not when files
14133: # are listed without --file. Let's play safe and only enable the eval
14134: # if we detect the quoting.
14135: case $CONFIG_FILES in
14136: *\'*) eval set x "$CONFIG_FILES" ;;
14137: *) set x $CONFIG_FILES ;;
14138: esac
14139: shift
14140: for mf
14141: do
14142: # Strip MF so we end up with the name of the file.
14143: mf=`echo "$mf" | sed -e 's/:.*$//'`
14144: # Check whether this is an Automake generated Makefile or not.
14145: # We used to match only the files named `Makefile.in', but
14146: # some people rename them; so instead we look at the file content.
14147: # Grep'ing the first line is not enough: some people post-process
14148: # each Makefile.in and add a new line on top of each file to say so.
14149: # Grep'ing the whole file is not good either: AIX grep has a line
14150: # limit of 2048, but all sed's we know have understand at least 4000.
14151: if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14152: dirpart=`$as_dirname -- "$mf" ||
14153: $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14154: X"$mf" : 'X\(//\)[^/]' \| \
14155: X"$mf" : 'X\(//\)$' \| \
14156: X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14157: $as_echo X"$mf" |
14158: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14159: s//\1/
14160: q
14161: }
14162: /^X\(\/\/\)[^/].*/{
14163: s//\1/
14164: q
14165: }
14166: /^X\(\/\/\)$/{
14167: s//\1/
14168: q
14169: }
14170: /^X\(\/\).*/{
14171: s//\1/
14172: q
14173: }
14174: s/.*/./; q'`
14175: else
14176: continue
14177: fi
14178: # Extract the definition of DEPDIR, am__include, and am__quote
14179: # from the Makefile without running `make'.
14180: DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14181: test -z "$DEPDIR" && continue
14182: am__include=`sed -n 's/^am__include = //p' < "$mf"`
14183: test -z "am__include" && continue
14184: am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14185: # When using ansi2knr, U may be empty or an underscore; expand it
14186: U=`sed -n 's/^U = //p' < "$mf"`
14187: # Find all dependency output files, they are included files with
14188: # $(DEPDIR) in their names. We invoke sed twice because it is the
14189: # simplest approach to changing $(DEPDIR) to its actual value in the
14190: # expansion.
14191: for file in `sed -n "
14192: s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14193: sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
14194: # Make sure the directory exists.
14195: test -f "$dirpart/$file" && continue
14196: fdir=`$as_dirname -- "$file" ||
14197: $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14198: X"$file" : 'X\(//\)[^/]' \| \
14199: X"$file" : 'X\(//\)$' \| \
14200: X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14201: $as_echo X"$file" |
14202: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14203: s//\1/
14204: q
14205: }
14206: /^X\(\/\/\)[^/].*/{
14207: s//\1/
14208: q
14209: }
14210: /^X\(\/\/\)$/{
14211: s//\1/
14212: q
14213: }
14214: /^X\(\/\).*/{
14215: s//\1/
14216: q
14217: }
14218: s/.*/./; q'`
14219: as_dir=$dirpart/$fdir; as_fn_mkdir_p
14220: # echo "creating $dirpart/$file"
14221: echo '# dummy' > "$dirpart/$file"
14222: done
14223: done
14224: }
14225: ;;
14226: "libtool":C)
1.4 paf 14227:
1.5 moko 14228: # See if we are running on zsh, and set the options which allow our
14229: # commands through without removal of \ escapes.
14230: if test -n "${ZSH_VERSION+set}" ; then
14231: setopt NO_GLOB_SUBST
14232: fi
1.2 paf 14233:
1.5 moko 14234: cfgfile="${ofile}T"
14235: trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14236: $RM "$cfgfile"
1.2 paf 14237:
1.5 moko 14238: cat <<_LT_EOF >> "$cfgfile"
14239: #! $SHELL
1.1 paf 14240:
1.5 moko 14241: # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14242: # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14243: # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14244: # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14245: #
14246: # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14247: # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
14248: # Foundation, Inc.
14249: # Written by Gordon Matzigkeit, 1996
14250: #
14251: # This file is part of GNU Libtool.
14252: #
14253: # GNU Libtool is free software; you can redistribute it and/or
14254: # modify it under the terms of the GNU General Public License as
14255: # published by the Free Software Foundation; either version 2 of
14256: # the License, or (at your option) any later version.
14257: #
14258: # As a special exception to the GNU General Public License,
14259: # if you distribute this file as part of a program or library that
14260: # is built using GNU Libtool, you may include this file under the
14261: # same distribution terms that you use for the rest of that program.
14262: #
14263: # GNU Libtool is distributed in the hope that it will be useful,
14264: # but WITHOUT ANY WARRANTY; without even the implied warranty of
14265: # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14266: # GNU General Public License for more details.
14267: #
14268: # You should have received a copy of the GNU General Public License
14269: # along with GNU Libtool; see the file COPYING. If not, a copy
14270: # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14271: # obtained by writing to the Free Software Foundation, Inc.,
14272: # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
1.1 paf 14273:
1.4 paf 14274:
1.5 moko 14275: # The names of the tagged configurations supported by this script.
14276: available_tags=""
1.4 paf 14277:
1.5 moko 14278: # ### BEGIN LIBTOOL CONFIG
1.1 paf 14279:
1.5 moko 14280: # Which release of libtool.m4 was used?
14281: macro_version=$macro_version
14282: macro_revision=$macro_revision
1.2 paf 14283:
1.5 moko 14284: # Assembler program.
14285: AS=$lt_AS
1.2 paf 14286:
1.5 moko 14287: # DLL creation program.
14288: DLLTOOL=$lt_DLLTOOL
1.4 paf 14289:
1.5 moko 14290: # Object dumper program.
14291: OBJDUMP=$lt_OBJDUMP
1.1 paf 14292:
1.5 moko 14293: # Whether or not to build shared libraries.
14294: build_libtool_libs=$enable_shared
1.4 paf 14295:
1.5 moko 14296: # Whether or not to build static libraries.
14297: build_old_libs=$enable_static
1.4 paf 14298:
1.5 moko 14299: # What type of objects to build.
14300: pic_mode=$pic_mode
1.4 paf 14301:
1.5 moko 14302: # Whether or not to optimize for fast installation.
14303: fast_install=$enable_fast_install
1.1 paf 14304:
1.5 moko 14305: # Shell to use when invoking shell scripts.
14306: SHELL=$lt_SHELL
1.4 paf 14307:
1.5 moko 14308: # An echo program that protects backslashes.
14309: ECHO=$lt_ECHO
1.2 paf 14310:
1.5 moko 14311: # The PATH separator for the build system.
14312: PATH_SEPARATOR=$lt_PATH_SEPARATOR
1.1 paf 14313:
1.5 moko 14314: # The host system.
14315: host_alias=$host_alias
14316: host=$host
14317: host_os=$host_os
1.1 paf 14318:
1.5 moko 14319: # The build system.
14320: build_alias=$build_alias
14321: build=$build
14322: build_os=$build_os
1.1 paf 14323:
1.5 moko 14324: # A sed program that does not truncate output.
14325: SED=$lt_SED
1.1 paf 14326:
1.5 moko 14327: # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14328: Xsed="\$SED -e 1s/^X//"
1.2 paf 14329:
1.5 moko 14330: # A grep program that handles long lines.
14331: GREP=$lt_GREP
1.1 paf 14332:
1.5 moko 14333: # An ERE matcher.
14334: EGREP=$lt_EGREP
1.3 paf 14335:
1.5 moko 14336: # A literal string matcher.
14337: FGREP=$lt_FGREP
1.3 paf 14338:
1.5 moko 14339: # A BSD- or MS-compatible name lister.
14340: NM=$lt_NM
1.1 paf 14341:
1.5 moko 14342: # Whether we need soft or hard links.
14343: LN_S=$lt_LN_S
1.1 paf 14344:
1.5 moko 14345: # What is the maximum length of a command?
14346: max_cmd_len=$max_cmd_len
1.1 paf 14347:
1.5 moko 14348: # Object file suffix (normally "o").
14349: objext=$ac_objext
1.1 paf 14350:
1.5 moko 14351: # Executable file suffix (normally "").
14352: exeext=$exeext
1.1 paf 14353:
1.5 moko 14354: # whether the shell understands "unset".
14355: lt_unset=$lt_unset
1.2 paf 14356:
1.5 moko 14357: # turn spaces into newlines.
14358: SP2NL=$lt_lt_SP2NL
1.4 paf 14359:
1.5 moko 14360: # turn newlines into spaces.
14361: NL2SP=$lt_lt_NL2SP
1.1 paf 14362:
1.5 moko 14363: # convert \$build file names to \$host format.
14364: to_host_file_cmd=$lt_cv_to_host_file_cmd
1.2 paf 14365:
1.5 moko 14366: # convert \$build files to toolchain format.
14367: to_tool_file_cmd=$lt_cv_to_tool_file_cmd
1.1 paf 14368:
1.5 moko 14369: # Method to check whether dependent libraries are shared objects.
14370: deplibs_check_method=$lt_deplibs_check_method
1.1 paf 14371:
1.5 moko 14372: # Command to use when deplibs_check_method = "file_magic".
14373: file_magic_cmd=$lt_file_magic_cmd
1.2 paf 14374:
1.5 moko 14375: # How to find potential files when deplibs_check_method = "file_magic".
14376: file_magic_glob=$lt_file_magic_glob
1.2 paf 14377:
1.5 moko 14378: # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
14379: want_nocaseglob=$lt_want_nocaseglob
1.1 paf 14380:
1.5 moko 14381: # Command to associate shared and link libraries.
14382: sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
1.1 paf 14383:
1.5 moko 14384: # The archiver.
14385: AR=$lt_AR
1.1 paf 14386:
1.5 moko 14387: # Flags to create an archive.
14388: AR_FLAGS=$lt_AR_FLAGS
1.2 paf 14389:
1.5 moko 14390: # How to feed a file listing to the archiver.
14391: archiver_list_spec=$lt_archiver_list_spec
1.2 paf 14392:
1.5 moko 14393: # A symbol stripping program.
14394: STRIP=$lt_STRIP
1.2 paf 14395:
1.5 moko 14396: # Commands used to install an old-style archive.
14397: RANLIB=$lt_RANLIB
14398: old_postinstall_cmds=$lt_old_postinstall_cmds
14399: old_postuninstall_cmds=$lt_old_postuninstall_cmds
1.1 paf 14400:
1.5 moko 14401: # Whether to use a lock for old archive extraction.
14402: lock_old_archive_extraction=$lock_old_archive_extraction
1.1 paf 14403:
1.5 moko 14404: # A C compiler.
14405: LTCC=$lt_CC
1.2 paf 14406:
1.5 moko 14407: # LTCC compiler flags.
14408: LTCFLAGS=$lt_CFLAGS
1.2 paf 14409:
1.5 moko 14410: # Take the output of nm and produce a listing of raw symbols and C names.
14411: global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
1.2 paf 14412:
1.5 moko 14413: # Transform the output of nm in a proper C declaration.
14414: global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
1.2 paf 14415:
1.5 moko 14416: # Transform the output of nm in a C name address pair.
14417: global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
1.2 paf 14418:
1.5 moko 14419: # Transform the output of nm in a C name address pair when lib prefix is needed.
14420: global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
1.2 paf 14421:
1.5 moko 14422: # Specify filename containing input files for \$NM.
14423: nm_file_list_spec=$lt_nm_file_list_spec
1.2 paf 14424:
1.5 moko 14425: # The root where to search for dependent libraries,and in which our libraries should be installed.
14426: lt_sysroot=$lt_sysroot
1.2 paf 14427:
1.5 moko 14428: # The name of the directory that contains temporary libtool files.
14429: objdir=$objdir
1.2 paf 14430:
1.5 moko 14431: # Used to examine libraries when file_magic_cmd begins with "file".
14432: MAGIC_CMD=$MAGIC_CMD
1.2 paf 14433:
1.5 moko 14434: # Must we lock files when doing compilation?
14435: need_locks=$lt_need_locks
1.1 paf 14436:
1.5 moko 14437: # Manifest tool.
14438: MANIFEST_TOOL=$lt_MANIFEST_TOOL
1.2 paf 14439:
1.5 moko 14440: # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14441: DSYMUTIL=$lt_DSYMUTIL
1.2 paf 14442:
1.5 moko 14443: # Tool to change global to local symbols on Mac OS X.
14444: NMEDIT=$lt_NMEDIT
1.2 paf 14445:
1.5 moko 14446: # Tool to manipulate fat objects and archives on Mac OS X.
14447: LIPO=$lt_LIPO
1.2 paf 14448:
1.5 moko 14449: # ldd/readelf like tool for Mach-O binaries on Mac OS X.
14450: OTOOL=$lt_OTOOL
1.2 paf 14451:
1.5 moko 14452: # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14453: OTOOL64=$lt_OTOOL64
1.2 paf 14454:
1.5 moko 14455: # Old archive suffix (normally "a").
14456: libext=$libext
1.1 paf 14457:
1.5 moko 14458: # Shared library suffix (normally ".so").
14459: shrext_cmds=$lt_shrext_cmds
1.2 paf 14460:
1.5 moko 14461: # The commands to extract the exported symbol list from a shared archive.
14462: extract_expsyms_cmds=$lt_extract_expsyms_cmds
1.1 paf 14463:
1.5 moko 14464: # Variables whose values should be saved in libtool wrapper scripts and
14465: # restored at link time.
14466: variables_saved_for_relink=$lt_variables_saved_for_relink
1.1 paf 14467:
1.5 moko 14468: # Do we need the "lib" prefix for modules?
14469: need_lib_prefix=$need_lib_prefix
1.1 paf 14470:
1.5 moko 14471: # Do we need a version for libraries?
14472: need_version=$need_version
1.1 paf 14473:
1.5 moko 14474: # Library versioning type.
14475: version_type=$version_type
1.2 paf 14476:
1.5 moko 14477: # Shared library runtime path variable.
14478: runpath_var=$runpath_var
1.2 paf 14479:
1.5 moko 14480: # Shared library path variable.
14481: shlibpath_var=$shlibpath_var
1.2 paf 14482:
1.5 moko 14483: # Is shlibpath searched before the hard-coded library search path?
14484: shlibpath_overrides_runpath=$shlibpath_overrides_runpath
1.2 paf 14485:
1.5 moko 14486: # Format of library name prefix.
14487: libname_spec=$lt_libname_spec
1.2 paf 14488:
1.5 moko 14489: # List of archive names. First name is the real one, the rest are links.
14490: # The last name is the one that the linker finds with -lNAME
14491: library_names_spec=$lt_library_names_spec
1.2 paf 14492:
1.5 moko 14493: # The coded name of the library, if different from the real name.
14494: soname_spec=$lt_soname_spec
1.2 paf 14495:
1.5 moko 14496: # Permission mode override for installation of shared libraries.
14497: install_override_mode=$lt_install_override_mode
1.2 paf 14498:
1.5 moko 14499: # Command to use after installation of a shared archive.
14500: postinstall_cmds=$lt_postinstall_cmds
1.2 paf 14501:
1.5 moko 14502: # Command to use after uninstallation of a shared archive.
14503: postuninstall_cmds=$lt_postuninstall_cmds
1.2 paf 14504:
1.5 moko 14505: # Commands used to finish a libtool library installation in a directory.
14506: finish_cmds=$lt_finish_cmds
1.2 paf 14507:
1.5 moko 14508: # As "finish_cmds", except a single script fragment to be evaled but
14509: # not shown.
14510: finish_eval=$lt_finish_eval
1.2 paf 14511:
1.5 moko 14512: # Whether we should hardcode library paths into libraries.
14513: hardcode_into_libs=$hardcode_into_libs
1.2 paf 14514:
1.5 moko 14515: # Compile-time system search path for libraries.
14516: sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
1.2 paf 14517:
1.5 moko 14518: # Run-time system search path for libraries.
14519: sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
1.2 paf 14520:
1.5 moko 14521: # Whether dlopen is supported.
14522: dlopen_support=$enable_dlopen
1.2 paf 14523:
1.5 moko 14524: # Whether dlopen of programs is supported.
14525: dlopen_self=$enable_dlopen_self
1.1 paf 14526:
1.5 moko 14527: # Whether dlopen of statically linked programs is supported.
14528: dlopen_self_static=$enable_dlopen_self_static
1.2 paf 14529:
1.5 moko 14530: # Commands to strip libraries.
14531: old_striplib=$lt_old_striplib
14532: striplib=$lt_striplib
1.2 paf 14533:
14534:
1.5 moko 14535: # The linker used to build libraries.
14536: LD=$lt_LD
1.2 paf 14537:
1.5 moko 14538: # How to create reloadable object files.
14539: reload_flag=$lt_reload_flag
14540: reload_cmds=$lt_reload_cmds
1.4 paf 14541:
1.5 moko 14542: # Commands used to build an old-style archive.
14543: old_archive_cmds=$lt_old_archive_cmds
1.2 paf 14544:
1.5 moko 14545: # A language specific compiler.
14546: CC=$lt_compiler
1.2 paf 14547:
1.5 moko 14548: # Is the compiler the GNU compiler?
14549: with_gcc=$GCC
1.2 paf 14550:
1.5 moko 14551: # Compiler flag to turn off builtin functions.
14552: no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
1.2 paf 14553:
1.5 moko 14554: # Additional compiler flags for building library objects.
14555: pic_flag=$lt_lt_prog_compiler_pic
1.1 paf 14556:
1.5 moko 14557: # How to pass a linker flag through the compiler.
14558: wl=$lt_lt_prog_compiler_wl
1.1 paf 14559:
1.5 moko 14560: # Compiler flag to prevent dynamic linking.
14561: link_static_flag=$lt_lt_prog_compiler_static
1.2 paf 14562:
1.5 moko 14563: # Does compiler simultaneously support -c and -o options?
14564: compiler_c_o=$lt_lt_cv_prog_compiler_c_o
1.2 paf 14565:
1.5 moko 14566: # Whether or not to add -lc for building shared libraries.
14567: build_libtool_need_lc=$archive_cmds_need_lc
1.1 paf 14568:
1.5 moko 14569: # Whether or not to disallow shared libs when runtime libs are static.
14570: allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
1.2 paf 14571:
1.5 moko 14572: # Compiler flag to allow reflexive dlopens.
14573: export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
1.2 paf 14574:
1.5 moko 14575: # Compiler flag to generate shared objects directly from archives.
14576: whole_archive_flag_spec=$lt_whole_archive_flag_spec
1.2 paf 14577:
1.5 moko 14578: # Whether the compiler copes with passing no objects directly.
14579: compiler_needs_object=$lt_compiler_needs_object
1.2 paf 14580:
1.5 moko 14581: # Create an old-style archive from a shared archive.
14582: old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
1.2 paf 14583:
1.5 moko 14584: # Create a temporary old-style archive to link instead of a shared archive.
14585: old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
1.2 paf 14586:
1.5 moko 14587: # Commands used to build a shared archive.
14588: archive_cmds=$lt_archive_cmds
14589: archive_expsym_cmds=$lt_archive_expsym_cmds
1.2 paf 14590:
1.5 moko 14591: # Commands used to build a loadable module if different from building
14592: # a shared archive.
14593: module_cmds=$lt_module_cmds
14594: module_expsym_cmds=$lt_module_expsym_cmds
1.1 paf 14595:
1.5 moko 14596: # Whether we are building with GNU ld or not.
14597: with_gnu_ld=$lt_with_gnu_ld
1.2 paf 14598:
1.5 moko 14599: # Flag that allows shared libraries with undefined symbols to be built.
14600: allow_undefined_flag=$lt_allow_undefined_flag
1.2 paf 14601:
1.5 moko 14602: # Flag that enforces no undefined symbols.
14603: no_undefined_flag=$lt_no_undefined_flag
1.2 paf 14604:
1.5 moko 14605: # Flag to hardcode \$libdir into a binary during linking.
14606: # This must work even if \$libdir does not exist
14607: hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
1.2 paf 14608:
1.5 moko 14609: # Whether we need a single "-rpath" flag with a separated argument.
14610: hardcode_libdir_separator=$lt_hardcode_libdir_separator
1.2 paf 14611:
1.5 moko 14612: # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14613: # DIR into the resulting binary.
14614: hardcode_direct=$hardcode_direct
1.2 paf 14615:
1.5 moko 14616: # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14617: # DIR into the resulting binary and the resulting library dependency is
14618: # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14619: # library is relocated.
14620: hardcode_direct_absolute=$hardcode_direct_absolute
1.2 paf 14621:
1.5 moko 14622: # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14623: # into the resulting binary.
14624: hardcode_minus_L=$hardcode_minus_L
1.1 paf 14625:
1.5 moko 14626: # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14627: # into the resulting binary.
14628: hardcode_shlibpath_var=$hardcode_shlibpath_var
1.4 paf 14629:
1.5 moko 14630: # Set to "yes" if building a shared library automatically hardcodes DIR
14631: # into the library and all subsequent libraries and executables linked
14632: # against it.
14633: hardcode_automatic=$hardcode_automatic
14634:
14635: # Set to yes if linker adds runtime paths of dependent libraries
14636: # to runtime path list.
14637: inherit_rpath=$inherit_rpath
1.4 paf 14638:
1.5 moko 14639: # Whether libtool must link a program against all its dependency libraries.
14640: link_all_deplibs=$link_all_deplibs
1.4 paf 14641:
1.5 moko 14642: # Set to "yes" if exported symbols are required.
14643: always_export_symbols=$always_export_symbols
1.4 paf 14644:
1.5 moko 14645: # The commands to list exported symbols.
14646: export_symbols_cmds=$lt_export_symbols_cmds
1.4 paf 14647:
1.5 moko 14648: # Symbols that should not be listed in the preloaded symbols.
14649: exclude_expsyms=$lt_exclude_expsyms
1.4 paf 14650:
1.5 moko 14651: # Symbols that must always be exported.
14652: include_expsyms=$lt_include_expsyms
1.4 paf 14653:
1.5 moko 14654: # Commands necessary for linking programs (against libraries) with templates.
14655: prelink_cmds=$lt_prelink_cmds
1.4 paf 14656:
1.5 moko 14657: # Commands necessary for finishing linking programs.
14658: postlink_cmds=$lt_postlink_cmds
1.4 paf 14659:
1.5 moko 14660: # Specify filename containing input files.
14661: file_list_spec=$lt_file_list_spec
1.4 paf 14662:
1.5 moko 14663: # How to hardcode a shared library path into an executable.
14664: hardcode_action=$hardcode_action
1.4 paf 14665:
1.5 moko 14666: # ### END LIBTOOL CONFIG
1.1 paf 14667:
1.5 moko 14668: _LT_EOF
1.1 paf 14669:
1.5 moko 14670: case $host_os in
14671: aix3*)
14672: cat <<\_LT_EOF >> "$cfgfile"
14673: # AIX sometimes has problems with the GCC collect2 program. For some
14674: # reason, if we set the COLLECT_NAMES environment variable, the problems
14675: # vanish in a puff of smoke.
14676: if test "X${COLLECT_NAMES+set}" != Xset; then
14677: COLLECT_NAMES=
14678: export COLLECT_NAMES
14679: fi
14680: _LT_EOF
14681: ;;
14682: esac
1.1 paf 14683:
1.2 paf 14684:
1.5 moko 14685: ltmain="$ac_aux_dir/ltmain.sh"
1.2 paf 14686:
1.1 paf 14687:
1.5 moko 14688: # We use sed instead of cat because bash on DJGPP gets confused if
14689: # if finds mixed CR/LF and LF-only lines. Since sed operates in
14690: # text mode, it properly converts lines to CR/LF. This bash problem
14691: # is reportedly fixed, but why not run on old versions too?
14692: sed '$q' "$ltmain" >> "$cfgfile" \
14693: || (rm -f "$cfgfile"; exit 1)
1.2 paf 14694:
1.5 moko 14695: if test x"$xsi_shell" = xyes; then
14696: sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
14697: func_dirname ()\
14698: {\
14699: \ case ${1} in\
14700: \ */*) func_dirname_result="${1%/*}${2}" ;;\
14701: \ * ) func_dirname_result="${3}" ;;\
14702: \ esac\
14703: } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
14704: && mv -f "$cfgfile.tmp" "$cfgfile" \
14705: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14706: test 0 -eq $? || _lt_function_replace_fail=:
14707:
14708:
14709: sed -e '/^func_basename ()$/,/^} # func_basename /c\
14710: func_basename ()\
14711: {\
14712: \ func_basename_result="${1##*/}"\
14713: } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
14714: && mv -f "$cfgfile.tmp" "$cfgfile" \
14715: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14716: test 0 -eq $? || _lt_function_replace_fail=:
14717:
14718:
14719: sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
14720: func_dirname_and_basename ()\
14721: {\
14722: \ case ${1} in\
14723: \ */*) func_dirname_result="${1%/*}${2}" ;;\
14724: \ * ) func_dirname_result="${3}" ;;\
14725: \ esac\
14726: \ func_basename_result="${1##*/}"\
14727: } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
14728: && mv -f "$cfgfile.tmp" "$cfgfile" \
14729: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14730: test 0 -eq $? || _lt_function_replace_fail=:
14731:
14732:
14733: sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
14734: func_stripname ()\
14735: {\
14736: \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
14737: \ # positional parameters, so assign one to ordinary parameter first.\
14738: \ func_stripname_result=${3}\
14739: \ func_stripname_result=${func_stripname_result#"${1}"}\
14740: \ func_stripname_result=${func_stripname_result%"${2}"}\
14741: } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
14742: && mv -f "$cfgfile.tmp" "$cfgfile" \
14743: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14744: test 0 -eq $? || _lt_function_replace_fail=:
14745:
14746:
14747: sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
14748: func_split_long_opt ()\
14749: {\
14750: \ func_split_long_opt_name=${1%%=*}\
14751: \ func_split_long_opt_arg=${1#*=}\
14752: } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
14753: && mv -f "$cfgfile.tmp" "$cfgfile" \
14754: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14755: test 0 -eq $? || _lt_function_replace_fail=:
14756:
14757:
14758: sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
14759: func_split_short_opt ()\
14760: {\
14761: \ func_split_short_opt_arg=${1#??}\
14762: \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
14763: } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
14764: && mv -f "$cfgfile.tmp" "$cfgfile" \
14765: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14766: test 0 -eq $? || _lt_function_replace_fail=:
14767:
14768:
14769: sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
14770: func_lo2o ()\
14771: {\
14772: \ case ${1} in\
14773: \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
14774: \ *) func_lo2o_result=${1} ;;\
14775: \ esac\
14776: } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
14777: && mv -f "$cfgfile.tmp" "$cfgfile" \
14778: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14779: test 0 -eq $? || _lt_function_replace_fail=:
14780:
14781:
14782: sed -e '/^func_xform ()$/,/^} # func_xform /c\
14783: func_xform ()\
14784: {\
14785: func_xform_result=${1%.*}.lo\
14786: } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
14787: && mv -f "$cfgfile.tmp" "$cfgfile" \
14788: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14789: test 0 -eq $? || _lt_function_replace_fail=:
14790:
14791:
14792: sed -e '/^func_arith ()$/,/^} # func_arith /c\
14793: func_arith ()\
14794: {\
14795: func_arith_result=$(( $* ))\
14796: } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
14797: && mv -f "$cfgfile.tmp" "$cfgfile" \
14798: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14799: test 0 -eq $? || _lt_function_replace_fail=:
14800:
14801:
14802: sed -e '/^func_len ()$/,/^} # func_len /c\
14803: func_len ()\
14804: {\
14805: func_len_result=${#1}\
14806: } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
14807: && mv -f "$cfgfile.tmp" "$cfgfile" \
14808: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14809: test 0 -eq $? || _lt_function_replace_fail=:
14810:
14811: fi
14812:
14813: if test x"$lt_shell_append" = xyes; then
14814: sed -e '/^func_append ()$/,/^} # func_append /c\
14815: func_append ()\
14816: {\
14817: eval "${1}+=\\${2}"\
14818: } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
14819: && mv -f "$cfgfile.tmp" "$cfgfile" \
14820: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14821: test 0 -eq $? || _lt_function_replace_fail=:
14822:
14823:
14824: sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
14825: func_append_quoted ()\
14826: {\
14827: \ func_quote_for_eval "${2}"\
14828: \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
14829: } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
14830: && mv -f "$cfgfile.tmp" "$cfgfile" \
14831: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14832: test 0 -eq $? || _lt_function_replace_fail=:
14833:
14834:
14835: # Save a `func_append' function call where possible by direct use of '+='
14836: sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
14837: && mv -f "$cfgfile.tmp" "$cfgfile" \
14838: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14839: test 0 -eq $? || _lt_function_replace_fail=:
14840: else
14841: # Save a `func_append' function call even when '+=' is not available
14842: sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
14843: && mv -f "$cfgfile.tmp" "$cfgfile" \
14844: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14845: test 0 -eq $? || _lt_function_replace_fail=:
14846: fi
14847:
14848: if test x"$_lt_function_replace_fail" = x":"; then
14849: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
14850: $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
1.2 paf 14851: fi
14852:
1.1 paf 14853:
1.5 moko 14854: mv -f "$cfgfile" "$ofile" ||
14855: (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14856: chmod +x "$ofile"
14857:
1.2 paf 14858: ;;
1.5 moko 14859:
1.2 paf 14860: esac
1.5 moko 14861: done # for ac_tag
1.1 paf 14862:
14863:
1.5 moko 14864: as_fn_exit 0
1.2 paf 14865: _ACEOF
14866: ac_clean_files=$ac_clean_files_save
14867:
1.5 moko 14868: test $ac_write_fail = 0 ||
14869: as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
14870:
1.2 paf 14871:
14872: # configure is writing to config.log, and then calls config.status.
14873: # config.status does its own redirection, appending to config.log.
14874: # Unfortunately, on DOS this fails, as config.log is still kept open
14875: # by configure, so config.status won't be able to write to it; its
14876: # output is simply discarded. So we exec the FD to /dev/null,
14877: # effectively closing config.log, so it can be properly (re)opened and
14878: # appended to by config.status. When coming back to configure, we
14879: # need to make the FD available again.
14880: if test "$no_create" != yes; then
14881: ac_cs_success=:
14882: ac_config_status_args=
14883: test "$silent" = yes &&
14884: ac_config_status_args="$ac_config_status_args --quiet"
14885: exec 5>/dev/null
14886: $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14887: exec 5>>config.log
14888: # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14889: # would make configure fail if this is the last instruction.
1.5 moko 14890: $ac_cs_success || as_fn_exit 1
14891: fi
14892: if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14893: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14894: $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
1.2 paf 14895: fi
1.1 paf 14896:
E-mail: