Annotation of parser3/configure, revision 1.244
1.1 paf 1: #! /bin/sh
2: # Guess values for system-dependent variables and create Makefiles.
1.237 moko 3: # Generated by GNU Autoconf 2.72 for parser 3.5.2b.
1.150 moko 4: #
5: #
1.237 moko 6: # Copyright (C) 1992-1996, 1998-2017, 2020-2023 Free Software Foundation,
7: # Inc.
1.150 moko 8: #
1.1 paf 9: #
10: # This configure script is free software; the Free Software Foundation
11: # gives unlimited permission to copy, distribute and modify it.
1.150 moko 12: ## -------------------- ##
13: ## M4sh Initialization. ##
14: ## -------------------- ##
1.62 paf 15:
1.150 moko 16: # Be more Bourne compatible
17: DUALCASE=1; export DUALCASE # for MKS sh
1.237 moko 18: if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
19: then :
1.62 paf 20: emulate sh
21: NULLCMD=:
1.150 moko 22: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
1.62 paf 23: # is contrary to our usage. Disable this feature.
24: alias -g '${1+"$@"}'='"$@"'
1.150 moko 25: setopt NO_GLOB_SUBST
1.237 moko 26: else case e in #(
27: e) case `(set -o) 2>/dev/null` in #(
1.150 moko 28: *posix*) :
29: set -o posix ;; #(
30: *) :
31: ;;
1.237 moko 32: esac ;;
1.150 moko 33: esac
34: fi
35:
36:
1.237 moko 37:
38: # Reset variables that may have inherited troublesome values from
39: # the environment.
40:
41: # IFS needs to be set, to space, tab, and newline, in precisely that order.
42: # (If _AS_PATH_WALK were called with IFS unset, it would have the
43: # side effect of setting IFS to empty, thus disabling word splitting.)
44: # Quoting is to prevent editors from complaining about space-tab.
1.150 moko 45: as_nl='
46: '
47: export as_nl
1.237 moko 48: IFS=" "" $as_nl"
49:
50: PS1='$ '
51: PS2='> '
52: PS4='+ '
53:
54: # Ensure predictable behavior from utilities with locale-dependent output.
55: LC_ALL=C
56: export LC_ALL
57: LANGUAGE=C
58: export LANGUAGE
59:
60: # We cannot yet rely on "unset" to work, but we need these variables
61: # to be unset--not just set to an empty or harmless value--now, to
62: # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
63: # also avoids known problems related to "unset" and subshell syntax
64: # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
65: for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
66: do eval test \${$as_var+y} \
67: && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
68: done
69:
70: # Ensure that fds 0, 1, and 2 are open.
71: if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
72: if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
73: if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
1.62 paf 74:
1.150 moko 75: # The user is always right.
1.237 moko 76: if ${PATH_SEPARATOR+false} :; then
1.150 moko 77: PATH_SEPARATOR=:
78: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
79: (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
80: PATH_SEPARATOR=';'
81: }
1.62 paf 82: fi
83:
84:
1.150 moko 85: # Find who we are. Look in the path if we contain no directory separator.
86: as_myself=
87: case $0 in #((
88: *[\\/]* ) as_myself=$0 ;;
89: *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
90: for as_dir in $PATH
91: do
92: IFS=$as_save_IFS
1.237 moko 93: case $as_dir in #(((
94: '') as_dir=./ ;;
95: */) ;;
96: *) as_dir=$as_dir/ ;;
97: esac
98: test -r "$as_dir$0" && as_myself=$as_dir$0 && break
1.150 moko 99: done
100: IFS=$as_save_IFS
101:
102: ;;
103: esac
1.237 moko 104: # We did not find ourselves, most probably we were run as 'sh COMMAND'
1.150 moko 105: # in which case we are not to be found in the path.
106: if test "x$as_myself" = x; then
107: as_myself=$0
108: fi
109: if test ! -f "$as_myself"; then
1.237 moko 110: printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
1.150 moko 111: exit 1
112: fi
113:
114:
1.166 moko 115: # Use a proper internal environment variable to ensure we don't fall
116: # into an infinite loop, continuously re-executing ourselves.
117: if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
118: _as_can_reexec=no; export _as_can_reexec;
119: # We cannot yet assume a decent shell, so we have to provide a
120: # neutralization value for shells without unset; and this also
121: # works around shells that cannot unset nonexistent variables.
122: # Preserve -v and -x to the replacement shell.
123: BASH_ENV=/dev/null
124: ENV=/dev/null
125: (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
126: case $- in # ((((
127: *v*x* | *x*v* ) as_opts=-vx ;;
128: *v* ) as_opts=-v ;;
129: *x* ) as_opts=-x ;;
130: * ) as_opts= ;;
131: esac
132: exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
133: # Admittedly, this is quite paranoid, since all the known shells bail
1.237 moko 134: # out after a failed 'exec'.
135: printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
136: exit 255
1.166 moko 137: fi
138: # We don't want this to propagate to other subprocesses.
139: { _as_can_reexec=; unset _as_can_reexec;}
1.150 moko 140: if test "x$CONFIG_SHELL" = x; then
1.237 moko 141: as_bourne_compatible="if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
142: then :
1.150 moko 143: emulate sh
144: NULLCMD=:
145: # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
146: # is contrary to our usage. Disable this feature.
147: alias -g '\${1+\"\$@\"}'='\"\$@\"'
148: setopt NO_GLOB_SUBST
1.237 moko 149: else case e in #(
150: e) case \`(set -o) 2>/dev/null\` in #(
1.150 moko 151: *posix*) :
152: set -o posix ;; #(
153: *) :
154: ;;
1.237 moko 155: esac ;;
1.150 moko 156: esac
157: fi
158: "
159: as_required="as_fn_return () { (exit \$1); }
160: as_fn_success () { as_fn_return 0; }
161: as_fn_failure () { as_fn_return 1; }
162: as_fn_ret_success () { return 0; }
163: as_fn_ret_failure () { return 1; }
164:
165: exitcode=0
166: as_fn_success || { exitcode=1; echo as_fn_success failed.; }
167: as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
168: as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
169: as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
1.237 moko 170: if ( set x; as_fn_ret_success y && test x = \"\$1\" )
171: then :
1.150 moko 172:
1.237 moko 173: else case e in #(
174: e) exitcode=1; echo positional parameters were not saved. ;;
175: esac
1.150 moko 176: fi
1.166 moko 177: test x\$exitcode = x0 || exit 1
1.237 moko 178: blah=\$(echo \$(echo blah))
179: test x\"\$blah\" = xblah || exit 1
1.166 moko 180: test -x / || exit 1"
1.150 moko 181: as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
182: as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
183: eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
184: test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
185:
186: test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
187: ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
188: ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
189: ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
190: PATH=/empty FPATH=/empty; export PATH FPATH
191: test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
192: || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
193: test \$(( 1 + 1 )) = 2 || exit 1"
1.237 moko 194: if (eval "$as_required") 2>/dev/null
195: then :
1.150 moko 196: as_have_required=yes
1.237 moko 197: else case e in #(
198: e) as_have_required=no ;;
199: esac
1.150 moko 200: fi
1.237 moko 201: if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
202: then :
1.150 moko 203:
1.237 moko 204: else case e in #(
205: e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1.150 moko 206: as_found=false
207: for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
1.62 paf 208: do
1.150 moko 209: IFS=$as_save_IFS
1.237 moko 210: case $as_dir in #(((
211: '') as_dir=./ ;;
212: */) ;;
213: *) as_dir=$as_dir/ ;;
214: esac
1.150 moko 215: as_found=:
216: case $as_dir in #(
217: /*)
218: for as_base in sh bash ksh sh5; do
219: # Try only shells that exist, to save several forks.
1.237 moko 220: as_shell=$as_dir$as_base
1.150 moko 221: if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
1.237 moko 222: as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
223: then :
1.150 moko 224: CONFIG_SHELL=$as_shell as_have_required=yes
1.237 moko 225: if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
226: then :
1.150 moko 227: break 2
228: fi
229: fi
230: done;;
231: esac
232: as_found=false
233: done
1.237 moko 234: IFS=$as_save_IFS
235: if $as_found
236: then :
237:
238: else case e in #(
239: e) if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240: as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
241: then :
1.150 moko 242: CONFIG_SHELL=$SHELL as_have_required=yes
1.237 moko 243: fi ;;
244: esac
245: fi
1.150 moko 246:
247:
1.237 moko 248: if test "x$CONFIG_SHELL" != x
249: then :
1.166 moko 250: export CONFIG_SHELL
251: # We cannot yet assume a decent shell, so we have to provide a
252: # neutralization value for shells without unset; and this also
253: # works around shells that cannot unset nonexistent variables.
254: # Preserve -v and -x to the replacement shell.
255: BASH_ENV=/dev/null
256: ENV=/dev/null
257: (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
258: case $- in # ((((
259: *v*x* | *x*v* ) as_opts=-vx ;;
260: *v* ) as_opts=-v ;;
261: *x* ) as_opts=-x ;;
262: * ) as_opts= ;;
263: esac
264: exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
265: # Admittedly, this is quite paranoid, since all the known shells bail
1.237 moko 266: # out after a failed 'exec'.
267: printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
1.166 moko 268: exit 255
1.150 moko 269: fi
270:
1.237 moko 271: if test x$as_have_required = xno
272: then :
273: printf "%s\n" "$0: This script requires a shell more modern than all"
274: printf "%s\n" "$0: the shells that I found on your system."
275: if test ${ZSH_VERSION+y} ; then
276: printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
277: printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
1.62 paf 278: else
1.237 moko 279: printf "%s\n" "$0: Please tell bug-autoconf@gnu.org about your system,
1.150 moko 280: $0: including any error possibly output before this
281: $0: message. Then install a modern shell, or manually run
282: $0: the script under such a shell if you do have one."
1.62 paf 283: fi
1.150 moko 284: exit 1
1.237 moko 285: fi ;;
286: esac
1.150 moko 287: fi
288: fi
289: SHELL=${CONFIG_SHELL-/bin/sh}
290: export SHELL
291: # Unset more variables known to interfere with behavior of common tools.
292: CLICOLOR_FORCE= GREP_OPTIONS=
293: unset CLICOLOR_FORCE GREP_OPTIONS
294:
295: ## --------------------- ##
296: ## M4sh Shell Functions. ##
297: ## --------------------- ##
298: # as_fn_unset VAR
299: # ---------------
300: # Portably unset VAR.
301: as_fn_unset ()
302: {
303: { eval $1=; unset $1;}
304: }
305: as_unset=as_fn_unset
306:
1.237 moko 307:
1.150 moko 308: # as_fn_set_status STATUS
309: # -----------------------
310: # Set $? to STATUS, without forking.
311: as_fn_set_status ()
312: {
313: return $1
314: } # as_fn_set_status
315:
316: # as_fn_exit STATUS
317: # -----------------
318: # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
319: as_fn_exit ()
320: {
321: set +e
322: as_fn_set_status $1
323: exit $1
324: } # as_fn_exit
325:
326: # as_fn_mkdir_p
327: # -------------
328: # Create "$as_dir" as a directory, including parents if necessary.
329: as_fn_mkdir_p ()
330: {
331:
332: case $as_dir in #(
333: -*) as_dir=./$as_dir;;
334: esac
335: test -d "$as_dir" || eval $as_mkdir_p || {
336: as_dirs=
337: while :; do
338: case $as_dir in #(
1.237 moko 339: *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
1.150 moko 340: *) as_qdir=$as_dir;;
341: esac
342: as_dirs="'$as_qdir' $as_dirs"
343: as_dir=`$as_dirname -- "$as_dir" ||
344: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
345: X"$as_dir" : 'X\(//\)[^/]' \| \
346: X"$as_dir" : 'X\(//\)$' \| \
347: X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
1.237 moko 348: printf "%s\n" X"$as_dir" |
1.150 moko 349: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
350: s//\1/
351: q
352: }
353: /^X\(\/\/\)[^/].*/{
354: s//\1/
355: q
356: }
357: /^X\(\/\/\)$/{
358: s//\1/
359: q
360: }
361: /^X\(\/\).*/{
362: s//\1/
363: q
364: }
365: s/.*/./; q'`
366: test -d "$as_dir" && break
367: done
368: test -z "$as_dirs" || eval "mkdir $as_dirs"
369: } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
370:
371:
372: } # as_fn_mkdir_p
1.166 moko 373:
374: # as_fn_executable_p FILE
375: # -----------------------
376: # Test if FILE is an executable regular file.
377: as_fn_executable_p ()
378: {
379: test -f "$1" && test -x "$1"
380: } # as_fn_executable_p
1.150 moko 381: # as_fn_append VAR VALUE
382: # ----------------------
383: # Append the text in VALUE to the end of the definition contained in VAR. Take
384: # advantage of any shell optimizations that allow amortized linear growth over
385: # repeated appends, instead of the typical quadratic growth present in naive
386: # implementations.
1.237 moko 387: if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
388: then :
1.150 moko 389: eval 'as_fn_append ()
390: {
391: eval $1+=\$2
392: }'
1.237 moko 393: else case e in #(
394: e) as_fn_append ()
1.150 moko 395: {
396: eval $1=\$$1\$2
1.237 moko 397: } ;;
398: esac
1.150 moko 399: fi # as_fn_append
400:
401: # as_fn_arith ARG...
402: # ------------------
403: # Perform arithmetic evaluation on the ARGs, and store the result in the
404: # global $as_val. Take advantage of shells that can avoid forks. The arguments
405: # must be portable across $(()) and expr.
1.237 moko 406: if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
407: then :
1.150 moko 408: eval 'as_fn_arith ()
409: {
410: as_val=$(( $* ))
411: }'
1.237 moko 412: else case e in #(
413: e) as_fn_arith ()
1.150 moko 414: {
415: as_val=`expr "$@" || test $? -eq 1`
1.237 moko 416: } ;;
417: esac
1.150 moko 418: fi # as_fn_arith
419:
420:
421: # as_fn_error STATUS ERROR [LINENO LOG_FD]
422: # ----------------------------------------
423: # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
424: # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
425: # script with STATUS, using 1 if that was 0.
426: as_fn_error ()
427: {
428: as_status=$1; test $as_status -eq 0 && as_status=1
429: if test "$4"; then
430: as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1.237 moko 431: printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
1.150 moko 432: fi
1.237 moko 433: printf "%s\n" "$as_me: error: $2" >&2
1.150 moko 434: as_fn_exit $as_status
435: } # as_fn_error
1.62 paf 436:
1.150 moko 437: if expr a : '\(a\)' >/dev/null 2>&1 &&
438: test "X`expr 00001 : '.*\(...\)'`" = X001; then
1.62 paf 439: as_expr=expr
440: else
441: as_expr=false
442: fi
443:
1.150 moko 444: if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
1.62 paf 445: as_basename=basename
446: else
447: as_basename=false
448: fi
449:
1.150 moko 450: if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
451: as_dirname=dirname
452: else
453: as_dirname=false
454: fi
1.62 paf 455:
1.150 moko 456: as_me=`$as_basename -- "$0" ||
1.62 paf 457: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
458: X"$0" : 'X\(//\)$' \| \
1.150 moko 459: X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1.237 moko 460: printf "%s\n" X/"$0" |
1.150 moko 461: sed '/^.*\/\([^/][^/]*\)\/*$/{
462: s//\1/
463: q
464: }
465: /^X\/\(\/\/\)$/{
466: s//\1/
467: q
468: }
469: /^X\/\(\/\).*/{
470: s//\1/
471: q
472: }
473: s/.*/./; q'`
1.62 paf 474:
475: # Avoid depending upon Character Ranges.
476: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
477: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
478: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
479: as_cr_digits='0123456789'
480: as_cr_alnum=$as_cr_Letters$as_cr_digits
481:
482:
1.150 moko 483: as_lineno_1=$LINENO as_lineno_1a=$LINENO
484: as_lineno_2=$LINENO as_lineno_2a=$LINENO
485: eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
486: test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
487: # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
488: sed -n '
489: p
490: /[$]LINENO/=
491: ' <$as_myself |
1.62 paf 492: sed '
1.237 moko 493: t clear
494: :clear
1.150 moko 495: s/[$]LINENO.*/&-/
496: t lineno
497: b
498: :lineno
1.62 paf 499: N
1.150 moko 500: :loop
501: s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
1.62 paf 502: t loop
1.150 moko 503: s/-\n.*//
1.62 paf 504: ' >$as_me.lineno &&
1.150 moko 505: chmod +x "$as_me.lineno" ||
1.237 moko 506: { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
1.62 paf 507:
1.166 moko 508: # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
509: # already done that, so ensure we don't try to do so again and fall
510: # in an infinite loop. This has already happened in practice.
511: _as_can_reexec=no; export _as_can_reexec
1.62 paf 512: # Don't try to exec as it changes $[0], causing all sort of problems
513: # (the dirname of $[0] is not the place where we might find the
1.150 moko 514: # original and so on. Autoconf is especially sensitive to this).
515: . "./$as_me.lineno"
1.62 paf 516: # Exit status is that of the last command.
517: exit
518: }
519:
1.237 moko 520:
521: # Determine whether it's possible to make 'echo' print without a newline.
522: # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
523: # for compatibility with existing Makefiles.
1.150 moko 524: ECHO_C= ECHO_N= ECHO_T=
525: case `echo -n x` in #(((((
526: -n*)
527: case `echo 'xy\c'` in
528: *c*) ECHO_T=' ';; # ECHO_T is single tab character.
529: xy) ECHO_C='\c';;
530: *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
531: ECHO_T=' ';;
532: esac;;
533: *)
534: ECHO_N='-n';;
1.62 paf 535: esac
536:
1.237 moko 537: # For backward compatibility with old third-party macros, we provide
538: # the shell variables $as_echo and $as_echo_n. New code should use
539: # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
540: as_echo='printf %s\n'
541: as_echo_n='printf %s'
542:
1.150 moko 543: rm -f conf$$ conf$$.exe conf$$.file
544: if test -d conf$$.dir; then
545: rm -f conf$$.dir/conf$$.file
1.62 paf 546: else
1.150 moko 547: rm -f conf$$.dir
548: mkdir conf$$.dir 2>/dev/null
1.62 paf 549: fi
1.150 moko 550: if (echo >conf$$.file) 2>/dev/null; then
551: if ln -s conf$$.file conf$$ 2>/dev/null; then
552: as_ln_s='ln -s'
553: # ... but there are two gotchas:
1.237 moko 554: # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
555: # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
556: # In both cases, we have to default to 'cp -pR'.
1.150 moko 557: ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
1.166 moko 558: as_ln_s='cp -pR'
1.150 moko 559: elif ln conf$$.file conf$$ 2>/dev/null; then
560: as_ln_s=ln
561: else
1.166 moko 562: as_ln_s='cp -pR'
1.62 paf 563: fi
564: else
1.166 moko 565: as_ln_s='cp -pR'
1.62 paf 566: fi
1.150 moko 567: rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
568: rmdir conf$$.dir 2>/dev/null
1.62 paf 569:
570: if mkdir -p . 2>/dev/null; then
1.150 moko 571: as_mkdir_p='mkdir -p "$as_dir"'
1.62 paf 572: else
1.86 paf 573: test -d ./-p && rmdir ./-p
1.62 paf 574: as_mkdir_p=false
575: fi
576:
1.166 moko 577: as_test_x='test -x'
578: as_executable_p=as_fn_executable_p
1.62 paf 579:
580: # Sed expression to map a string onto a valid CPP name.
1.237 moko 581: as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
582: as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
1.62 paf 583:
584: # Sed expression to map a string onto a valid variable name.
1.237 moko 585: as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
586: as_tr_sh="eval sed '$as_sed_sh'" # deprecated
1.62 paf 587:
1.128 moko 588: lt_ltdl_dir='src/lib/ltdl'
589:
590: SHELL=${CONFIG_SHELL-/bin/sh}
591:
1.237 moko 592: lt_dlopen_dir=$lt_ltdl_dir
1.128 moko 593:
1.1 paf 594:
1.150 moko 595: test -n "$DJDIR" || exec 7<&0 </dev/null
596: exec 6>&1
597:
1.62 paf 598: # Name of the host.
1.150 moko 599: # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
1.62 paf 600: # so uname gets run too.
601: ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
602:
603: #
604: # Initializations.
605: #
1.1 paf 606: ac_default_prefix=/usr/local
1.150 moko 607: ac_clean_files=
1.62 paf 608: ac_config_libobj_dir=.
1.150 moko 609: LIBOBJS=
1.62 paf 610: cross_compiling=no
611: subdirs=
612: MFLAGS=
613: MAKEFLAGS=
614:
615: # Identity of this package.
1.128 moko 616: PACKAGE_NAME='parser'
617: PACKAGE_TARNAME='parser'
1.230 moko 618: PACKAGE_VERSION='3.5.2b'
619: PACKAGE_STRING='parser 3.5.2b'
1.128 moko 620: PACKAGE_BUGREPORT=''
1.150 moko 621: PACKAGE_URL=''
1.62 paf 622:
623: ac_unique_file="README"
624: # Factoring default headers for most tests.
625: ac_includes_default="\
1.237 moko 626: #include <stddef.h>
627: #ifdef HAVE_STDIO_H
628: # include <stdio.h>
1.62 paf 629: #endif
1.237 moko 630: #ifdef HAVE_STDLIB_H
1.62 paf 631: # include <stdlib.h>
632: #endif
1.150 moko 633: #ifdef HAVE_STRING_H
1.62 paf 634: # include <string.h>
635: #endif
1.150 moko 636: #ifdef HAVE_INTTYPES_H
1.62 paf 637: # include <inttypes.h>
638: #endif
1.150 moko 639: #ifdef HAVE_STDINT_H
640: # include <stdint.h>
641: #endif
1.237 moko 642: #ifdef HAVE_STRINGS_H
643: # include <strings.h>
644: #endif
645: #ifdef HAVE_SYS_TYPES_H
646: # include <sys/types.h>
647: #endif
648: #ifdef HAVE_SYS_STAT_H
649: # include <sys/stat.h>
650: #endif
1.150 moko 651: #ifdef HAVE_UNISTD_H
1.62 paf 652: # include <unistd.h>
653: #endif"
654:
1.237 moko 655: ac_header_c_list=
1.150 moko 656: enable_option_checking=no
1.237 moko 657: enable_year2038=no
1.150 moko 658: ac_subst_vars='ltdl_LTLIBOBJS
659: ltdl_LIBOBJS
660: am__EXEEXT_FALSE
661: am__EXEEXT_TRUE
662: LTLIBOBJS
663: LIBOBJS
664: LTDLOPEN
665: LT_CONFIG_H
666: subdirs
1.237 moko 667: LTARGZH_EXISTS_FALSE
668: LTARGZH_EXISTS_TRUE
1.150 moko 669: CONVENIENCE_LTDL_FALSE
670: CONVENIENCE_LTDL_TRUE
671: INSTALL_LTDL_FALSE
672: INSTALL_LTDL_TRUE
1.237 moko 673: LT_ARGZ_H
1.150 moko 674: sys_symbol_underscore
675: LIBADD_DL
676: LT_DLPREOPEN
677: LIBADD_DLD_LINK
678: LIBADD_SHL_LOAD
679: LIBADD_DLOPEN
680: LT_DLLOADERS
681: INCLTDL
682: LTDLINCL
683: LTDLDEPS
684: LIBLTDL
685: CXXCPP
1.237 moko 686: LT_SYS_LIBRARY_PATH
1.150 moko 687: OTOOL64
688: OTOOL
689: LIPO
690: NMEDIT
691: DSYMUTIL
692: MANIFEST_TOOL
693: RANLIB
694: ac_ct_AR
695: AR
1.237 moko 696: FILECMD
1.150 moko 697: LN_S
698: NM
699: ac_ct_DUMPBIN
700: DUMPBIN
701: LD
702: FGREP
703: EGREP
704: GREP
705: SED
706: LIBTOOL
707: OBJDUMP
708: DLLTOOL
709: AS
710: COMPILE_APACHE_MODULE_FALSE
711: COMPILE_APACHE_MODULE_TRUE
712: APACHE_CFLAGS
713: APACHE_INC
714: APACHE
1.239 moko 715: REDIS_LIBS
716: REDIS_INCLUDES
1.232 moko 717: AMQP_LIBS
718: AMQP_INCLUDES
1.150 moko 719: MIME_LIBS
720: MIME_INCLUDES
721: XML_LIBS
722: XML_INCLUDES
723: PCRE_LIBS
724: PCRE_INCLUDES
725: GC_LIBS
726: dll_extension
727: am__fastdepCC_FALSE
728: am__fastdepCC_TRUE
729: CCDEPMODE
730: ac_ct_CC
731: CFLAGS
732: CC
733: am__fastdepCXX_FALSE
734: am__fastdepCXX_TRUE
735: CXXDEPMODE
1.187 moko 736: am__nodep
1.150 moko 737: AMDEPBACKSLASH
738: AMDEP_FALSE
739: AMDEP_TRUE
740: am__include
741: DEPDIR
742: OBJEXT
743: EXEEXT
744: ac_ct_CXX
745: CPPFLAGS
746: LDFLAGS
747: CXXFLAGS
748: CXX
749: YFLAGS
750: YACC
751: host_os
752: host_vendor
753: host_cpu
754: host
755: build_os
756: build_vendor
757: build_cpu
758: build
759: P3S
1.237 moko 760: am__xargs_n
761: am__rm_f_notfound
1.187 moko 762: AM_BACKSLASH
763: AM_DEFAULT_VERBOSITY
764: AM_DEFAULT_V
765: AM_V
1.237 moko 766: CSCOPE
767: ETAGS
768: CTAGS
1.150 moko 769: am__untar
770: am__tar
771: AMTAR
772: am__leading_dot
773: SET_MAKE
774: AWK
775: mkdir_p
776: MKDIR_P
777: INSTALL_STRIP_PROGRAM
778: STRIP
779: install_sh
780: MAKEINFO
781: AUTOHEADER
782: AUTOMAKE
783: AUTOCONF
784: ACLOCAL
785: VERSION
786: PACKAGE
787: CYGPATH_W
788: am__isrc
789: INSTALL_DATA
790: INSTALL_SCRIPT
791: INSTALL_PROGRAM
792: target_alias
793: host_alias
794: build_alias
795: LIBS
796: ECHO_T
797: ECHO_N
798: ECHO_C
799: DEFS
800: mandir
801: localedir
802: libdir
803: psdir
804: pdfdir
805: dvidir
806: htmldir
807: infodir
808: docdir
809: oldincludedir
810: includedir
1.191 moko 811: runstatedir
1.150 moko 812: localstatedir
813: sharedstatedir
814: sysconfdir
815: datadir
816: datarootdir
817: libexecdir
818: sbindir
819: bindir
820: program_transform_name
821: prefix
822: exec_prefix
823: PACKAGE_URL
824: PACKAGE_BUGREPORT
825: PACKAGE_STRING
826: PACKAGE_VERSION
827: PACKAGE_TARNAME
828: PACKAGE_NAME
829: PATH_SEPARATOR
1.199 moko 830: SHELL
831: am__quote'
1.62 paf 832: ac_subst_files=''
1.150 moko 833: ac_user_opts='
834: enable_option_checking
1.187 moko 835: enable_silent_rules
1.150 moko 836: enable_dependency_tracking
837: with_build_warnings
1.182 moko 838: with_coverage
839: with_profiler
1.150 moko 840: with_assertions
841: with_sjlj_exceptions
1.203 moko 842: with_system_cfg
1.150 moko 843: enable_safe_mode
844: enable_execs
845: enable_stringstream
846: with_gc
847: with_pcre
848: with_xml
1.154 moko 849: with_mailreceive
1.232 moko 850: with_amqp
1.239 moko 851: with_redis
1.150 moko 852: with_sendmail
853: with_apache
1.237 moko 854: enable_pic
1.150 moko 855: with_pic
856: enable_shared
857: enable_static
858: enable_fast_install
1.237 moko 859: enable_aix_soname
860: with_aix_soname
1.150 moko 861: with_gnu_ld
862: with_sysroot
863: enable_libtool_lock
864: with_included_ltdl
865: with_ltdl_include
866: with_ltdl_lib
867: enable_ltdl_install
1.171 moko 868: enable_largefile
1.237 moko 869: enable_year2038
1.150 moko 870: '
871: ac_precious_vars='build_alias
872: host_alias
873: target_alias
874: YACC
875: YFLAGS
876: CXX
877: CXXFLAGS
878: LDFLAGS
879: LIBS
880: CPPFLAGS
881: CCC
882: CC
883: CFLAGS
1.237 moko 884: LT_SYS_LIBRARY_PATH
1.150 moko 885: CXXCPP'
886: ac_subdirs_all='src/lib/ltdl'
1.1 paf 887:
888: # Initialize some variables set by options.
1.62 paf 889: ac_init_help=
890: ac_init_version=false
1.150 moko 891: ac_unrecognized_opts=
892: ac_unrecognized_sep=
1.1 paf 893: # The variables have the same names as the options, with
894: # dashes changed to underlines.
1.62 paf 895: cache_file=/dev/null
1.1 paf 896: exec_prefix=NONE
897: no_create=
898: no_recursion=
899: prefix=NONE
900: program_prefix=NONE
901: program_suffix=NONE
902: program_transform_name=s,x,x,
903: silent=
904: site=
905: srcdir=
906: verbose=
907: x_includes=NONE
908: x_libraries=NONE
1.62 paf 909:
910: # Installation directory options.
911: # These are left unexpanded so users can "make install exec_prefix=/foo"
912: # and all the variables that are supposed to be based on exec_prefix
913: # by default will actually change.
914: # Use braces instead of parens because sh, perl, etc. also accept them.
1.150 moko 915: # (The list follows the same order as the GNU Coding Standards.)
1.1 paf 916: bindir='${exec_prefix}/bin'
917: sbindir='${exec_prefix}/sbin'
918: libexecdir='${exec_prefix}/libexec'
1.150 moko 919: datarootdir='${prefix}/share'
920: datadir='${datarootdir}'
1.1 paf 921: sysconfdir='${prefix}/etc'
922: sharedstatedir='${prefix}/com'
923: localstatedir='${prefix}/var'
1.191 moko 924: runstatedir='${localstatedir}/run'
1.1 paf 925: includedir='${prefix}/include'
926: oldincludedir='/usr/include'
1.150 moko 927: docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
928: infodir='${datarootdir}/info'
929: htmldir='${docdir}'
930: dvidir='${docdir}'
931: pdfdir='${docdir}'
932: psdir='${docdir}'
933: libdir='${exec_prefix}/lib'
934: localedir='${datarootdir}/locale'
935: mandir='${datarootdir}/man'
1.1 paf 936:
937: ac_prev=
1.150 moko 938: ac_dashdash=
1.1 paf 939: for ac_option
940: do
941: # If the previous option needs an argument, assign it.
942: if test -n "$ac_prev"; then
1.150 moko 943: eval $ac_prev=\$ac_option
1.1 paf 944: ac_prev=
945: continue
946: fi
947:
1.150 moko 948: case $ac_option in
949: *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
950: *=) ac_optarg= ;;
951: *) ac_optarg=yes ;;
952: esac
1.1 paf 953:
1.150 moko 954: case $ac_dashdash$ac_option in
955: --)
956: ac_dashdash=yes ;;
1.1 paf 957:
958: -bindir | --bindir | --bindi | --bind | --bin | --bi)
959: ac_prev=bindir ;;
960: -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1.62 paf 961: bindir=$ac_optarg ;;
1.1 paf 962:
963: -build | --build | --buil | --bui | --bu)
1.62 paf 964: ac_prev=build_alias ;;
1.1 paf 965: -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1.62 paf 966: build_alias=$ac_optarg ;;
1.1 paf 967:
968: -cache-file | --cache-file | --cache-fil | --cache-fi \
969: | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
970: ac_prev=cache_file ;;
971: -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
972: | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1.62 paf 973: cache_file=$ac_optarg ;;
974:
975: --config-cache | -C)
976: cache_file=config.cache ;;
1.1 paf 977:
1.150 moko 978: -datadir | --datadir | --datadi | --datad)
1.1 paf 979: ac_prev=datadir ;;
1.150 moko 980: -datadir=* | --datadir=* | --datadi=* | --datad=*)
1.62 paf 981: datadir=$ac_optarg ;;
1.1 paf 982:
1.150 moko 983: -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
984: | --dataroo | --dataro | --datar)
985: ac_prev=datarootdir ;;
986: -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
987: | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
988: datarootdir=$ac_optarg ;;
989:
1.1 paf 990: -disable-* | --disable-*)
1.150 moko 991: ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1.1 paf 992: # Reject names that are not valid shell variable names.
1.150 moko 993: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1.237 moko 994: as_fn_error $? "invalid feature name: '$ac_useropt'"
1.150 moko 995: ac_useropt_orig=$ac_useropt
1.237 moko 996: ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1.150 moko 997: case $ac_user_opts in
998: *"
999: "enable_$ac_useropt"
1000: "*) ;;
1001: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1002: ac_unrecognized_sep=', ';;
1003: esac
1004: eval enable_$ac_useropt=no ;;
1005:
1006: -docdir | --docdir | --docdi | --doc | --do)
1007: ac_prev=docdir ;;
1008: -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1009: docdir=$ac_optarg ;;
1010:
1011: -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1012: ac_prev=dvidir ;;
1013: -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1014: dvidir=$ac_optarg ;;
1.1 paf 1015:
1016: -enable-* | --enable-*)
1.150 moko 1017: ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1.1 paf 1018: # Reject names that are not valid shell variable names.
1.150 moko 1019: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1.237 moko 1020: as_fn_error $? "invalid feature name: '$ac_useropt'"
1.150 moko 1021: ac_useropt_orig=$ac_useropt
1.237 moko 1022: ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1.150 moko 1023: case $ac_user_opts in
1024: *"
1025: "enable_$ac_useropt"
1026: "*) ;;
1027: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1028: ac_unrecognized_sep=', ';;
1.1 paf 1029: esac
1.150 moko 1030: eval enable_$ac_useropt=\$ac_optarg ;;
1.1 paf 1031:
1032: -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1033: | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1034: | --exec | --exe | --ex)
1035: ac_prev=exec_prefix ;;
1036: -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1037: | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1038: | --exec=* | --exe=* | --ex=*)
1.62 paf 1039: exec_prefix=$ac_optarg ;;
1.1 paf 1040:
1041: -gas | --gas | --ga | --g)
1042: # Obsolete; use --with-gas.
1043: with_gas=yes ;;
1044:
1.62 paf 1045: -help | --help | --hel | --he | -h)
1046: ac_init_help=long ;;
1047: -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1048: ac_init_help=recursive ;;
1049: -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1050: ac_init_help=short ;;
1.1 paf 1051:
1052: -host | --host | --hos | --ho)
1.62 paf 1053: ac_prev=host_alias ;;
1.1 paf 1054: -host=* | --host=* | --hos=* | --ho=*)
1.62 paf 1055: host_alias=$ac_optarg ;;
1.1 paf 1056:
1.150 moko 1057: -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1058: ac_prev=htmldir ;;
1059: -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1060: | --ht=*)
1061: htmldir=$ac_optarg ;;
1062:
1.1 paf 1063: -includedir | --includedir | --includedi | --included | --include \
1064: | --includ | --inclu | --incl | --inc)
1065: ac_prev=includedir ;;
1066: -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1067: | --includ=* | --inclu=* | --incl=* | --inc=*)
1.62 paf 1068: includedir=$ac_optarg ;;
1.1 paf 1069:
1070: -infodir | --infodir | --infodi | --infod | --info | --inf)
1071: ac_prev=infodir ;;
1072: -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1.62 paf 1073: infodir=$ac_optarg ;;
1.1 paf 1074:
1075: -libdir | --libdir | --libdi | --libd)
1076: ac_prev=libdir ;;
1077: -libdir=* | --libdir=* | --libdi=* | --libd=*)
1.62 paf 1078: libdir=$ac_optarg ;;
1.1 paf 1079:
1080: -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1081: | --libexe | --libex | --libe)
1082: ac_prev=libexecdir ;;
1083: -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1084: | --libexe=* | --libex=* | --libe=*)
1.62 paf 1085: libexecdir=$ac_optarg ;;
1.1 paf 1086:
1.150 moko 1087: -localedir | --localedir | --localedi | --localed | --locale)
1088: ac_prev=localedir ;;
1089: -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1090: localedir=$ac_optarg ;;
1091:
1.1 paf 1092: -localstatedir | --localstatedir | --localstatedi | --localstated \
1.150 moko 1093: | --localstate | --localstat | --localsta | --localst | --locals)
1.1 paf 1094: ac_prev=localstatedir ;;
1095: -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1.150 moko 1096: | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1.62 paf 1097: localstatedir=$ac_optarg ;;
1.1 paf 1098:
1099: -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1100: ac_prev=mandir ;;
1101: -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1.62 paf 1102: mandir=$ac_optarg ;;
1.1 paf 1103:
1104: -nfp | --nfp | --nf)
1105: # Obsolete; use --without-fp.
1106: with_fp=no ;;
1107:
1108: -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1.62 paf 1109: | --no-cr | --no-c | -n)
1.1 paf 1110: no_create=yes ;;
1111:
1112: -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1113: | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1114: no_recursion=yes ;;
1115:
1116: -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1117: | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1118: | --oldin | --oldi | --old | --ol | --o)
1119: ac_prev=oldincludedir ;;
1120: -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1121: | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1122: | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1.62 paf 1123: oldincludedir=$ac_optarg ;;
1.1 paf 1124:
1125: -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1126: ac_prev=prefix ;;
1127: -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1.62 paf 1128: prefix=$ac_optarg ;;
1.1 paf 1129:
1130: -program-prefix | --program-prefix | --program-prefi | --program-pref \
1131: | --program-pre | --program-pr | --program-p)
1132: ac_prev=program_prefix ;;
1133: -program-prefix=* | --program-prefix=* | --program-prefi=* \
1134: | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1.62 paf 1135: program_prefix=$ac_optarg ;;
1.1 paf 1136:
1137: -program-suffix | --program-suffix | --program-suffi | --program-suff \
1138: | --program-suf | --program-su | --program-s)
1139: ac_prev=program_suffix ;;
1140: -program-suffix=* | --program-suffix=* | --program-suffi=* \
1141: | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1.62 paf 1142: program_suffix=$ac_optarg ;;
1.1 paf 1143:
1144: -program-transform-name | --program-transform-name \
1145: | --program-transform-nam | --program-transform-na \
1146: | --program-transform-n | --program-transform- \
1147: | --program-transform | --program-transfor \
1148: | --program-transfo | --program-transf \
1149: | --program-trans | --program-tran \
1150: | --progr-tra | --program-tr | --program-t)
1151: ac_prev=program_transform_name ;;
1152: -program-transform-name=* | --program-transform-name=* \
1153: | --program-transform-nam=* | --program-transform-na=* \
1154: | --program-transform-n=* | --program-transform-=* \
1155: | --program-transform=* | --program-transfor=* \
1156: | --program-transfo=* | --program-transf=* \
1157: | --program-trans=* | --program-tran=* \
1158: | --progr-tra=* | --program-tr=* | --program-t=*)
1.62 paf 1159: program_transform_name=$ac_optarg ;;
1.1 paf 1160:
1.150 moko 1161: -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1162: ac_prev=pdfdir ;;
1163: -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1164: pdfdir=$ac_optarg ;;
1165:
1166: -psdir | --psdir | --psdi | --psd | --ps)
1167: ac_prev=psdir ;;
1168: -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1169: psdir=$ac_optarg ;;
1170:
1.1 paf 1171: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1172: | -silent | --silent | --silen | --sile | --sil)
1173: silent=yes ;;
1174:
1.191 moko 1175: -runstatedir | --runstatedir | --runstatedi | --runstated \
1176: | --runstate | --runstat | --runsta | --runst | --runs \
1177: | --run | --ru | --r)
1178: ac_prev=runstatedir ;;
1179: -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1180: | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1181: | --run=* | --ru=* | --r=*)
1182: runstatedir=$ac_optarg ;;
1183:
1.1 paf 1184: -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1185: ac_prev=sbindir ;;
1186: -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1187: | --sbi=* | --sb=*)
1.62 paf 1188: sbindir=$ac_optarg ;;
1.1 paf 1189:
1190: -sharedstatedir | --sharedstatedir | --sharedstatedi \
1191: | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1192: | --sharedst | --shareds | --shared | --share | --shar \
1193: | --sha | --sh)
1194: ac_prev=sharedstatedir ;;
1195: -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1196: | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1197: | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1198: | --sha=* | --sh=*)
1.62 paf 1199: sharedstatedir=$ac_optarg ;;
1.1 paf 1200:
1201: -site | --site | --sit)
1202: ac_prev=site ;;
1203: -site=* | --site=* | --sit=*)
1.62 paf 1204: site=$ac_optarg ;;
1.1 paf 1205:
1206: -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1207: ac_prev=srcdir ;;
1208: -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1.62 paf 1209: srcdir=$ac_optarg ;;
1.1 paf 1210:
1211: -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1212: | --syscon | --sysco | --sysc | --sys | --sy)
1213: ac_prev=sysconfdir ;;
1214: -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1215: | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1.62 paf 1216: sysconfdir=$ac_optarg ;;
1.1 paf 1217:
1218: -target | --target | --targe | --targ | --tar | --ta | --t)
1.62 paf 1219: ac_prev=target_alias ;;
1.1 paf 1220: -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1.62 paf 1221: target_alias=$ac_optarg ;;
1.1 paf 1222:
1223: -v | -verbose | --verbose | --verbos | --verbo | --verb)
1224: verbose=yes ;;
1225:
1.62 paf 1226: -version | --version | --versio | --versi | --vers | -V)
1227: ac_init_version=: ;;
1.1 paf 1228:
1229: -with-* | --with-*)
1.150 moko 1230: ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1.1 paf 1231: # Reject names that are not valid shell variable names.
1.150 moko 1232: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1.237 moko 1233: as_fn_error $? "invalid package name: '$ac_useropt'"
1.150 moko 1234: ac_useropt_orig=$ac_useropt
1.237 moko 1235: ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1.150 moko 1236: case $ac_user_opts in
1237: *"
1238: "with_$ac_useropt"
1239: "*) ;;
1240: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1241: ac_unrecognized_sep=', ';;
1.1 paf 1242: esac
1.150 moko 1243: eval with_$ac_useropt=\$ac_optarg ;;
1.1 paf 1244:
1245: -without-* | --without-*)
1.150 moko 1246: ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1.1 paf 1247: # Reject names that are not valid shell variable names.
1.150 moko 1248: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1.237 moko 1249: as_fn_error $? "invalid package name: '$ac_useropt'"
1.150 moko 1250: ac_useropt_orig=$ac_useropt
1.237 moko 1251: ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1.150 moko 1252: case $ac_user_opts in
1253: *"
1254: "with_$ac_useropt"
1255: "*) ;;
1256: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1257: ac_unrecognized_sep=', ';;
1258: esac
1259: eval with_$ac_useropt=no ;;
1.1 paf 1260:
1261: --x)
1262: # Obsolete; use --with-x.
1263: with_x=yes ;;
1264:
1265: -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1266: | --x-incl | --x-inc | --x-in | --x-i)
1267: ac_prev=x_includes ;;
1268: -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1269: | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1.62 paf 1270: x_includes=$ac_optarg ;;
1.1 paf 1271:
1272: -x-libraries | --x-libraries | --x-librarie | --x-librari \
1273: | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1274: ac_prev=x_libraries ;;
1275: -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1276: | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1.62 paf 1277: x_libraries=$ac_optarg ;;
1.1 paf 1278:
1.237 moko 1279: -*) as_fn_error $? "unrecognized option: '$ac_option'
1280: Try '$0 --help' for more information"
1.1 paf 1281: ;;
1282:
1.62 paf 1283: *=*)
1284: ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1285: # Reject names that are not valid shell variable names.
1.150 moko 1286: case $ac_envvar in #(
1287: '' | [0-9]* | *[!_$as_cr_alnum]* )
1.237 moko 1288: as_fn_error $? "invalid variable name: '$ac_envvar'" ;;
1.150 moko 1289: esac
1290: eval $ac_envvar=\$ac_optarg
1.62 paf 1291: export $ac_envvar ;;
1292:
1.1 paf 1293: *)
1.62 paf 1294: # FIXME: should be removed in autoconf 3.0.
1.237 moko 1295: printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1.62 paf 1296: expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1.237 moko 1297: printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1.150 moko 1298: : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1.1 paf 1299: ;;
1300:
1301: esac
1302: done
1303:
1304: if test -n "$ac_prev"; then
1.62 paf 1305: ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1.150 moko 1306: as_fn_error $? "missing argument to $ac_option"
1.1 paf 1307: fi
1308:
1.150 moko 1309: if test -n "$ac_unrecognized_opts"; then
1310: case $enable_option_checking in
1311: no) ;;
1312: fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1.237 moko 1313: *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1.150 moko 1314: esac
1315: fi
1316:
1317: # Check all directory arguments for consistency.
1318: for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1319: datadir sysconfdir sharedstatedir localstatedir includedir \
1320: oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1.191 moko 1321: libdir localedir mandir runstatedir
1.62 paf 1322: do
1.150 moko 1323: eval ac_val=\$$ac_var
1324: # Remove trailing slashes.
1.62 paf 1325: case $ac_val in
1.150 moko 1326: */ )
1327: ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1328: eval $ac_var=\$ac_val;;
1.62 paf 1329: esac
1.150 moko 1330: # Be sure to have absolute directory names.
1.62 paf 1331: case $ac_val in
1.150 moko 1332: [\\/$]* | ?:[\\/]* ) continue;;
1333: NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1.1 paf 1334: esac
1.150 moko 1335: as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1.1 paf 1336: done
1337:
1.237 moko 1338: # There might be people who depend on the old broken behavior: '$host'
1.62 paf 1339: # used to hold the argument of --host etc.
1340: # FIXME: To remove some day.
1341: build=$build_alias
1342: host=$host_alias
1343: target=$target_alias
1344:
1345: # FIXME: To remove some day.
1346: if test "x$host_alias" != x; then
1347: if test "x$build_alias" = x; then
1348: cross_compiling=maybe
1349: elif test "x$build_alias" != "x$host_alias"; then
1350: cross_compiling=yes
1351: fi
1352: fi
1353:
1354: ac_tool_prefix=
1355: test -n "$host_alias" && ac_tool_prefix=$host_alias-
1.1 paf 1356:
1.62 paf 1357: test "$silent" = yes && exec 6>/dev/null
1.1 paf 1358:
1359:
1.150 moko 1360: ac_pwd=`pwd` && test -n "$ac_pwd" &&
1361: ac_ls_di=`ls -di .` &&
1362: ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1363: as_fn_error $? "working directory cannot be determined"
1364: test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1365: as_fn_error $? "pwd does not report name of working directory"
1366:
1367:
1.1 paf 1368: # Find the source files, if location was not specified.
1369: if test -z "$srcdir"; then
1370: ac_srcdir_defaulted=yes
1.150 moko 1371: # Try the directory containing this script, then the parent directory.
1372: ac_confdir=`$as_dirname -- "$as_myself" ||
1373: $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1374: X"$as_myself" : 'X\(//\)[^/]' \| \
1375: X"$as_myself" : 'X\(//\)$' \| \
1376: X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1.237 moko 1377: printf "%s\n" X"$as_myself" |
1.150 moko 1378: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1379: s//\1/
1380: q
1381: }
1382: /^X\(\/\/\)[^/].*/{
1383: s//\1/
1384: q
1385: }
1386: /^X\(\/\/\)$/{
1387: s//\1/
1388: q
1389: }
1390: /^X\(\/\).*/{
1391: s//\1/
1392: q
1393: }
1394: s/.*/./; q'`
1.1 paf 1395: srcdir=$ac_confdir
1.150 moko 1396: if test ! -r "$srcdir/$ac_unique_file"; then
1.1 paf 1397: srcdir=..
1398: fi
1399: else
1400: ac_srcdir_defaulted=no
1401: fi
1.150 moko 1402: if test ! -r "$srcdir/$ac_unique_file"; then
1403: test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1404: as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1405: fi
1.237 moko 1406: ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work"
1.150 moko 1407: ac_abs_confdir=`(
1408: cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1409: pwd)`
1410: # When building in place, set srcdir=.
1411: if test "$ac_abs_confdir" = "$ac_pwd"; then
1412: srcdir=.
1413: fi
1414: # Remove unnecessary trailing slashes from srcdir.
1415: # Double slashes in file names in object file debugging info
1416: # mess up M-x gdb in Emacs.
1417: case $srcdir in
1418: */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1419: esac
1420: for ac_var in $ac_precious_vars; do
1421: eval ac_env_${ac_var}_set=\${${ac_var}+set}
1422: eval ac_env_${ac_var}_value=\$${ac_var}
1423: eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1424: eval ac_cv_env_${ac_var}_value=\$${ac_var}
1425: done
1.62 paf 1426:
1427: #
1428: # Report the --help message.
1429: #
1430: if test "$ac_init_help" = "long"; then
1431: # Omit some internal or obsolete options to make the list less imposing.
1432: # This message is too long to be a string in the A/UX 3.1 sh.
1433: cat <<_ACEOF
1.237 moko 1434: 'configure' configures parser 3.5.2b to adapt to many kinds of systems.
1.62 paf 1435:
1436: Usage: $0 [OPTION]... [VAR=VALUE]...
1437:
1438: To assign environment variables (e.g., CC, CFLAGS...), specify them as
1439: VAR=VALUE. See below for descriptions of some of the useful variables.
1440:
1441: Defaults for the options are specified in brackets.
1442:
1443: Configuration:
1444: -h, --help display this help and exit
1445: --help=short display options specific to this package
1446: --help=recursive display the short help of all the included packages
1447: -V, --version display version information and exit
1.237 moko 1448: -q, --quiet, --silent do not print 'checking ...' messages
1.62 paf 1449: --cache-file=FILE cache test results in FILE [disabled]
1.237 moko 1450: -C, --config-cache alias for '--cache-file=config.cache'
1.62 paf 1451: -n, --no-create do not create output files
1.237 moko 1452: --srcdir=DIR find the sources in DIR [configure dir or '..']
1.62 paf 1453:
1454: Installation directories:
1455: --prefix=PREFIX install architecture-independent files in PREFIX
1.150 moko 1456: [$ac_default_prefix]
1.62 paf 1457: --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1.150 moko 1458: [PREFIX]
1.62 paf 1459:
1.237 moko 1460: By default, 'make install' will install all the files in
1461: '$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify
1462: an installation prefix other than '$ac_default_prefix' using '--prefix',
1463: for instance '--prefix=\$HOME'.
1.62 paf 1464:
1465: For better control, use the options below.
1466:
1467: Fine tuning of the installation directories:
1.150 moko 1468: --bindir=DIR user executables [EPREFIX/bin]
1469: --sbindir=DIR system admin executables [EPREFIX/sbin]
1470: --libexecdir=DIR program executables [EPREFIX/libexec]
1471: --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1472: --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1473: --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1.191 moko 1474: --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1.150 moko 1475: --libdir=DIR object code libraries [EPREFIX/lib]
1476: --includedir=DIR C header files [PREFIX/include]
1477: --oldincludedir=DIR C header files for non-gcc [/usr/include]
1478: --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1479: --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1480: --infodir=DIR info documentation [DATAROOTDIR/info]
1481: --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1482: --mandir=DIR man documentation [DATAROOTDIR/man]
1483: --docdir=DIR documentation root [DATAROOTDIR/doc/parser]
1484: --htmldir=DIR html documentation [DOCDIR]
1485: --dvidir=DIR dvi documentation [DOCDIR]
1486: --pdfdir=DIR pdf documentation [DOCDIR]
1487: --psdir=DIR ps documentation [DOCDIR]
1.62 paf 1488: _ACEOF
1489:
1490: cat <<\_ACEOF
1491:
1492: Program names:
1493: --program-prefix=PREFIX prepend PREFIX to installed program names
1494: --program-suffix=SUFFIX append SUFFIX to installed program names
1495: --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1496:
1497: System types:
1498: --build=BUILD configure for building on BUILD [guessed]
1499: --host=HOST cross-compile to build programs to run on HOST [BUILD]
1500: _ACEOF
1501: fi
1502:
1503: if test -n "$ac_init_help"; then
1.128 moko 1504: case $ac_init_help in
1.230 moko 1505: short | recursive ) echo "Configuration of parser 3.5.2b:";;
1.128 moko 1506: esac
1.62 paf 1507: cat <<\_ACEOF
1508:
1509: Optional Features:
1.150 moko 1510: --disable-option-checking ignore unrecognized --enable/--with options
1.62 paf 1511: --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1512: --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1.187 moko 1513: --enable-silent-rules less verbose build output (undo: "make V=1")
1514: --disable-silent-rules verbose build output (undo: "make V=0")
1515: --enable-dependency-tracking
1516: do not reject slow dependency extractors
1517: --disable-dependency-tracking
1518: speeds up one-time build
1.67 paf 1519: --disable-safe-mode to enable reading and executing
1.62 paf 1520: files belonging to group+user other then effective
1.146 moko 1521: --disable-execs to disable any execs
1.62 paf 1522: (file::exec, file::cgi, unix mail:send)
1.195 moko 1523: --disable-stringstream to disable stringstream usage.
1524: when disabled table.save uses more memory, but more compilers are supported
1.237 moko 1525: --enable-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1526: both]
1.150 moko 1527: --enable-shared[=PKGS] build shared libraries [default=yes]
1528: --enable-static[=PKGS] build static libraries [default=yes]
1.128 moko 1529: --enable-fast-install[=PKGS]
1530: optimize for fast installation [default=yes]
1.237 moko 1531: --enable-aix-soname=aix|svr4|both
1532: shared library versioning (aka "SONAME") variant to
1533: provide on AIX, [default=aix].
1.128 moko 1534: --disable-libtool-lock avoid locking (might break parallel builds)
1535: --enable-ltdl-install install libltdl
1.171 moko 1536: --disable-largefile omit support for large files
1.237 moko 1537: --enable-year2038 support timestamps after 2038
1.62 paf 1538:
1539: Optional Packages:
1540: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1541: --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1.71 paf 1542: --with-build-warnings to enable build-time compiler warnings if gcc is used
1.185 moko 1543: --with-coverage to enable gcov code coverage support
1544: --with-profiler to enable gprof code profiler support
1.67 paf 1545: --with-assertions to enable assertions
1.201 moko 1546: --with-sjlj-exceptions to enable simple 'throw' from dynamic library
1547: --with-system-cfg=FILE to specify system-wide auto.p
1548: --with-gc=DIR DIR is the directory where
1.142 moko 1549: Boehm garbage collecting library is installed
1.201 moko 1550: --with-pcre=DIR DIR is the directory where
1.142 moko 1551: PCRE library is installed
1.201 moko 1552: --with-xml=DIR DIR is the directory where
1.142 moko 1553: Gnome XML libraries are installed
1.201 moko 1554: --with-mailreceive=DIR is the directory where
1.154 moko 1555: Gnome MIME library is installed
1.232 moko 1556: --with-amqp=DIR DIR is the directory where
1557: RabbitMQ C library (librabbitmq) is installed
1.239 moko 1558: --with-redis=DIR DIR is the directory where
1559: Redis C library (hiredis) is installed
1.62 paf 1560: \"--with-sendmail=COMMAND\" forces this command to send mail.
1561: example: \"--with-sendmail=/usr/sbin/sendmail -t\"
1562: (makes parser ignore user-defined sendmail commands)
1.146 moko 1563: --with-apache=FILE FILE is the full path for APXS
1.122 moko 1564: builds apache DSO module using apxs
1.128 moko 1565: --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1.237 moko 1566: --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1567: compiler's sysroot if not specified).
1.128 moko 1568: --with-included-ltdl use the GNU ltdl sources included here
1569: --with-ltdl-include=DIR use the ltdl headers installed in DIR
1570: --with-ltdl-lib=DIR use the libltdl.la installed in DIR
1.62 paf 1571:
1572: Some influential environment variables:
1.237 moko 1573: YACC The 'Yet Another Compiler Compiler' implementation to use.
1574: Defaults to the first program found out of: 'bison -y', 'byacc',
1575: 'yacc'.
1.150 moko 1576: YFLAGS The list of arguments that will be passed by default to $YACC.
1577: This script will default YFLAGS to the empty string to avoid a
1.237 moko 1578: default value of '-d' given by some make applications.
1.66 paf 1579: CXX C++ compiler command
1580: CXXFLAGS C++ compiler flags
1.62 paf 1581: LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1582: nonstandard directory <lib dir>
1.150 moko 1583: LIBS libraries to pass to the linker, e.g. -l<library>
1584: CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1585: you have headers in a nonstandard directory <include dir>
1.66 paf 1586: CC C compiler command
1587: CFLAGS C compiler flags
1.237 moko 1588: LT_SYS_LIBRARY_PATH
1589: User-defined run-time library search path.
1.128 moko 1590: CXXCPP C++ preprocessor
1.62 paf 1591:
1.237 moko 1592: Use these variables to override the choices made by 'configure' or to help
1.62 paf 1593: it to find libraries and programs with nonstandard names/locations.
1594:
1.150 moko 1595: Report bugs to the package provider.
1.62 paf 1596: _ACEOF
1.150 moko 1597: ac_status=$?
1.62 paf 1598: fi
1599:
1600: if test "$ac_init_help" = "recursive"; then
1601: # If there are subdirs, report their specific --help.
1602: for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1.150 moko 1603: test -d "$ac_dir" ||
1604: { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1605: continue
1.62 paf 1606: ac_builddir=.
1607:
1.150 moko 1608: case "$ac_dir" in
1609: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1610: *)
1.237 moko 1611: ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1.150 moko 1612: # A ".." for each directory in $ac_dir_suffix.
1.237 moko 1613: ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1.150 moko 1614: case $ac_top_builddir_sub in
1615: "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1616: *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1617: esac ;;
1618: esac
1619: ac_abs_top_builddir=$ac_pwd
1620: ac_abs_builddir=$ac_pwd$ac_dir_suffix
1621: # for backward compatibility:
1622: ac_top_builddir=$ac_top_build_prefix
1.62 paf 1623:
1624: case $srcdir in
1.150 moko 1625: .) # We are building in place.
1.62 paf 1626: ac_srcdir=.
1.150 moko 1627: ac_top_srcdir=$ac_top_builddir_sub
1628: ac_abs_top_srcdir=$ac_pwd ;;
1629: [\\/]* | ?:[\\/]* ) # Absolute name.
1.62 paf 1630: ac_srcdir=$srcdir$ac_dir_suffix;
1.150 moko 1631: ac_top_srcdir=$srcdir
1632: ac_abs_top_srcdir=$srcdir ;;
1633: *) # Relative name.
1634: ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1635: ac_top_srcdir=$ac_top_build_prefix$srcdir
1636: ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1.86 paf 1637: esac
1.150 moko 1638: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1.62 paf 1639:
1.150 moko 1640: cd "$ac_dir" || { ac_status=$?; continue; }
1.237 moko 1641: # Check for configure.gnu first; this name is used for a wrapper for
1642: # Metaconfig's "Configure" on case-insensitive file systems.
1.150 moko 1643: if test -f "$ac_srcdir/configure.gnu"; then
1644: echo &&
1645: $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1646: elif test -f "$ac_srcdir/configure"; then
1647: echo &&
1648: $SHELL "$ac_srcdir/configure" --help=recursive
1.62 paf 1649: else
1.237 moko 1650: printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1.150 moko 1651: fi || ac_status=$?
1652: cd "$ac_pwd" || { ac_status=$?; break; }
1.62 paf 1653: done
1654: fi
1655:
1.150 moko 1656: test -n "$ac_init_help" && exit $ac_status
1.62 paf 1657: if $ac_init_version; then
1658: cat <<\_ACEOF
1.230 moko 1659: parser configure 3.5.2b
1.237 moko 1660: generated by GNU Autoconf 2.72
1.62 paf 1661:
1.237 moko 1662: Copyright (C) 2023 Free Software Foundation, Inc.
1.62 paf 1663: This configure script is free software; the Free Software Foundation
1664: gives unlimited permission to copy, distribute and modify it.
1665: _ACEOF
1.150 moko 1666: exit
1.62 paf 1667: fi
1668:
1.150 moko 1669: ## ------------------------ ##
1670: ## Autoconf initialization. ##
1671: ## ------------------------ ##
1672:
1673: # ac_fn_cxx_try_compile LINENO
1674: # ----------------------------
1675: # Try to compile conftest.$ac_ext, and return whether this succeeded.
1676: ac_fn_cxx_try_compile ()
1.62 paf 1677: {
1.150 moko 1678: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1.237 moko 1679: rm -f conftest.$ac_objext conftest.beam
1.150 moko 1680: if { { ac_try="$ac_compile"
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\""
1.237 moko 1686: printf "%s\n" "$ac_try_echo"; } >&5
1.150 moko 1687: (eval "$ac_compile") 2>conftest.err
1688: ac_status=$?
1689: if test -s conftest.err; then
1690: grep -v '^ *+' conftest.err >conftest.er1
1691: cat conftest.er1 >&5
1692: mv -f conftest.er1 conftest.err
1693: fi
1.237 moko 1694: printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1.150 moko 1695: test $ac_status = 0; } && {
1696: test -z "$ac_cxx_werror_flag" ||
1697: test ! -s conftest.err
1.237 moko 1698: } && test -s conftest.$ac_objext
1699: then :
1.150 moko 1700: ac_retval=0
1.237 moko 1701: else case e in #(
1702: e) printf "%s\n" "$as_me: failed program was:" >&5
1.150 moko 1703: sed 's/^/| /' conftest.$ac_ext >&5
1.62 paf 1704:
1.237 moko 1705: ac_retval=1 ;;
1706: esac
1.150 moko 1707: fi
1708: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1709: as_fn_set_status $ac_retval
1.62 paf 1710:
1.150 moko 1711: } # ac_fn_cxx_try_compile
1712:
1713: # ac_fn_c_try_compile LINENO
1714: # --------------------------
1715: # Try to compile conftest.$ac_ext, and return whether this succeeded.
1716: ac_fn_c_try_compile ()
1717: {
1718: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1.237 moko 1719: rm -f conftest.$ac_objext conftest.beam
1.150 moko 1720: if { { ac_try="$ac_compile"
1721: case "(($ac_try" in
1722: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1723: *) ac_try_echo=$ac_try;;
1724: esac
1725: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1.237 moko 1726: printf "%s\n" "$ac_try_echo"; } >&5
1.150 moko 1727: (eval "$ac_compile") 2>conftest.err
1728: ac_status=$?
1729: if test -s conftest.err; then
1730: grep -v '^ *+' conftest.err >conftest.er1
1731: cat conftest.er1 >&5
1732: mv -f conftest.er1 conftest.err
1733: fi
1.237 moko 1734: printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1.150 moko 1735: test $ac_status = 0; } && {
1736: test -z "$ac_c_werror_flag" ||
1737: test ! -s conftest.err
1.237 moko 1738: } && test -s conftest.$ac_objext
1739: then :
1.150 moko 1740: ac_retval=0
1.237 moko 1741: else case e in #(
1742: e) printf "%s\n" "$as_me: failed program was:" >&5
1.150 moko 1743: sed 's/^/| /' conftest.$ac_ext >&5
1744:
1.237 moko 1745: ac_retval=1 ;;
1746: esac
1.150 moko 1747: fi
1748: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1749: as_fn_set_status $ac_retval
1750:
1751: } # ac_fn_c_try_compile
1752:
1753: # ac_fn_c_try_link LINENO
1754: # -----------------------
1755: # Try to link conftest.$ac_ext, and return whether this succeeded.
1756: ac_fn_c_try_link ()
1757: {
1758: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1.237 moko 1759: rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1.150 moko 1760: if { { ac_try="$ac_link"
1761: case "(($ac_try" in
1762: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1763: *) ac_try_echo=$ac_try;;
1764: esac
1765: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1.237 moko 1766: printf "%s\n" "$ac_try_echo"; } >&5
1.150 moko 1767: (eval "$ac_link") 2>conftest.err
1768: ac_status=$?
1769: if test -s conftest.err; then
1770: grep -v '^ *+' conftest.err >conftest.er1
1771: cat conftest.er1 >&5
1772: mv -f conftest.er1 conftest.err
1773: fi
1.237 moko 1774: printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1.150 moko 1775: test $ac_status = 0; } && {
1776: test -z "$ac_c_werror_flag" ||
1777: test ! -s conftest.err
1778: } && test -s conftest$ac_exeext && {
1779: test "$cross_compiling" = yes ||
1.166 moko 1780: test -x conftest$ac_exeext
1.237 moko 1781: }
1782: then :
1.150 moko 1783: ac_retval=0
1.237 moko 1784: else case e in #(
1785: e) printf "%s\n" "$as_me: failed program was:" >&5
1.150 moko 1786: sed 's/^/| /' conftest.$ac_ext >&5
1787:
1.237 moko 1788: ac_retval=1 ;;
1789: esac
1.150 moko 1790: fi
1791: # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1792: # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1793: # interfere with the next link command; also delete a directory that is
1794: # left behind by Apple's compiler. We do this before executing the actions.
1795: rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1796: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1797: as_fn_set_status $ac_retval
1798:
1799: } # ac_fn_c_try_link
1800:
1801: # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1802: # -------------------------------------------------------
1803: # Tests whether HEADER exists and can be compiled using the include files in
1804: # INCLUDES, setting the cache variable VAR accordingly.
1805: ac_fn_c_check_header_compile ()
1806: {
1807: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1.237 moko 1808: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1809: printf %s "checking for $2... " >&6; }
1810: if eval test \${$3+y}
1811: then :
1812: printf %s "(cached) " >&6
1813: else case e in #(
1814: e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.150 moko 1815: /* end confdefs.h. */
1816: $4
1817: #include <$2>
1818: _ACEOF
1.237 moko 1819: if ac_fn_c_try_compile "$LINENO"
1820: then :
1.150 moko 1821: eval "$3=yes"
1.237 moko 1822: else case e in #(
1823: e) eval "$3=no" ;;
1824: esac
1.150 moko 1825: fi
1.237 moko 1826: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1827: esac
1.150 moko 1828: fi
1829: eval ac_res=\$$3
1.237 moko 1830: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1831: printf "%s\n" "$ac_res" >&6; }
1.150 moko 1832: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1833:
1834: } # ac_fn_c_check_header_compile
1835:
1836: # ac_fn_c_check_func LINENO FUNC VAR
1837: # ----------------------------------
1838: # Tests whether FUNC exists, setting the cache variable VAR accordingly
1839: ac_fn_c_check_func ()
1840: {
1841: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1.237 moko 1842: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1843: printf %s "checking for $2... " >&6; }
1844: if eval test \${$3+y}
1845: then :
1846: printf %s "(cached) " >&6
1847: else case e in #(
1848: e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.150 moko 1849: /* end confdefs.h. */
1850: /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1851: For example, HP-UX 11i <limits.h> declares gettimeofday. */
1852: #define $2 innocuous_$2
1853:
1854: /* System header to define __stub macros and hopefully few prototypes,
1.237 moko 1855: which can conflict with char $2 (void); below. */
1.150 moko 1856:
1.237 moko 1857: #include <limits.h>
1.150 moko 1858: #undef $2
1859:
1860: /* Override any GCC internal prototype to avoid an error.
1861: Use char because int might match the return type of a GCC
1862: builtin and then its argument prototype would still apply. */
1863: #ifdef __cplusplus
1864: extern "C"
1865: #endif
1.237 moko 1866: char $2 (void);
1.150 moko 1867: /* The GNU C library defines this for functions which it implements
1868: to always fail with ENOSYS. Some functions are actually named
1869: something starting with __ and the normal name is an alias. */
1870: #if defined __stub_$2 || defined __stub___$2
1871: choke me
1872: #endif
1873:
1874: int
1.237 moko 1875: main (void)
1.150 moko 1876: {
1877: return $2 ();
1878: ;
1879: return 0;
1880: }
1881: _ACEOF
1.237 moko 1882: if ac_fn_c_try_link "$LINENO"
1883: then :
1.150 moko 1884: eval "$3=yes"
1.237 moko 1885: else case e in #(
1886: e) eval "$3=no" ;;
1887: esac
1.150 moko 1888: fi
1.237 moko 1889: rm -f core conftest.err conftest.$ac_objext conftest.beam \
1890: conftest$ac_exeext conftest.$ac_ext ;;
1891: esac
1.150 moko 1892: fi
1893: eval ac_res=\$$3
1.237 moko 1894: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1895: printf "%s\n" "$ac_res" >&6; }
1.150 moko 1896: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1897:
1898: } # ac_fn_c_check_func
1899:
1900: # ac_fn_cxx_try_cpp LINENO
1901: # ------------------------
1902: # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1903: ac_fn_cxx_try_cpp ()
1904: {
1905: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1906: if { { ac_try="$ac_cpp conftest.$ac_ext"
1907: case "(($ac_try" in
1908: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1909: *) ac_try_echo=$ac_try;;
1910: esac
1911: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1.237 moko 1912: printf "%s\n" "$ac_try_echo"; } >&5
1.150 moko 1913: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1914: ac_status=$?
1915: if test -s conftest.err; then
1916: grep -v '^ *+' conftest.err >conftest.er1
1917: cat conftest.er1 >&5
1918: mv -f conftest.er1 conftest.err
1919: fi
1.237 moko 1920: printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1.150 moko 1921: test $ac_status = 0; } > conftest.i && {
1922: test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1923: test ! -s conftest.err
1.237 moko 1924: }
1925: then :
1.150 moko 1926: ac_retval=0
1.237 moko 1927: else case e in #(
1928: e) printf "%s\n" "$as_me: failed program was:" >&5
1.150 moko 1929: sed 's/^/| /' conftest.$ac_ext >&5
1930:
1.237 moko 1931: ac_retval=1 ;;
1932: esac
1.150 moko 1933: fi
1934: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1935: as_fn_set_status $ac_retval
1936:
1937: } # ac_fn_cxx_try_cpp
1938:
1939: # ac_fn_cxx_try_link LINENO
1940: # -------------------------
1941: # Try to link conftest.$ac_ext, and return whether this succeeded.
1942: ac_fn_cxx_try_link ()
1943: {
1944: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1.237 moko 1945: rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1.150 moko 1946: if { { ac_try="$ac_link"
1947: case "(($ac_try" in
1948: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1949: *) ac_try_echo=$ac_try;;
1950: esac
1951: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1.237 moko 1952: printf "%s\n" "$ac_try_echo"; } >&5
1.150 moko 1953: (eval "$ac_link") 2>conftest.err
1954: ac_status=$?
1955: if test -s conftest.err; then
1956: grep -v '^ *+' conftest.err >conftest.er1
1957: cat conftest.er1 >&5
1958: mv -f conftest.er1 conftest.err
1959: fi
1.237 moko 1960: printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1.150 moko 1961: test $ac_status = 0; } && {
1962: test -z "$ac_cxx_werror_flag" ||
1963: test ! -s conftest.err
1964: } && test -s conftest$ac_exeext && {
1965: test "$cross_compiling" = yes ||
1.166 moko 1966: test -x conftest$ac_exeext
1.237 moko 1967: }
1968: then :
1.150 moko 1969: ac_retval=0
1.237 moko 1970: else case e in #(
1971: e) printf "%s\n" "$as_me: failed program was:" >&5
1.150 moko 1972: sed 's/^/| /' conftest.$ac_ext >&5
1973:
1.237 moko 1974: ac_retval=1 ;;
1975: esac
1.150 moko 1976: fi
1977: # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1978: # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1979: # interfere with the next link command; also delete a directory that is
1980: # left behind by Apple's compiler. We do this before executing the actions.
1981: rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1982: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1983: as_fn_set_status $ac_retval
1984:
1985: } # ac_fn_cxx_try_link
1986:
1.237 moko 1987: # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
1988: # ------------------------------------------------------------------
1.150 moko 1989: # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1.237 moko 1990: # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
1991: ac_fn_check_decl ()
1.150 moko 1992: {
1993: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1994: as_decl_name=`echo $2|sed 's/ *(.*//'`
1.237 moko 1995: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1996: printf %s "checking whether $as_decl_name is declared... " >&6; }
1997: if eval test \${$3+y}
1998: then :
1999: printf %s "(cached) " >&6
2000: else case e in #(
2001: e) as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2002: eval ac_save_FLAGS=\$$6
2003: as_fn_append $6 " $5"
1.150 moko 2004: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2005: /* end confdefs.h. */
2006: $4
2007: int
1.237 moko 2008: main (void)
1.150 moko 2009: {
2010: #ifndef $as_decl_name
2011: #ifdef __cplusplus
2012: (void) $as_decl_use;
2013: #else
2014: (void) $as_decl_name;
2015: #endif
2016: #endif
2017:
2018: ;
2019: return 0;
2020: }
2021: _ACEOF
1.237 moko 2022: if ac_fn_c_try_compile "$LINENO"
2023: then :
1.150 moko 2024: eval "$3=yes"
1.237 moko 2025: else case e in #(
2026: e) eval "$3=no" ;;
2027: esac
1.150 moko 2028: fi
1.237 moko 2029: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2030: eval $6=\$ac_save_FLAGS
2031: ;;
2032: esac
1.150 moko 2033: fi
2034: eval ac_res=\$$3
1.237 moko 2035: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2036: printf "%s\n" "$ac_res" >&6; }
1.150 moko 2037: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2038:
1.237 moko 2039: } # ac_fn_check_decl
1.150 moko 2040:
2041: # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2042: # -------------------------------------------
2043: # Tests whether TYPE exists after having included INCLUDES, setting cache
2044: # variable VAR accordingly.
2045: ac_fn_c_check_type ()
2046: {
2047: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1.237 moko 2048: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2049: printf %s "checking for $2... " >&6; }
2050: if eval test \${$3+y}
2051: then :
2052: printf %s "(cached) " >&6
2053: else case e in #(
2054: e) eval "$3=no"
1.150 moko 2055: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2056: /* end confdefs.h. */
2057: $4
2058: int
1.237 moko 2059: main (void)
1.150 moko 2060: {
2061: if (sizeof ($2))
2062: return 0;
2063: ;
2064: return 0;
2065: }
2066: _ACEOF
1.237 moko 2067: if ac_fn_c_try_compile "$LINENO"
2068: then :
1.150 moko 2069: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2070: /* end confdefs.h. */
2071: $4
2072: int
1.237 moko 2073: main (void)
1.150 moko 2074: {
2075: if (sizeof (($2)))
2076: return 0;
2077: ;
2078: return 0;
2079: }
2080: _ACEOF
1.237 moko 2081: if ac_fn_c_try_compile "$LINENO"
2082: then :
1.150 moko 2083:
1.237 moko 2084: else case e in #(
2085: e) eval "$3=yes" ;;
2086: esac
1.150 moko 2087: fi
1.237 moko 2088: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1.150 moko 2089: fi
1.237 moko 2090: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
2091: esac
1.150 moko 2092: fi
2093: eval ac_res=\$$3
1.237 moko 2094: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2095: printf "%s\n" "$ac_res" >&6; }
1.150 moko 2096: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2097:
2098: } # ac_fn_c_check_type
2099:
1.237 moko 2100: # ac_fn_c_try_run LINENO
2101: # ----------------------
2102: # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
2103: # executables *can* be run.
2104: ac_fn_c_try_run ()
2105: {
2106: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2107: if { { ac_try="$ac_link"
2108: case "(($ac_try" in
2109: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2110: *) ac_try_echo=$ac_try;;
2111: esac
2112: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2113: printf "%s\n" "$ac_try_echo"; } >&5
2114: (eval "$ac_link") 2>&5
2115: ac_status=$?
2116: printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2117: test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2118: { { case "(($ac_try" in
2119: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2120: *) ac_try_echo=$ac_try;;
2121: esac
2122: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2123: printf "%s\n" "$ac_try_echo"; } >&5
2124: (eval "$ac_try") 2>&5
2125: ac_status=$?
2126: printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2127: test $ac_status = 0; }; }
2128: then :
2129: ac_retval=0
2130: else case e in #(
2131: e) printf "%s\n" "$as_me: program exited with status $ac_status" >&5
2132: printf "%s\n" "$as_me: failed program was:" >&5
2133: sed 's/^/| /' conftest.$ac_ext >&5
2134:
2135: ac_retval=$ac_status ;;
2136: esac
2137: fi
2138: rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2139: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2140: as_fn_set_status $ac_retval
2141:
2142: } # ac_fn_c_try_run
2143:
1.156 moko 2144: # ac_fn_c_find_uintX_t LINENO BITS VAR
2145: # ------------------------------------
2146: # Finds an unsigned integer type with width BITS, setting cache variable VAR
2147: # accordingly.
2148: ac_fn_c_find_uintX_t ()
2149: {
2150: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1.237 moko 2151: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2152: printf %s "checking for uint$2_t... " >&6; }
2153: if eval test \${$3+y}
2154: then :
2155: printf %s "(cached) " >&6
2156: else case e in #(
2157: e) eval "$3=no"
1.156 moko 2158: # Order is important - never check a type that is potentially smaller
2159: # than half of the expected target width.
2160: for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2161: 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2162: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2163: /* end confdefs.h. */
2164: $ac_includes_default
2165: int
1.237 moko 2166: main (void)
1.156 moko 2167: {
2168: static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
1.166 moko 2169: test_array [0] = 0;
2170: return test_array [0];
1.156 moko 2171:
2172: ;
2173: return 0;
2174: }
2175: _ACEOF
1.237 moko 2176: if ac_fn_c_try_compile "$LINENO"
2177: then :
1.156 moko 2178: case $ac_type in #(
2179: uint$2_t) :
2180: eval "$3=yes" ;; #(
2181: *) :
2182: eval "$3=\$ac_type" ;;
2183: esac
2184: fi
1.237 moko 2185: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2186: if eval test \"x\$"$3"\" = x"no"
2187: then :
1.156 moko 2188:
1.237 moko 2189: else case e in #(
2190: e) break ;;
2191: esac
1.156 moko 2192: fi
1.237 moko 2193: done ;;
2194: esac
1.156 moko 2195: fi
2196: eval ac_res=\$$3
1.237 moko 2197: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2198: printf "%s\n" "$ac_res" >&6; }
1.156 moko 2199: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2200:
2201: } # ac_fn_c_find_uintX_t
2202:
1.234 moko 2203: # ac_fn_c_find_intX_t LINENO BITS VAR
2204: # -----------------------------------
2205: # Finds a signed integer type with width BITS, setting cache variable VAR
2206: # accordingly.
2207: ac_fn_c_find_intX_t ()
2208: {
2209: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1.237 moko 2210: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2211: printf %s "checking for int$2_t... " >&6; }
2212: if eval test \${$3+y}
2213: then :
2214: printf %s "(cached) " >&6
2215: else case e in #(
2216: e) eval "$3=no"
1.234 moko 2217: # Order is important - never check a type that is potentially smaller
2218: # than half of the expected target width.
2219: for ac_type in int$2_t 'int' 'long int' \
2220: 'long long int' 'short int' 'signed char'; do
2221: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2222: /* end confdefs.h. */
2223: $ac_includes_default
2224: enum { N = $2 / 2 - 1 };
2225: int
1.237 moko 2226: main (void)
1.234 moko 2227: {
2228: static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
2229: test_array [0] = 0;
2230: return test_array [0];
2231:
2232: ;
2233: return 0;
2234: }
2235: _ACEOF
1.237 moko 2236: if ac_fn_c_try_compile "$LINENO"
2237: then :
1.234 moko 2238: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2239: /* end confdefs.h. */
2240: $ac_includes_default
2241: enum { N = $2 / 2 - 1 };
2242: int
1.237 moko 2243: main (void)
1.234 moko 2244: {
2245: static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2246: < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
2247: test_array [0] = 0;
2248: return test_array [0];
2249:
2250: ;
2251: return 0;
2252: }
2253: _ACEOF
1.237 moko 2254: if ac_fn_c_try_compile "$LINENO"
2255: then :
1.234 moko 2256:
1.237 moko 2257: else case e in #(
2258: e) case $ac_type in #(
1.234 moko 2259: int$2_t) :
2260: eval "$3=yes" ;; #(
2261: *) :
2262: eval "$3=\$ac_type" ;;
1.237 moko 2263: esac ;;
1.234 moko 2264: esac
2265: fi
1.237 moko 2266: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1.234 moko 2267: fi
1.237 moko 2268: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2269: if eval test \"x\$"$3"\" = x"no"
2270: then :
1.234 moko 2271:
1.237 moko 2272: else case e in #(
2273: e) break ;;
2274: esac
1.234 moko 2275: fi
1.237 moko 2276: done ;;
2277: esac
1.234 moko 2278: fi
2279: eval ac_res=\$$3
1.237 moko 2280: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2281: printf "%s\n" "$ac_res" >&6; }
1.234 moko 2282: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2283:
2284: } # ac_fn_c_find_intX_t
2285:
1.161 moko 2286: # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2287: # ----------------------------------------------------
2288: # Tries to find if the field MEMBER exists in type AGGR, after including
2289: # INCLUDES, setting cache variable VAR accordingly.
2290: ac_fn_c_check_member ()
2291: {
2292: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1.237 moko 2293: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2294: printf %s "checking for $2.$3... " >&6; }
2295: if eval test \${$4+y}
2296: then :
2297: printf %s "(cached) " >&6
2298: else case e in #(
2299: e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.161 moko 2300: /* end confdefs.h. */
2301: $5
2302: int
1.237 moko 2303: main (void)
1.161 moko 2304: {
2305: static $2 ac_aggr;
2306: if (ac_aggr.$3)
2307: return 0;
2308: ;
2309: return 0;
2310: }
2311: _ACEOF
1.237 moko 2312: if ac_fn_c_try_compile "$LINENO"
2313: then :
1.161 moko 2314: eval "$4=yes"
1.237 moko 2315: else case e in #(
2316: e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.161 moko 2317: /* end confdefs.h. */
2318: $5
2319: int
1.237 moko 2320: main (void)
1.161 moko 2321: {
2322: static $2 ac_aggr;
2323: if (sizeof ac_aggr.$3)
2324: return 0;
2325: ;
2326: return 0;
2327: }
2328: _ACEOF
1.237 moko 2329: if ac_fn_c_try_compile "$LINENO"
2330: then :
1.161 moko 2331: eval "$4=yes"
1.237 moko 2332: else case e in #(
2333: e) eval "$4=no" ;;
2334: esac
1.161 moko 2335: fi
1.237 moko 2336: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
2337: esac
1.161 moko 2338: fi
1.237 moko 2339: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
2340: esac
1.161 moko 2341: fi
2342: eval ac_res=\$$4
1.237 moko 2343: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2344: printf "%s\n" "$ac_res" >&6; }
1.161 moko 2345: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2346:
2347: } # ac_fn_c_check_member
1.237 moko 2348: ac_configure_args_raw=
2349: for ac_arg
2350: do
2351: case $ac_arg in
2352: *\'*)
2353: ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2354: esac
2355: as_fn_append ac_configure_args_raw " '$ac_arg'"
2356: done
2357:
2358: case $ac_configure_args_raw in
2359: *$as_nl*)
2360: ac_safe_unquote= ;;
2361: *)
2362: ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
2363: ac_unsafe_a="$ac_unsafe_z#~"
2364: ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
2365: ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
2366: esac
2367:
2368: cat >config.log <<_ACEOF
2369: This file contains any messages produced by compilers while
2370: running configure, to aid debugging if configure makes a mistake.
2371:
2372: It was created by parser $as_me 3.5.2b, which was
2373: generated by GNU Autoconf 2.72. Invocation command line was
2374:
2375: $ $0$ac_configure_args_raw
1.161 moko 2376:
1.237 moko 2377: _ACEOF
2378: exec 5>>config.log
1.150 moko 2379: {
1.237 moko 2380: cat <<_ASUNAME
2381: ## --------- ##
2382: ## Platform. ##
2383: ## --------- ##
1.150 moko 2384:
2385: hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2386: uname -m = `(uname -m) 2>/dev/null || echo unknown`
2387: uname -r = `(uname -r) 2>/dev/null || echo unknown`
2388: uname -s = `(uname -s) 2>/dev/null || echo unknown`
2389: uname -v = `(uname -v) 2>/dev/null || echo unknown`
2390:
2391: /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2392: /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1.62 paf 2393:
2394: /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2395: /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2396: /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1.150 moko 2397: /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1.62 paf 2398: /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2399: /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2400: /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2401:
2402: _ASUNAME
2403:
2404: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2405: for as_dir in $PATH
2406: do
2407: IFS=$as_save_IFS
1.237 moko 2408: case $as_dir in #(((
2409: '') as_dir=./ ;;
2410: */) ;;
2411: *) as_dir=$as_dir/ ;;
2412: esac
2413: printf "%s\n" "PATH: $as_dir"
1.150 moko 2414: done
2415: IFS=$as_save_IFS
1.1 paf 2416:
1.62 paf 2417: } >&5
2418:
2419: cat >&5 <<_ACEOF
2420:
2421:
2422: ## ----------- ##
2423: ## Core tests. ##
2424: ## ----------- ##
2425:
2426: _ACEOF
2427:
2428:
2429: # Keep a trace of the command line.
2430: # Strip out --no-create and --no-recursion so they do not pile up.
2431: # Strip out --silent because we don't want to record it for future runs.
2432: # Also quote any args containing shell meta-characters.
2433: # Make two passes to allow for proper duplicate-argument suppression.
2434: ac_configure_args=
2435: ac_configure_args0=
2436: ac_configure_args1=
2437: ac_must_keep_next=false
2438: for ac_pass in 1 2
2439: do
2440: for ac_arg
2441: do
2442: case $ac_arg in
2443: -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2444: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2445: | -silent | --silent | --silen | --sile | --sil)
2446: continue ;;
1.150 moko 2447: *\'*)
1.237 moko 2448: ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1.62 paf 2449: esac
2450: case $ac_pass in
1.150 moko 2451: 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1.62 paf 2452: 2)
1.150 moko 2453: as_fn_append ac_configure_args1 " '$ac_arg'"
1.62 paf 2454: if test $ac_must_keep_next = true; then
1.86 paf 2455: ac_must_keep_next=false # Got value, back to normal.
1.62 paf 2456: else
1.86 paf 2457: case $ac_arg in
2458: *=* | --config-cache | -C | -disable-* | --disable-* \
2459: | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2460: | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2461: | -with-* | --with-* | -without-* | --without-* | --x)
2462: case "$ac_configure_args0 " in
2463: "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2464: esac
2465: ;;
2466: -* ) ac_must_keep_next=true ;;
2467: esac
1.62 paf 2468: fi
1.150 moko 2469: as_fn_append ac_configure_args " '$ac_arg'"
1.62 paf 2470: ;;
2471: esac
2472: done
2473: done
1.150 moko 2474: { ac_configure_args0=; unset ac_configure_args0;}
2475: { ac_configure_args1=; unset ac_configure_args1;}
1.62 paf 2476:
2477: # When interrupted or exit'd, cleanup temporary files, and complete
2478: # config.log. We remove comments because anyway the quotes in there
2479: # would cause problems or look ugly.
1.150 moko 2480: # WARNING: Use '\'' to represent an apostrophe within the trap.
2481: # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1.62 paf 2482: trap 'exit_status=$?
1.237 moko 2483: # Sanitize IFS.
2484: IFS=" "" $as_nl"
1.62 paf 2485: # Save into config.log some information that might help in debugging.
2486: {
2487: echo
2488:
1.237 moko 2489: printf "%s\n" "## ---------------- ##
1.62 paf 2490: ## Cache variables. ##
1.150 moko 2491: ## ---------------- ##"
1.62 paf 2492: echo
2493: # The following way of writing the cache mishandles newlines in values,
1.150 moko 2494: (
2495: for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2496: eval ac_val=\$$ac_var
2497: case $ac_val in #(
2498: *${as_nl}*)
2499: case $ac_var in #(
1.237 moko 2500: *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2501: printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1.150 moko 2502: esac
2503: case $ac_var in #(
2504: _ | IFS | as_nl) ;; #(
2505: BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2506: *) { eval $ac_var=; unset $ac_var;} ;;
2507: esac ;;
2508: esac
2509: done
1.62 paf 2510: (set) 2>&1 |
1.150 moko 2511: case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2512: *${as_nl}ac_space=\ *)
1.62 paf 2513: sed -n \
1.150 moko 2514: "s/'\''/'\''\\\\'\'''\''/g;
2515: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2516: ;; #(
1.62 paf 2517: *)
1.150 moko 2518: sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1.62 paf 2519: ;;
1.150 moko 2520: esac |
2521: sort
2522: )
1.62 paf 2523: echo
2524:
1.237 moko 2525: printf "%s\n" "## ----------------- ##
1.62 paf 2526: ## Output variables. ##
1.150 moko 2527: ## ----------------- ##"
1.62 paf 2528: echo
2529: for ac_var in $ac_subst_vars
2530: do
1.150 moko 2531: eval ac_val=\$$ac_var
2532: case $ac_val in
1.237 moko 2533: *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1.150 moko 2534: esac
1.237 moko 2535: printf "%s\n" "$ac_var='\''$ac_val'\''"
1.62 paf 2536: done | sort
2537: echo
2538:
2539: if test -n "$ac_subst_files"; then
1.237 moko 2540: printf "%s\n" "## ------------------- ##
1.150 moko 2541: ## File substitutions. ##
2542: ## ------------------- ##"
1.62 paf 2543: echo
2544: for ac_var in $ac_subst_files
2545: do
1.150 moko 2546: eval ac_val=\$$ac_var
2547: case $ac_val in
1.237 moko 2548: *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1.150 moko 2549: esac
1.237 moko 2550: printf "%s\n" "$ac_var='\''$ac_val'\''"
1.62 paf 2551: done | sort
2552: echo
2553: fi
2554:
2555: if test -s confdefs.h; then
1.237 moko 2556: printf "%s\n" "## ----------- ##
1.62 paf 2557: ## confdefs.h. ##
1.150 moko 2558: ## ----------- ##"
1.62 paf 2559: echo
1.150 moko 2560: cat confdefs.h
1.62 paf 2561: echo
2562: fi
2563: test "$ac_signal" != 0 &&
1.237 moko 2564: printf "%s\n" "$as_me: caught signal $ac_signal"
2565: printf "%s\n" "$as_me: exit $exit_status"
1.62 paf 2566: } >&5
1.150 moko 2567: rm -f core *.core core.conftest.* &&
2568: rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1.62 paf 2569: exit $exit_status
1.150 moko 2570: ' 0
1.62 paf 2571: for ac_signal in 1 2 13 15; do
1.150 moko 2572: trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1.62 paf 2573: done
2574: ac_signal=0
2575:
2576: # confdefs.h avoids OS command line length limits that DEFS can exceed.
1.150 moko 2577: rm -f -r conftest* confdefs.h
2578:
1.237 moko 2579: printf "%s\n" "/* confdefs.h */" > confdefs.h
1.62 paf 2580:
2581: # Predefined preprocessor variables.
2582:
1.237 moko 2583: printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
1.62 paf 2584:
1.237 moko 2585: printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
1.62 paf 2586:
1.237 moko 2587: printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
1.62 paf 2588:
1.237 moko 2589: printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
1.62 paf 2590:
1.237 moko 2591: printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
1.62 paf 2592:
1.237 moko 2593: printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
1.62 paf 2594:
2595:
2596: # Let the site file select an alternate cache file if it wants to.
1.150 moko 2597: # Prefer an explicitly selected file to automatically selected ones.
2598: if test -n "$CONFIG_SITE"; then
1.237 moko 2599: ac_site_files="$CONFIG_SITE"
1.150 moko 2600: elif test "x$prefix" != xNONE; then
1.237 moko 2601: ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
1.150 moko 2602: else
1.237 moko 2603: ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1.150 moko 2604: fi
1.237 moko 2605:
2606: for ac_site_file in $ac_site_files
1.150 moko 2607: do
1.237 moko 2608: case $ac_site_file in #(
2609: */*) :
2610: ;; #(
2611: *) :
2612: ac_site_file=./$ac_site_file ;;
2613: esac
2614: if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2615: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2616: printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
1.62 paf 2617: sed 's/^/| /' "$ac_site_file" >&5
1.150 moko 2618: . "$ac_site_file" \
1.237 moko 2619: || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2620: printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
1.150 moko 2621: as_fn_error $? "failed to load site script $ac_site_file
1.237 moko 2622: See 'config.log' for more details" "$LINENO" 5; }
1.1 paf 2623: fi
2624: done
2625:
2626: if test -r "$cache_file"; then
1.150 moko 2627: # Some versions of bash will fail to source /dev/null (special files
2628: # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2629: if test /dev/null != "$cache_file" && test -f "$cache_file"; then
1.237 moko 2630: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2631: printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
1.62 paf 2632: case $cache_file in
1.150 moko 2633: [\\/]* | ?:[\\/]* ) . "$cache_file";;
2634: *) . "./$cache_file";;
1.62 paf 2635: esac
2636: fi
1.1 paf 2637: else
1.237 moko 2638: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2639: printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
1.62 paf 2640: >$cache_file
2641: fi
2642:
1.237 moko 2643: # Test code for whether the C++ compiler supports C++98 (global declarations)
2644: ac_cxx_conftest_cxx98_globals='
2645: // Does the compiler advertise C++98 conformance?
2646: #if !defined __cplusplus || __cplusplus < 199711L
2647: # error "Compiler does not advertise C++98 conformance"
2648: #endif
2649:
2650: // These inclusions are to reject old compilers that
2651: // lack the unsuffixed header files.
2652: #include <cstdlib>
2653: #include <exception>
2654:
2655: // <cassert> and <cstring> are *not* freestanding headers in C++98.
2656: extern void assert (int);
2657: namespace std {
2658: extern int strcmp (const char *, const char *);
2659: }
2660:
2661: // Namespaces, exceptions, and templates were all added after "C++ 2.0".
2662: using std::exception;
2663: using std::strcmp;
2664:
2665: namespace {
2666:
2667: void test_exception_syntax()
2668: {
2669: try {
2670: throw "test";
2671: } catch (const char *s) {
2672: // Extra parentheses suppress a warning when building autoconf itself,
2673: // due to lint rules shared with more typical C programs.
2674: assert (!(strcmp) (s, "test"));
2675: }
2676: }
2677:
2678: template <typename T> struct test_template
2679: {
2680: T const val;
2681: explicit test_template(T t) : val(t) {}
2682: template <typename U> T add(U u) { return static_cast<T>(u) + val; }
2683: };
2684:
2685: } // anonymous namespace
2686: '
2687:
2688: # Test code for whether the C++ compiler supports C++98 (body of main)
2689: ac_cxx_conftest_cxx98_main='
2690: assert (argc);
2691: assert (! argv[0]);
2692: {
2693: test_exception_syntax ();
2694: test_template<double> tt (2.0);
2695: assert (tt.add (4) == 6.0);
2696: assert (true && !false);
2697: }
2698: '
2699:
2700: # Test code for whether the C++ compiler supports C++11 (global declarations)
2701: ac_cxx_conftest_cxx11_globals='
2702: // Does the compiler advertise C++ 2011 conformance?
2703: #if !defined __cplusplus || __cplusplus < 201103L
2704: # error "Compiler does not advertise C++11 conformance"
2705: #endif
2706:
2707: namespace cxx11test
2708: {
2709: constexpr int get_val() { return 20; }
2710:
2711: struct testinit
2712: {
2713: int i;
2714: double d;
2715: };
2716:
2717: class delegate
2718: {
2719: public:
2720: delegate(int n) : n(n) {}
2721: delegate(): delegate(2354) {}
2722:
2723: virtual int getval() { return this->n; };
2724: protected:
2725: int n;
2726: };
2727:
2728: class overridden : public delegate
2729: {
2730: public:
2731: overridden(int n): delegate(n) {}
2732: virtual int getval() override final { return this->n * 2; }
2733: };
2734:
2735: class nocopy
2736: {
2737: public:
2738: nocopy(int i): i(i) {}
2739: nocopy() = default;
2740: nocopy(const nocopy&) = delete;
2741: nocopy & operator=(const nocopy&) = delete;
2742: private:
2743: int i;
2744: };
2745:
2746: // for testing lambda expressions
2747: template <typename Ret, typename Fn> Ret eval(Fn f, Ret v)
2748: {
2749: return f(v);
2750: }
2751:
2752: // for testing variadic templates and trailing return types
2753: template <typename V> auto sum(V first) -> V
2754: {
2755: return first;
2756: }
2757: template <typename V, typename... Args> auto sum(V first, Args... rest) -> V
2758: {
2759: return first + sum(rest...);
2760: }
2761: }
2762: '
2763:
2764: # Test code for whether the C++ compiler supports C++11 (body of main)
2765: ac_cxx_conftest_cxx11_main='
2766: {
2767: // Test auto and decltype
2768: auto a1 = 6538;
2769: auto a2 = 48573953.4;
2770: auto a3 = "String literal";
2771:
2772: int total = 0;
2773: for (auto i = a3; *i; ++i) { total += *i; }
2774:
2775: decltype(a2) a4 = 34895.034;
2776: }
2777: {
2778: // Test constexpr
2779: short sa[cxx11test::get_val()] = { 0 };
2780: }
2781: {
2782: // Test initializer lists
2783: cxx11test::testinit il = { 4323, 435234.23544 };
2784: }
2785: {
2786: // Test range-based for
2787: int array[] = {9, 7, 13, 15, 4, 18, 12, 10, 5, 3,
2788: 14, 19, 17, 8, 6, 20, 16, 2, 11, 1};
2789: for (auto &x : array) { x += 23; }
2790: }
2791: {
2792: // Test lambda expressions
2793: using cxx11test::eval;
2794: assert (eval ([](int x) { return x*2; }, 21) == 42);
2795: double d = 2.0;
2796: assert (eval ([&](double x) { return d += x; }, 3.0) == 5.0);
2797: assert (d == 5.0);
2798: assert (eval ([=](double x) mutable { return d += x; }, 4.0) == 9.0);
2799: assert (d == 5.0);
2800: }
2801: {
2802: // Test use of variadic templates
2803: using cxx11test::sum;
2804: auto a = sum(1);
2805: auto b = sum(1, 2);
2806: auto c = sum(1.0, 2.0, 3.0);
2807: }
2808: {
2809: // Test constructor delegation
2810: cxx11test::delegate d1;
2811: cxx11test::delegate d2();
2812: cxx11test::delegate d3(45);
2813: }
2814: {
2815: // Test override and final
2816: cxx11test::overridden o1(55464);
2817: }
2818: {
2819: // Test nullptr
2820: char *c = nullptr;
2821: }
2822: {
2823: // Test template brackets
2824: test_template<::test_template<int>> v(test_template<int>(12));
2825: }
2826: {
2827: // Unicode literals
2828: char const *utf8 = u8"UTF-8 string \u2500";
2829: char16_t const *utf16 = u"UTF-8 string \u2500";
2830: char32_t const *utf32 = U"UTF-32 string \u2500";
2831: }
2832: '
2833:
2834: # Test code for whether the C compiler supports C++11 (complete).
2835: ac_cxx_conftest_cxx11_program="${ac_cxx_conftest_cxx98_globals}
2836: ${ac_cxx_conftest_cxx11_globals}
2837:
2838: int
2839: main (int argc, char **argv)
2840: {
2841: int ok = 0;
2842: ${ac_cxx_conftest_cxx98_main}
2843: ${ac_cxx_conftest_cxx11_main}
2844: return ok;
2845: }
2846: "
2847:
2848: # Test code for whether the C compiler supports C++98 (complete).
2849: ac_cxx_conftest_cxx98_program="${ac_cxx_conftest_cxx98_globals}
2850: int
2851: main (int argc, char **argv)
2852: {
2853: int ok = 0;
2854: ${ac_cxx_conftest_cxx98_main}
2855: return ok;
2856: }
2857: "
2858:
2859: # Test code for whether the C compiler supports C89 (global declarations)
2860: ac_c_conftest_c89_globals='
2861: /* Does the compiler advertise C89 conformance?
2862: Do not test the value of __STDC__, because some compilers set it to 0
2863: while being otherwise adequately conformant. */
2864: #if !defined __STDC__
2865: # error "Compiler does not advertise C89 conformance"
2866: #endif
2867:
2868: #include <stddef.h>
2869: #include <stdarg.h>
2870: struct stat;
2871: /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2872: struct buf { int x; };
2873: struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2874: static char *e (char **p, int i)
2875: {
2876: return p[i];
2877: }
2878: static char *f (char * (*g) (char **, int), char **p, ...)
2879: {
2880: char *s;
2881: va_list v;
2882: va_start (v,p);
2883: s = g (p, va_arg (v,int));
2884: va_end (v);
2885: return s;
2886: }
2887:
2888: /* C89 style stringification. */
2889: #define noexpand_stringify(a) #a
2890: const char *stringified = noexpand_stringify(arbitrary+token=sequence);
2891:
2892: /* C89 style token pasting. Exercises some of the corner cases that
2893: e.g. old MSVC gets wrong, but not very hard. */
2894: #define noexpand_concat(a,b) a##b
2895: #define expand_concat(a,b) noexpand_concat(a,b)
2896: extern int vA;
2897: extern int vbee;
2898: #define aye A
2899: #define bee B
2900: int *pvA = &expand_concat(v,aye);
2901: int *pvbee = &noexpand_concat(v,bee);
2902:
2903: /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2904: function prototypes and stuff, but not \xHH hex character constants.
2905: These do not provoke an error unfortunately, instead are silently treated
2906: as an "x". The following induces an error, until -std is added to get
2907: proper ANSI mode. Curiously \x00 != x always comes out true, for an
2908: array size at least. It is necessary to write \x00 == 0 to get something
2909: that is true only with -std. */
2910: int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2911:
2912: /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2913: inside strings and character constants. */
2914: #define FOO(x) '\''x'\''
2915: int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2916:
2917: int test (int i, double x);
2918: struct s1 {int (*f) (int a);};
2919: struct s2 {int (*f) (double a);};
2920: int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2921: int, int);'
2922:
2923: # Test code for whether the C compiler supports C89 (body of main).
2924: ac_c_conftest_c89_main='
2925: ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2926: '
2927:
2928: # Test code for whether the C compiler supports C99 (global declarations)
2929: ac_c_conftest_c99_globals='
2930: /* Does the compiler advertise C99 conformance? */
2931: #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2932: # error "Compiler does not advertise C99 conformance"
2933: #endif
2934:
2935: // See if C++-style comments work.
2936:
2937: #include <stdbool.h>
2938: extern int puts (const char *);
2939: extern int printf (const char *, ...);
2940: extern int dprintf (int, const char *, ...);
2941: extern void *malloc (size_t);
2942: extern void free (void *);
2943:
2944: // Check varargs macros. These examples are taken from C99 6.10.3.5.
2945: // dprintf is used instead of fprintf to avoid needing to declare
2946: // FILE and stderr.
2947: #define debug(...) dprintf (2, __VA_ARGS__)
2948: #define showlist(...) puts (#__VA_ARGS__)
2949: #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2950: static void
2951: test_varargs_macros (void)
2952: {
2953: int x = 1234;
2954: int y = 5678;
2955: debug ("Flag");
2956: debug ("X = %d\n", x);
2957: showlist (The first, second, and third items.);
2958: report (x>y, "x is %d but y is %d", x, y);
2959: }
2960:
2961: // Check long long types.
2962: #define BIG64 18446744073709551615ull
2963: #define BIG32 4294967295ul
2964: #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2965: #if !BIG_OK
2966: #error "your preprocessor is broken"
2967: #endif
2968: #if BIG_OK
2969: #else
2970: #error "your preprocessor is broken"
2971: #endif
2972: static long long int bignum = -9223372036854775807LL;
2973: static unsigned long long int ubignum = BIG64;
2974:
2975: struct incomplete_array
2976: {
2977: int datasize;
2978: double data[];
2979: };
2980:
2981: struct named_init {
2982: int number;
2983: const wchar_t *name;
2984: double average;
2985: };
2986:
2987: typedef const char *ccp;
2988:
2989: static inline int
2990: test_restrict (ccp restrict text)
2991: {
2992: // Iterate through items via the restricted pointer.
2993: // Also check for declarations in for loops.
2994: for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2995: continue;
2996: return 0;
2997: }
2998:
2999: // Check varargs and va_copy.
3000: static bool
3001: test_varargs (const char *format, ...)
3002: {
3003: va_list args;
3004: va_start (args, format);
3005: va_list args_copy;
3006: va_copy (args_copy, args);
3007:
3008: const char *str = "";
3009: int number = 0;
3010: float fnumber = 0;
3011:
3012: while (*format)
3013: {
3014: switch (*format++)
3015: {
3016: case '\''s'\'': // string
3017: str = va_arg (args_copy, const char *);
3018: break;
3019: case '\''d'\'': // int
3020: number = va_arg (args_copy, int);
3021: break;
3022: case '\''f'\'': // float
3023: fnumber = va_arg (args_copy, double);
3024: break;
3025: default:
3026: break;
3027: }
3028: }
3029: va_end (args_copy);
3030: va_end (args);
3031:
3032: return *str && number && fnumber;
3033: }
3034: '
3035:
3036: # Test code for whether the C compiler supports C99 (body of main).
3037: ac_c_conftest_c99_main='
3038: // Check bool.
3039: _Bool success = false;
3040: success |= (argc != 0);
3041:
3042: // Check restrict.
3043: if (test_restrict ("String literal") == 0)
3044: success = true;
3045: char *restrict newvar = "Another string";
3046:
3047: // Check varargs.
3048: success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
3049: test_varargs_macros ();
3050:
3051: // Check flexible array members.
3052: struct incomplete_array *ia =
3053: malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3054: ia->datasize = 10;
3055: for (int i = 0; i < ia->datasize; ++i)
3056: ia->data[i] = i * 1.234;
3057: // Work around memory leak warnings.
3058: free (ia);
3059:
3060: // Check named initializers.
3061: struct named_init ni = {
3062: .number = 34,
3063: .name = L"Test wide string",
3064: .average = 543.34343,
3065: };
3066:
3067: ni.number = 58;
3068:
3069: int dynamic_array[ni.number];
3070: dynamic_array[0] = argv[0][0];
3071: dynamic_array[ni.number - 1] = 543;
3072:
3073: // work around unused variable warnings
3074: ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
3075: || dynamic_array[ni.number - 1] != 543);
3076: '
3077:
3078: # Test code for whether the C compiler supports C11 (global declarations)
3079: ac_c_conftest_c11_globals='
3080: /* Does the compiler advertise C11 conformance? */
3081: #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
3082: # error "Compiler does not advertise C11 conformance"
3083: #endif
3084:
3085: // Check _Alignas.
3086: char _Alignas (double) aligned_as_double;
3087: char _Alignas (0) no_special_alignment;
3088: extern char aligned_as_int;
3089: char _Alignas (0) _Alignas (int) aligned_as_int;
3090:
3091: // Check _Alignof.
3092: enum
3093: {
3094: int_alignment = _Alignof (int),
3095: int_array_alignment = _Alignof (int[100]),
3096: char_alignment = _Alignof (char)
3097: };
3098: _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
3099:
3100: // Check _Noreturn.
3101: int _Noreturn does_not_return (void) { for (;;) continue; }
3102:
3103: // Check _Static_assert.
3104: struct test_static_assert
3105: {
3106: int x;
3107: _Static_assert (sizeof (int) <= sizeof (long int),
3108: "_Static_assert does not work in struct");
3109: long int y;
3110: };
3111:
3112: // Check UTF-8 literals.
3113: #define u8 syntax error!
3114: char const utf8_literal[] = u8"happens to be ASCII" "another string";
3115:
3116: // Check duplicate typedefs.
3117: typedef long *long_ptr;
3118: typedef long int *long_ptr;
3119: typedef long_ptr long_ptr;
3120:
3121: // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
3122: struct anonymous
3123: {
3124: union {
3125: struct { int i; int j; };
3126: struct { int k; long int l; } w;
3127: };
3128: int m;
3129: } v1;
3130: '
3131:
3132: # Test code for whether the C compiler supports C11 (body of main).
3133: ac_c_conftest_c11_main='
3134: _Static_assert ((offsetof (struct anonymous, i)
3135: == offsetof (struct anonymous, w.k)),
3136: "Anonymous union alignment botch");
3137: v1.i = 2;
3138: v1.w.k = 5;
3139: ok |= v1.i != 5;
3140: '
3141:
3142: # Test code for whether the C compiler supports C11 (complete).
3143: ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
3144: ${ac_c_conftest_c99_globals}
3145: ${ac_c_conftest_c11_globals}
3146:
3147: int
3148: main (int argc, char **argv)
3149: {
3150: int ok = 0;
3151: ${ac_c_conftest_c89_main}
3152: ${ac_c_conftest_c99_main}
3153: ${ac_c_conftest_c11_main}
3154: return ok;
3155: }
3156: "
3157:
3158: # Test code for whether the C compiler supports C99 (complete).
3159: ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
3160: ${ac_c_conftest_c99_globals}
3161:
3162: int
3163: main (int argc, char **argv)
3164: {
3165: int ok = 0;
3166: ${ac_c_conftest_c89_main}
3167: ${ac_c_conftest_c99_main}
3168: return ok;
3169: }
3170: "
3171:
3172: # Test code for whether the C compiler supports C89 (complete).
3173: ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
3174:
3175: int
3176: main (int argc, char **argv)
3177: {
3178: int ok = 0;
3179: ${ac_c_conftest_c89_main}
3180: return ok;
3181: }
3182: "
3183:
3184: as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
3185: as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
3186: as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
3187: as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
3188: as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
3189: as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
3190: as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
3191: as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
3192: as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
3193:
3194: # Auxiliary files required by this configure script.
3195: ac_aux_files="ltmain.sh compile config.guess config.sub missing install-sh"
3196:
3197: # Locations in which to look for auxiliary files.
3198: ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
3199:
3200: # Search for a directory containing all of the required auxiliary files,
3201: # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
3202: # If we don't find one directory that contains all the files we need,
3203: # we report the set of missing files from the *first* directory in
3204: # $ac_aux_dir_candidates and give up.
3205: ac_missing_aux_files=""
3206: ac_first_candidate=:
3207: printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
3208: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3209: as_found=false
3210: for as_dir in $ac_aux_dir_candidates
3211: do
3212: IFS=$as_save_IFS
3213: case $as_dir in #(((
3214: '') as_dir=./ ;;
3215: */) ;;
3216: *) as_dir=$as_dir/ ;;
3217: esac
3218: as_found=:
3219:
3220: printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
3221: ac_aux_dir_found=yes
3222: ac_install_sh=
3223: for ac_aux in $ac_aux_files
3224: do
3225: # As a special case, if "install-sh" is required, that requirement
3226: # can be satisfied by any of "install-sh", "install.sh", or "shtool",
3227: # and $ac_install_sh is set appropriately for whichever one is found.
3228: if test x"$ac_aux" = x"install-sh"
3229: then
3230: if test -f "${as_dir}install-sh"; then
3231: printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
3232: ac_install_sh="${as_dir}install-sh -c"
3233: elif test -f "${as_dir}install.sh"; then
3234: printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
3235: ac_install_sh="${as_dir}install.sh -c"
3236: elif test -f "${as_dir}shtool"; then
3237: printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
3238: ac_install_sh="${as_dir}shtool install -c"
3239: else
3240: ac_aux_dir_found=no
3241: if $ac_first_candidate; then
3242: ac_missing_aux_files="${ac_missing_aux_files} install-sh"
3243: else
3244: break
3245: fi
3246: fi
3247: else
3248: if test -f "${as_dir}${ac_aux}"; then
3249: printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
3250: else
3251: ac_aux_dir_found=no
3252: if $ac_first_candidate; then
3253: ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
3254: else
3255: break
3256: fi
3257: fi
3258: fi
3259: done
3260: if test "$ac_aux_dir_found" = yes; then
3261: ac_aux_dir="$as_dir"
3262: break
3263: fi
3264: ac_first_candidate=false
3265:
3266: as_found=false
3267: done
3268: IFS=$as_save_IFS
3269: if $as_found
3270: then :
3271:
3272: else case e in #(
3273: e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;;
3274: esac
3275: fi
3276:
3277:
3278: # These three variables are undocumented and unsupported,
3279: # and are intended to be withdrawn in a future Autoconf release.
3280: # They can cause serious problems if a builder's source tree is in a directory
3281: # whose full name contains unusual characters.
3282: if test -f "${ac_aux_dir}config.guess"; then
3283: ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
3284: fi
3285: if test -f "${ac_aux_dir}config.sub"; then
3286: ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
3287: fi
3288: if test -f "$ac_aux_dir/configure"; then
3289: ac_configure="$SHELL ${ac_aux_dir}configure"
3290: fi
3291:
1.62 paf 3292: # Check that the precious variables saved in the cache have kept the same
3293: # value.
3294: ac_cache_corrupted=false
1.150 moko 3295: for ac_var in $ac_precious_vars; do
1.62 paf 3296: eval ac_old_set=\$ac_cv_env_${ac_var}_set
3297: eval ac_new_set=\$ac_env_${ac_var}_set
1.150 moko 3298: eval ac_old_val=\$ac_cv_env_${ac_var}_value
3299: eval ac_new_val=\$ac_env_${ac_var}_value
1.62 paf 3300: case $ac_old_set,$ac_new_set in
3301: set,)
1.237 moko 3302: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5
3303: printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;}
1.62 paf 3304: ac_cache_corrupted=: ;;
3305: ,set)
1.237 moko 3306: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5
3307: printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;}
1.62 paf 3308: ac_cache_corrupted=: ;;
3309: ,);;
3310: *)
3311: if test "x$ac_old_val" != "x$ac_new_val"; then
1.150 moko 3312: # differences in whitespace do not lead to failure.
3313: ac_old_val_w=`echo x $ac_old_val`
3314: ac_new_val_w=`echo x $ac_new_val`
3315: if test "$ac_old_val_w" != "$ac_new_val_w"; then
1.237 moko 3316: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5
3317: printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;}
1.150 moko 3318: ac_cache_corrupted=:
3319: else
1.237 moko 3320: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5
3321: printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;}
1.150 moko 3322: eval $ac_var=\$ac_old_val
3323: fi
1.237 moko 3324: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5
3325: printf "%s\n" "$as_me: former value: '$ac_old_val'" >&2;}
3326: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5
3327: printf "%s\n" "$as_me: current value: '$ac_new_val'" >&2;}
1.62 paf 3328: fi;;
3329: esac
3330: # Pass precious variables to config.status.
3331: if test "$ac_new_set" = set; then
3332: case $ac_new_val in
1.237 moko 3333: *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1.62 paf 3334: *) ac_arg=$ac_var=$ac_new_val ;;
3335: esac
3336: case " $ac_configure_args " in
3337: *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1.150 moko 3338: *) as_fn_append ac_configure_args " '$ac_arg'" ;;
1.62 paf 3339: esac
3340: fi
3341: done
3342: if $ac_cache_corrupted; then
1.237 moko 3343: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3344: printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3345: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3346: printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
3347: as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file'
3348: and start over" "$LINENO" 5
1.150 moko 3349: fi
3350: ## -------------------- ##
3351: ## Main body of script. ##
3352: ## -------------------- ##
1.1 paf 3353:
3354: ac_ext=c
3355: ac_cpp='$CPP $CPPFLAGS'
1.62 paf 3356: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3357: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3358: ac_compiler_gnu=$ac_cv_c_compiler_gnu
3359:
3360:
3361:
3362:
3363:
1.229 moko 3364:
1.237 moko 3365: am__api_version='1.17'
3366:
1.150 moko 3367:
1.1 paf 3368:
1.237 moko 3369: # Find a good install program. We prefer a C program (faster),
1.1 paf 3370: # so one script is as good as another. But avoid the broken or
3371: # incompatible versions:
3372: # SysV /etc/install, /usr/sbin/install
3373: # SunOS /usr/etc/install
3374: # IRIX /sbin/install
3375: # AIX /bin/install
1.62 paf 3376: # AmigaOS /C/install, which installs bootblocks on floppy discs
1.1 paf 3377: # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3378: # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3379: # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1.86 paf 3380: # OS/2's system install, which has a completely different semantic
1.1 paf 3381: # ./install, which can be erroneously created by make from ./install.sh.
1.150 moko 3382: # Reject install programs that cannot install multiple files.
1.237 moko 3383: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3384: printf %s "checking for a BSD-compatible install... " >&6; }
1.1 paf 3385: if test -z "$INSTALL"; then
1.237 moko 3386: if test ${ac_cv_path_install+y}
3387: then :
3388: printf %s "(cached) " >&6
3389: else case e in #(
3390: e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1.62 paf 3391: for as_dir in $PATH
3392: do
3393: IFS=$as_save_IFS
1.237 moko 3394: case $as_dir in #(((
3395: '') as_dir=./ ;;
3396: */) ;;
3397: *) as_dir=$as_dir/ ;;
3398: esac
3399: # Account for fact that we put trailing slashes in our PATH walk.
3400: case $as_dir in #((
3401: ./ | /[cC]/* | \
1.62 paf 3402: /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1.150 moko 3403: ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
1.62 paf 3404: /usr/ucb/* ) ;;
3405: *)
3406: # OSF1 and SCO ODT 3.0 have their own names for install.
3407: # Don't use installbsd from OSF since it installs stuff as root
3408: # by default.
3409: for ac_prog in ginstall scoinst install; do
3410: for ac_exec_ext in '' $ac_executable_extensions; do
1.237 moko 3411: if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
1.86 paf 3412: if test $ac_prog = install &&
1.237 moko 3413: grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1.86 paf 3414: # AIX install. It has an incompatible calling convention.
3415: :
3416: elif test $ac_prog = install &&
1.237 moko 3417: grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1.86 paf 3418: # program-specific install script used by HP pwplus--don't use.
3419: :
3420: else
1.150 moko 3421: rm -rf conftest.one conftest.two conftest.dir
3422: echo one > conftest.one
3423: echo two > conftest.two
3424: mkdir conftest.dir
1.237 moko 3425: if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
1.150 moko 3426: test -s conftest.one && test -s conftest.two &&
3427: test -s conftest.dir/conftest.one &&
3428: test -s conftest.dir/conftest.two
3429: then
1.237 moko 3430: ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
1.150 moko 3431: break 3
3432: fi
1.86 paf 3433: fi
3434: fi
1.1 paf 3435: done
1.62 paf 3436: done
3437: ;;
3438: esac
3439:
1.150 moko 3440: done
3441: IFS=$as_save_IFS
3442:
3443: rm -rf conftest.one conftest.two conftest.dir
1.237 moko 3444: ;;
3445: esac
1.1 paf 3446: fi
1.237 moko 3447: if test ${ac_cv_path_install+y}; then
1.62 paf 3448: INSTALL=$ac_cv_path_install
1.1 paf 3449: else
1.150 moko 3450: # As a last resort, use the slow shell script. Don't cache a
3451: # value for INSTALL within a source directory, because that will
1.1 paf 3452: # break other packages using the cache if that directory is
1.150 moko 3453: # removed, or if the value is a relative name.
1.62 paf 3454: INSTALL=$ac_install_sh
1.1 paf 3455: fi
3456: fi
1.237 moko 3457: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3458: printf "%s\n" "$INSTALL" >&6; }
1.1 paf 3459:
3460: # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3461: # It thinks the first close brace ends the variable substitution.
3462: test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3463:
1.62 paf 3464: test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1.1 paf 3465:
3466: test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3467:
1.237 moko 3468: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether sleep supports fractional seconds" >&5
3469: printf %s "checking whether sleep supports fractional seconds... " >&6; }
3470: if test ${am_cv_sleep_fractional_seconds+y}
3471: then :
3472: printf %s "(cached) " >&6
3473: else case e in #(
3474: e) if sleep 0.001 2>/dev/null
3475: then :
3476: am_cv_sleep_fractional_seconds=yes
3477: else case e in #(
3478: e) am_cv_sleep_fractional_seconds=no ;;
3479: esac
3480: fi
3481: ;;
3482: esac
3483: fi
3484: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_sleep_fractional_seconds" >&5
3485: printf "%s\n" "$am_cv_sleep_fractional_seconds" >&6; }
3486:
3487: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking filesystem timestamp resolution" >&5
3488: printf %s "checking filesystem timestamp resolution... " >&6; }
3489: if test ${am_cv_filesystem_timestamp_resolution+y}
3490: then :
3491: printf %s "(cached) " >&6
3492: else case e in #(
3493: e) # Default to the worst case.
3494: am_cv_filesystem_timestamp_resolution=2
3495:
3496: # Only try to go finer than 1 sec if sleep can do it.
3497: # Don't try 1 sec, because if 0.01 sec and 0.1 sec don't work,
3498: # - 1 sec is not much of a win compared to 2 sec, and
3499: # - it takes 2 seconds to perform the test whether 1 sec works.
3500: #
3501: # Instead, just use the default 2s on platforms that have 1s resolution,
3502: # accept the extra 1s delay when using $sleep in the Automake tests, in
3503: # exchange for not incurring the 2s delay for running the test for all
3504: # packages.
3505: #
3506: am_try_resolutions=
3507: if test "$am_cv_sleep_fractional_seconds" = yes; then
3508: # Even a millisecond often causes a bunch of false positives,
3509: # so just try a hundredth of a second. The time saved between .001 and
3510: # .01 is not terribly consequential.
3511: am_try_resolutions="0.01 0.1 $am_try_resolutions"
3512: fi
3513:
3514: # In order to catch current-generation FAT out, we must *modify* files
3515: # that already exist; the *creation* timestamp is finer. Use names
3516: # that make ls -t sort them differently when they have equal
3517: # timestamps than when they have distinct timestamps, keeping
3518: # in mind that ls -t prints the *newest* file first.
3519: rm -f conftest.ts?
3520: : > conftest.ts1
3521: : > conftest.ts2
3522: : > conftest.ts3
3523:
3524: # Make sure ls -t actually works. Do 'set' in a subshell so we don't
3525: # clobber the current shell's arguments. (Outer-level square brackets
3526: # are removed by m4; they're present so that m4 does not expand
3527: # <dollar><star>; be careful, easy to get confused.)
3528: if (
3529: set X `ls -t conftest.ts[12]` &&
3530: {
3531: test "$*" != "X conftest.ts1 conftest.ts2" ||
3532: test "$*" != "X conftest.ts2 conftest.ts1";
3533: }
3534: ); then :; else
3535: # If neither matched, then we have a broken ls. This can happen
3536: # if, for instance, CONFIG_SHELL is bash and it inherits a
3537: # broken ls alias from the environment. This has actually
3538: # happened. Such a system could not be considered "sane".
3539: printf "%s\n" ""Bad output from ls -t: \"`ls -t conftest.ts[12]`\""" >&5
3540: { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3541: printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3542: as_fn_error $? "ls -t produces unexpected output.
3543: Make sure there is not a broken ls alias in your environment.
3544: See 'config.log' for more details" "$LINENO" 5; }
3545: fi
3546:
3547: for am_try_res in $am_try_resolutions; do
3548: # Any one fine-grained sleep might happen to cross the boundary
3549: # between two values of a coarser actual resolution, but if we do
3550: # two fine-grained sleeps in a row, at least one of them will fall
3551: # entirely within a coarse interval.
3552: echo alpha > conftest.ts1
3553: sleep $am_try_res
3554: echo beta > conftest.ts2
3555: sleep $am_try_res
3556: echo gamma > conftest.ts3
3557:
3558: # We assume that 'ls -t' will make use of high-resolution
3559: # timestamps if the operating system supports them at all.
3560: if (set X `ls -t conftest.ts?` &&
3561: test "$2" = conftest.ts3 &&
3562: test "$3" = conftest.ts2 &&
3563: test "$4" = conftest.ts1); then
3564: #
3565: # Ok, ls -t worked. If we're at a resolution of 1 second, we're done,
3566: # because we don't need to test make.
3567: make_ok=true
3568: if test $am_try_res != 1; then
3569: # But if we've succeeded so far with a subsecond resolution, we
3570: # have one more thing to check: make. It can happen that
3571: # everything else supports the subsecond mtimes, but make doesn't;
3572: # notably on macOS, which ships make 3.81 from 2006 (the last one
3573: # released under GPLv2). https://bugs.gnu.org/68808
3574: #
3575: # We test $MAKE if it is defined in the environment, else "make".
3576: # It might get overridden later, but our hope is that in practice
3577: # it does not matter: it is the system "make" which is (by far)
3578: # the most likely to be broken, whereas if the user overrides it,
3579: # probably they did so with a better, or at least not worse, make.
3580: # https://lists.gnu.org/archive/html/automake/2024-06/msg00051.html
3581: #
3582: # Create a Makefile (real tab character here):
3583: rm -f conftest.mk
3584: echo 'conftest.ts1: conftest.ts2' >conftest.mk
3585: echo ' touch conftest.ts2' >>conftest.mk
3586: #
3587: # Now, running
3588: # touch conftest.ts1; touch conftest.ts2; make
3589: # should touch ts1 because ts2 is newer. This could happen by luck,
3590: # but most often, it will fail if make's support is insufficient. So
3591: # test for several consecutive successes.
3592: #
3593: # (We reuse conftest.ts[12] because we still want to modify existing
3594: # files, not create new ones, per above.)
3595: n=0
3596: make=${MAKE-make}
3597: until test $n -eq 3; do
3598: echo one > conftest.ts1
3599: sleep $am_try_res
3600: echo two > conftest.ts2 # ts2 should now be newer than ts1
3601: if $make -f conftest.mk | grep 'up to date' >/dev/null; then
3602: make_ok=false
3603: break # out of $n loop
3604: fi
3605: n=`expr $n + 1`
3606: done
3607: fi
3608: #
3609: if $make_ok; then
3610: # Everything we know to check worked out, so call this resolution good.
3611: am_cv_filesystem_timestamp_resolution=$am_try_res
3612: break # out of $am_try_res loop
3613: fi
3614: # Otherwise, we'll go on to check the next resolution.
3615: fi
3616: done
3617: rm -f conftest.ts?
3618: # (end _am_filesystem_timestamp_resolution)
3619: ;;
3620: esac
3621: fi
3622: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_filesystem_timestamp_resolution" >&5
3623: printf "%s\n" "$am_cv_filesystem_timestamp_resolution" >&6; }
3624:
3625: # This check should not be cached, as it may vary across builds of
3626: # different projects.
3627: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3628: printf %s "checking whether build environment is sane... " >&6; }
1.150 moko 3629: # Reject unsafe characters in $srcdir or the absolute working directory
3630: # name. Accept space and tab only in the latter.
3631: am_lf='
3632: '
3633: case `pwd` in
3634: *[\\\"\#\$\&\'\`$am_lf]*)
3635: as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3636: esac
3637: case $srcdir in
3638: *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
1.187 moko 3639: as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
1.150 moko 3640: esac
3641:
1.187 moko 3642: # Do 'set' in a subshell so we don't clobber the current shell's
1.1 paf 3643: # arguments. Must try -L first in case configure is actually a
3644: # symlink; some systems play weird games with the mod time of symlinks
3645: # (eg FreeBSD returns the mod time of the symlink's containing
3646: # directory).
1.237 moko 3647: am_build_env_is_sane=no
3648: am_has_slept=no
3649: rm -f conftest.file
3650: for am_try in 1 2; do
3651: echo "timestamp, slept: $am_has_slept" > conftest.file
3652: if (
3653: set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3654: if test "$*" = "X"; then
3655: # -L didn't work.
3656: set X `ls -t "$srcdir/configure" conftest.file`
3657: fi
3658: test "$2" = conftest.file
3659: ); then
3660: am_build_env_is_sane=yes
3661: break
3662: fi
3663: # Just in case.
3664: sleep "$am_cv_filesystem_timestamp_resolution"
3665: am_has_slept=yes
3666: done
1.1 paf 3667:
1.237 moko 3668: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_build_env_is_sane" >&5
3669: printf "%s\n" "$am_build_env_is_sane" >&6; }
3670: if test "$am_build_env_is_sane" = no; then
3671: as_fn_error $? "newly created file is older than distributed files!
1.150 moko 3672: Check your system clock" "$LINENO" 5
1.1 paf 3673: fi
1.237 moko 3674:
1.187 moko 3675: # If we didn't sleep, we still need to ensure time stamps of config.status and
3676: # generated files are strictly newer.
3677: am_sleep_pid=
1.237 moko 3678: if test -e conftest.file || grep 'slept: no' conftest.file >/dev/null 2>&1
3679: then :
3680:
3681: else case e in #(
3682: e) ( sleep "$am_cv_filesystem_timestamp_resolution" ) &
1.187 moko 3683: am_sleep_pid=$!
1.237 moko 3684: ;;
3685: esac
1.187 moko 3686: fi
3687:
3688: rm -f conftest.file
3689:
1.1 paf 3690: test "$program_prefix" != NONE &&
1.150 moko 3691: program_transform_name="s&^&$program_prefix&;$program_transform_name"
1.1 paf 3692: # Use a double $ so make ignores it.
3693: test "$program_suffix" != NONE &&
1.150 moko 3694: program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3695: # Double any \ or $.
1.237 moko 3696: # By default was 's,x,x', remove it if useless.
1.150 moko 3697: ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
1.237 moko 3698: program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
3699:
1.62 paf 3700:
1.187 moko 3701: # Expand $ac_aux_dir to an absolute path.
3702: am_aux_dir=`cd "$ac_aux_dir" && pwd`
1.62 paf 3703:
1.237 moko 3704:
3705: if test x"${MISSING+set}" != xset; then
1.216 moko 3706: MISSING="\${SHELL} '$am_aux_dir/missing'"
1.150 moko 3707: fi
1.62 paf 3708: # Use eval to expand $SHELL
1.187 moko 3709: if eval "$MISSING --is-lightweight"; then
3710: am_missing_run="$MISSING "
1.62 paf 3711: else
3712: am_missing_run=
1.237 moko 3713: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3714: printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
1.62 paf 3715: fi
3716:
1.187 moko 3717: if test x"${install_sh+set}" != xset; then
1.150 moko 3718: case $am_aux_dir in
3719: *\ * | *\ *)
3720: install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3721: *)
3722: install_sh="\${SHELL} $am_aux_dir/install-sh"
3723: esac
1.86 paf 3724: fi
3725:
1.187 moko 3726: # Installed binaries are usually stripped using 'strip' when the user
3727: # run "make install-strip". However 'strip' might not be the right
1.150 moko 3728: # tool to use in cross-compilation environments, therefore Automake
1.187 moko 3729: # will honor the 'STRIP' environment variable to overrule this program.
1.150 moko 3730: if test "$cross_compiling" != no; then
3731: if test -n "$ac_tool_prefix"; then
3732: # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3733: set dummy ${ac_tool_prefix}strip; ac_word=$2
1.237 moko 3734: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3735: printf %s "checking for $ac_word... " >&6; }
3736: if test ${ac_cv_prog_STRIP+y}
3737: then :
3738: printf %s "(cached) " >&6
3739: else case e in #(
3740: e) if test -n "$STRIP"; then
1.150 moko 3741: ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3742: else
3743: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3744: for as_dir in $PATH
3745: do
3746: IFS=$as_save_IFS
1.237 moko 3747: case $as_dir in #(((
3748: '') as_dir=./ ;;
3749: */) ;;
3750: *) as_dir=$as_dir/ ;;
3751: esac
1.150 moko 3752: for ac_exec_ext in '' $ac_executable_extensions; do
1.237 moko 3753: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.150 moko 3754: ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1.237 moko 3755: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.150 moko 3756: break 2
3757: fi
3758: done
3759: done
3760: IFS=$as_save_IFS
3761:
1.237 moko 3762: fi ;;
3763: esac
1.150 moko 3764: fi
3765: STRIP=$ac_cv_prog_STRIP
3766: if test -n "$STRIP"; then
1.237 moko 3767: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3768: printf "%s\n" "$STRIP" >&6; }
1.150 moko 3769: else
1.237 moko 3770: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3771: printf "%s\n" "no" >&6; }
1.150 moko 3772: fi
3773:
3774:
3775: fi
3776: if test -z "$ac_cv_prog_STRIP"; then
3777: ac_ct_STRIP=$STRIP
3778: # Extract the first word of "strip", so it can be a program name with args.
3779: set dummy strip; ac_word=$2
1.237 moko 3780: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3781: printf %s "checking for $ac_word... " >&6; }
3782: if test ${ac_cv_prog_ac_ct_STRIP+y}
3783: then :
3784: printf %s "(cached) " >&6
3785: else case e in #(
3786: e) if test -n "$ac_ct_STRIP"; then
1.150 moko 3787: ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3788: else
3789: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3790: for as_dir in $PATH
3791: do
3792: IFS=$as_save_IFS
1.237 moko 3793: case $as_dir in #(((
3794: '') as_dir=./ ;;
3795: */) ;;
3796: *) as_dir=$as_dir/ ;;
3797: esac
1.150 moko 3798: for ac_exec_ext in '' $ac_executable_extensions; do
1.237 moko 3799: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.150 moko 3800: ac_cv_prog_ac_ct_STRIP="strip"
1.237 moko 3801: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.150 moko 3802: break 2
3803: fi
3804: done
3805: done
3806: IFS=$as_save_IFS
3807:
1.237 moko 3808: fi ;;
3809: esac
1.150 moko 3810: fi
3811: ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3812: if test -n "$ac_ct_STRIP"; then
1.237 moko 3813: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3814: printf "%s\n" "$ac_ct_STRIP" >&6; }
1.150 moko 3815: else
1.237 moko 3816: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3817: printf "%s\n" "no" >&6; }
1.150 moko 3818: fi
3819:
3820: if test "x$ac_ct_STRIP" = x; then
3821: STRIP=":"
3822: else
3823: case $cross_compiling:$ac_tool_warned in
3824: yes:)
1.237 moko 3825: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3826: printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
1.150 moko 3827: ac_tool_warned=yes ;;
3828: esac
3829: STRIP=$ac_ct_STRIP
3830: fi
3831: else
3832: STRIP="$ac_cv_prog_STRIP"
3833: fi
3834:
3835: fi
3836: INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3837:
1.237 moko 3838:
3839: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
3840: printf %s "checking for a race-free mkdir -p... " >&6; }
1.150 moko 3841: if test -z "$MKDIR_P"; then
1.237 moko 3842: if test ${ac_cv_path_mkdir+y}
3843: then :
3844: printf %s "(cached) " >&6
3845: else case e in #(
3846: e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1.150 moko 3847: for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3848: do
3849: IFS=$as_save_IFS
1.237 moko 3850: case $as_dir in #(((
3851: '') as_dir=./ ;;
3852: */) ;;
3853: *) as_dir=$as_dir/ ;;
3854: esac
1.150 moko 3855: for ac_prog in mkdir gmkdir; do
3856: for ac_exec_ext in '' $ac_executable_extensions; do
1.237 moko 3857: as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
3858: case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
3859: 'mkdir ('*'coreutils) '* | \
3860: *'BusyBox '* | \
1.150 moko 3861: 'mkdir (fileutils) '4.1*)
1.237 moko 3862: ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
1.150 moko 3863: break 3;;
3864: esac
3865: done
3866: done
3867: done
3868: IFS=$as_save_IFS
1.237 moko 3869: ;;
3870: esac
1.150 moko 3871: fi
3872:
3873: test -d ./--version && rmdir ./--version
1.237 moko 3874: if test ${ac_cv_path_mkdir+y}; then
1.150 moko 3875: MKDIR_P="$ac_cv_path_mkdir -p"
3876: else
1.237 moko 3877: # As a last resort, use plain mkdir -p,
3878: # in the hope it doesn't have the bugs of ancient mkdir.
3879: MKDIR_P='mkdir -p'
1.150 moko 3880: fi
3881: fi
1.237 moko 3882: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3883: printf "%s\n" "$MKDIR_P" >&6; }
1.150 moko 3884:
3885: for ac_prog in gawk mawk nawk awk
1.62 paf 3886: do
3887: # Extract the first word of "$ac_prog", so it can be a program name with args.
3888: set dummy $ac_prog; ac_word=$2
1.237 moko 3889: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3890: printf %s "checking for $ac_word... " >&6; }
3891: if test ${ac_cv_prog_AWK+y}
3892: then :
3893: printf %s "(cached) " >&6
3894: else case e in #(
3895: e) if test -n "$AWK"; then
1.62 paf 3896: ac_cv_prog_AWK="$AWK" # Let the user override the test.
3897: else
3898: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3899: for as_dir in $PATH
3900: do
3901: IFS=$as_save_IFS
1.237 moko 3902: case $as_dir in #(((
3903: '') as_dir=./ ;;
3904: */) ;;
3905: *) as_dir=$as_dir/ ;;
3906: esac
1.150 moko 3907: for ac_exec_ext in '' $ac_executable_extensions; do
1.237 moko 3908: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.62 paf 3909: ac_cv_prog_AWK="$ac_prog"
1.237 moko 3910: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.62 paf 3911: break 2
3912: fi
3913: done
1.150 moko 3914: done
3915: IFS=$as_save_IFS
1.62 paf 3916:
1.237 moko 3917: fi ;;
3918: esac
1.62 paf 3919: fi
3920: AWK=$ac_cv_prog_AWK
3921: if test -n "$AWK"; then
1.237 moko 3922: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3923: printf "%s\n" "$AWK" >&6; }
1.62 paf 3924: else
1.237 moko 3925: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3926: printf "%s\n" "no" >&6; }
1.62 paf 3927: fi
1.1 paf 3928:
1.150 moko 3929:
1.62 paf 3930: test -n "$AWK" && break
3931: done
1.1 paf 3932:
1.237 moko 3933: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3934: printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
1.150 moko 3935: set x ${MAKE-make}
1.237 moko 3936: ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3937: if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3938: then :
3939: printf %s "(cached) " >&6
3940: else case e in #(
3941: e) cat >conftest.make <<\_ACEOF
1.150 moko 3942: SHELL = /bin/sh
1.1 paf 3943: all:
1.150 moko 3944: @echo '@@@%%%=$(MAKE)=@@@%%%'
1.62 paf 3945: _ACEOF
1.150 moko 3946: # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3947: case `${MAKE-make} -f conftest.make 2>/dev/null` in
3948: *@@@%%%=?*=@@@%%%*)
3949: eval ac_cv_prog_make_${ac_make}_set=yes;;
3950: *)
3951: eval ac_cv_prog_make_${ac_make}_set=no;;
3952: esac
1.237 moko 3953: rm -f conftest.make ;;
3954: esac
1.1 paf 3955: fi
1.150 moko 3956: if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
1.237 moko 3957: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3958: printf "%s\n" "yes" >&6; }
1.1 paf 3959: SET_MAKE=
3960: else
1.237 moko 3961: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3962: printf "%s\n" "no" >&6; }
1.1 paf 3963: SET_MAKE="MAKE=${MAKE-make}"
3964: fi
3965:
1.86 paf 3966: rm -rf .tst 2>/dev/null
3967: mkdir .tst 2>/dev/null
3968: if test -d .tst; then
3969: am__leading_dot=.
3970: else
3971: am__leading_dot=_
3972: fi
3973: rmdir .tst 2>/dev/null
3974:
1.237 moko 3975: AM_DEFAULT_VERBOSITY=1
1.187 moko 3976: # Check whether --enable-silent-rules was given.
1.237 moko 3977: if test ${enable_silent_rules+y}
3978: then :
1.187 moko 3979: enableval=$enable_silent_rules;
3980: fi
3981:
3982: am_make=${MAKE-make}
1.237 moko 3983: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3984: printf %s "checking whether $am_make supports nested variables... " >&6; }
3985: if test ${am_cv_make_support_nested_variables+y}
3986: then :
3987: printf %s "(cached) " >&6
3988: else case e in #(
3989: e) if printf "%s\n" 'TRUE=$(BAR$(V))
1.187 moko 3990: BAR0=false
3991: BAR1=true
3992: V=1
3993: am__doit:
3994: @$(TRUE)
3995: .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3996: am_cv_make_support_nested_variables=yes
3997: else
3998: am_cv_make_support_nested_variables=no
1.237 moko 3999: fi ;;
4000: esac
1.187 moko 4001: fi
1.237 moko 4002: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4003: printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
4004: AM_BACKSLASH='\'
4005:
4006: am__rm_f_notfound=
4007: if (rm -f && rm -fr && rm -rf) 2>/dev/null
4008: then :
4009:
4010: else case e in #(
4011: e) am__rm_f_notfound='""' ;;
4012: esac
1.187 moko 4013: fi
1.237 moko 4014:
4015:
4016: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking xargs -n works" >&5
4017: printf %s "checking xargs -n works... " >&6; }
4018: if test ${am_cv_xargs_n_works+y}
4019: then :
4020: printf %s "(cached) " >&6
4021: else case e in #(
4022: e) if test "`echo 1 2 3 | xargs -n2 echo`" = "1 2
4023: 3"
4024: then :
4025: am_cv_xargs_n_works=yes
4026: else case e in #(
4027: e) am_cv_xargs_n_works=no ;;
4028: esac
4029: fi ;;
4030: esac
4031: fi
4032: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_xargs_n_works" >&5
4033: printf "%s\n" "$am_cv_xargs_n_works" >&6; }
4034: if test "$am_cv_xargs_n_works" = yes
4035: then :
4036: am__xargs_n='xargs -n'
4037: else case e in #(
4038: e) am__xargs_n='am__xargs_n () { shift; sed "s/ /\\n/g" | while read am__xargs_n_arg; do "" "$am__xargs_n_arg"; done; }'
4039: ;;
4040: esac
1.187 moko 4041: fi
4042:
1.150 moko 4043: if test "`cd $srcdir && pwd`" != "`pwd`"; then
4044: # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4045: # is not polluted with repeated "-I."
4046: am__isrc=' -I$(srcdir)'
4047: # test to see if srcdir already configured
4048: if test -f $srcdir/config.status; then
4049: as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4050: fi
1.62 paf 4051: fi
4052:
4053: # test whether we have cygpath
4054: if test -z "$CYGPATH_W"; then
4055: if (cygpath --version) >/dev/null 2>/dev/null; then
4056: CYGPATH_W='cygpath -w'
4057: else
4058: CYGPATH_W=echo
4059: fi
4060: fi
4061:
4062:
4063: # Define the identity of the package.
1.128 moko 4064: PACKAGE='parser'
1.230 moko 4065: VERSION='3.5.2b'
1.128 moko 4066:
4067:
1.237 moko 4068: printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
1.1 paf 4069:
4070:
1.237 moko 4071: printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
1.128 moko 4072:
1.62 paf 4073: # Some tools Automake needs.
4074:
4075: ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4076:
4077:
4078: AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4079:
4080:
4081: AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4082:
4083:
4084: AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4085:
4086:
4087: MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1.1 paf 4088:
1.187 moko 4089: # For better backward compatibility. To be removed once Automake 1.9.x
4090: # dies out for good. For more background, see:
1.199 moko 4091: # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4092: # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
1.187 moko 4093: mkdir_p='$(MKDIR_P)'
4094:
4095: # We need awk for the "check" target (and possibly the TAP driver). The
4096: # system "awk" is bad on some platforms.
4097: # Always define AMTAR for backward compatibility. Yes, it's still used
4098: # in the wild :-( We should find a proper way to deprecate it ...
4099: AMTAR='$${TAR-tar}'
4100:
4101:
4102: # We'll loop over all known methods to create a tar archive until one works.
4103: _am_tools='gnutar pax cpio none'
4104:
4105: am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
4106:
1.86 paf 4107:
4108:
4109:
4110:
1.237 moko 4111: # Variables for tags utilities; see am/tags.am
4112: if test -z "$CTAGS"; then
4113: CTAGS=ctags
4114: fi
4115:
4116: if test -z "$ETAGS"; then
4117: ETAGS=etags
4118: fi
4119:
4120: if test -z "$CSCOPE"; then
4121: CSCOPE=cscope
4122: fi
4123:
1.62 paf 4124:
1.187 moko 4125:
4126:
4127:
4128:
1.1 paf 4129:
4130:
1.128 moko 4131:
1.12 paf 4132: P3S=`cd $srcdir/src ; pwd`
1.1 paf 4133:
4134:
1.128 moko 4135:
1.237 moko 4136:
4137:
4138: # Make sure we can run config.sub.
4139: $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
4140: as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
4141:
4142: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4143: printf %s "checking build system type... " >&6; }
4144: if test ${ac_cv_build+y}
4145: then :
4146: printf %s "(cached) " >&6
4147: else case e in #(
4148: e) ac_build_alias=$build_alias
1.150 moko 4149: test "x$ac_build_alias" = x &&
1.237 moko 4150: ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
1.150 moko 4151: test "x$ac_build_alias" = x &&
4152: as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
1.237 moko 4153: ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
4154: as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
4155: ;;
4156: esac
1.150 moko 4157: fi
1.237 moko 4158: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4159: printf "%s\n" "$ac_cv_build" >&6; }
1.150 moko 4160: case $ac_cv_build in
4161: *-*-*) ;;
4162: *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4163: esac
4164: build=$ac_cv_build
4165: ac_save_IFS=$IFS; IFS='-'
4166: set x $ac_cv_build
4167: shift
4168: build_cpu=$1
4169: build_vendor=$2
4170: shift; shift
4171: # Remember, the first character of IFS is used to create $*,
4172: # except with old shells:
4173: build_os=$*
4174: IFS=$ac_save_IFS
4175: case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4176:
4177:
1.237 moko 4178: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4179: printf %s "checking host system type... " >&6; }
4180: if test ${ac_cv_host+y}
4181: then :
4182: printf %s "(cached) " >&6
4183: else case e in #(
4184: e) if test "x$host_alias" = x; then
1.150 moko 4185: ac_cv_host=$ac_cv_build
4186: else
1.237 moko 4187: ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
4188: as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
1.62 paf 4189: fi
1.237 moko 4190: ;;
4191: esac
1.62 paf 4192: fi
1.237 moko 4193: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4194: printf "%s\n" "$ac_cv_host" >&6; }
1.150 moko 4195: case $ac_cv_host in
4196: *-*-*) ;;
4197: *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4198: esac
1.62 paf 4199: host=$ac_cv_host
1.150 moko 4200: ac_save_IFS=$IFS; IFS='-'
4201: set x $ac_cv_host
4202: shift
4203: host_cpu=$1
4204: host_vendor=$2
4205: shift; shift
4206: # Remember, the first character of IFS is used to create $*,
4207: # except with old shells:
4208: host_os=$*
4209: IFS=$ac_save_IFS
4210: case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
1.81 paf 4211:
4212:
4213:
1.237 moko 4214: printf "%s\n" "#define PARSER_VERSION \"$VERSION (compiled on $host)\"" >>confdefs.h
1.147 moko 4215:
4216:
1.41 paf 4217:
1.67 paf 4218: case $host_os in
4219: *cygwin* )
1.237 moko 4220: printf "%s\n" "#define CYGWIN /**/" >>confdefs.h
1.67 paf 4221: ;;
4222: esac
1.41 paf 4223:
1.128 moko 4224:
1.1 paf 4225:
1.62 paf 4226: for ac_prog in gawk mawk nawk awk
1.41 paf 4227: do
1.62 paf 4228: # Extract the first word of "$ac_prog", so it can be a program name with args.
1.41 paf 4229: set dummy $ac_prog; ac_word=$2
1.237 moko 4230: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4231: printf %s "checking for $ac_word... " >&6; }
4232: if test ${ac_cv_prog_AWK+y}
4233: then :
4234: printf %s "(cached) " >&6
4235: else case e in #(
4236: e) if test -n "$AWK"; then
1.41 paf 4237: ac_cv_prog_AWK="$AWK" # Let the user override the test.
4238: else
1.62 paf 4239: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4240: for as_dir in $PATH
4241: do
4242: IFS=$as_save_IFS
1.237 moko 4243: case $as_dir in #(((
4244: '') as_dir=./ ;;
4245: */) ;;
4246: *) as_dir=$as_dir/ ;;
4247: esac
1.150 moko 4248: for ac_exec_ext in '' $ac_executable_extensions; do
1.237 moko 4249: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.62 paf 4250: ac_cv_prog_AWK="$ac_prog"
1.237 moko 4251: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.62 paf 4252: break 2
4253: fi
4254: done
1.150 moko 4255: done
4256: IFS=$as_save_IFS
1.62 paf 4257:
1.237 moko 4258: fi ;;
4259: esac
1.41 paf 4260: fi
1.62 paf 4261: AWK=$ac_cv_prog_AWK
1.41 paf 4262: if test -n "$AWK"; then
1.237 moko 4263: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4264: printf "%s\n" "$AWK" >&6; }
1.41 paf 4265: else
1.237 moko 4266: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4267: printf "%s\n" "no" >&6; }
1.41 paf 4268: fi
4269:
1.150 moko 4270:
1.62 paf 4271: test -n "$AWK" && break
1.41 paf 4272: done
4273:
4274:
4275: for ac_prog in 'bison -y' byacc
4276: do
1.62 paf 4277: # Extract the first word of "$ac_prog", so it can be a program name with args.
1.41 paf 4278: set dummy $ac_prog; ac_word=$2
1.237 moko 4279: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4280: printf %s "checking for $ac_word... " >&6; }
4281: if test ${ac_cv_prog_YACC+y}
4282: then :
4283: printf %s "(cached) " >&6
4284: else case e in #(
4285: e) if test -n "$YACC"; then
1.41 paf 4286: ac_cv_prog_YACC="$YACC" # Let the user override the test.
4287: else
1.62 paf 4288: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4289: for as_dir in $PATH
4290: do
4291: IFS=$as_save_IFS
1.237 moko 4292: case $as_dir in #(((
4293: '') as_dir=./ ;;
4294: */) ;;
4295: *) as_dir=$as_dir/ ;;
4296: esac
1.150 moko 4297: for ac_exec_ext in '' $ac_executable_extensions; do
1.237 moko 4298: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.62 paf 4299: ac_cv_prog_YACC="$ac_prog"
1.237 moko 4300: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.62 paf 4301: break 2
4302: fi
4303: done
1.150 moko 4304: done
4305: IFS=$as_save_IFS
1.62 paf 4306:
1.237 moko 4307: fi ;;
4308: esac
1.41 paf 4309: fi
1.62 paf 4310: YACC=$ac_cv_prog_YACC
1.41 paf 4311: if test -n "$YACC"; then
1.237 moko 4312: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
4313: printf "%s\n" "$YACC" >&6; }
1.41 paf 4314: else
1.237 moko 4315: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4316: printf "%s\n" "no" >&6; }
1.41 paf 4317: fi
4318:
1.150 moko 4319:
1.62 paf 4320: test -n "$YACC" && break
1.41 paf 4321: done
4322: test -n "$YACC" || YACC="yacc"
4323:
4324: if test "$YACC" != "bison -y"; then
1.237 moko 4325: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: to regenerate Parser grammar YOU WOULD NEED BISON" >&5
4326: printf "%s\n" "$as_me: WARNING: to regenerate Parser grammar YOU WOULD NEED BISON" >&2;}
1.41 paf 4327: else
1.237 moko 4328: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking bison version" >&5
4329: printf %s "checking bison version... " >&6; }
1.67 paf 4330: oldIFS=$IFS; IFS=.
4331: set `bison -V | sed -e 's/^GNU Bison version //' -e 's/^bison (GNU Bison) //' -e 's/$/./'`
4332: IFS=$oldIFS
4333: if test "$1" = "1" -a "$2" -lt "25"; then
1.237 moko 4334: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Bison 1.25 or newer needed to regenerate Parser compiler (found $1.$2)." >&5
4335: printf "%s\n" "$as_me: WARNING: Bison 1.25 or newer needed to regenerate Parser compiler (found $1.$2)." >&2;}
1.67 paf 4336: fi
1.237 moko 4337: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $1.$2 (ok)" >&5
4338: printf "%s\n" "$1.$2 (ok)" >&6; }
1.62 paf 4339: fi
4340:
1.237 moko 4341:
4342:
4343:
4344:
4345:
4346:
1.150 moko 4347: ac_ext=cpp
1.66 paf 4348: ac_cpp='$CXXCPP $CPPFLAGS'
4349: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4350: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4351: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1.150 moko 4352: if test -z "$CXX"; then
4353: if test -n "$CCC"; then
4354: CXX=$CCC
4355: else
4356: if test -n "$ac_tool_prefix"; then
1.237 moko 4357: for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
1.66 paf 4358: do
4359: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4360: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1.237 moko 4361: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4362: printf %s "checking for $ac_word... " >&6; }
4363: if test ${ac_cv_prog_CXX+y}
4364: then :
4365: printf %s "(cached) " >&6
4366: else case e in #(
4367: e) if test -n "$CXX"; then
1.66 paf 4368: ac_cv_prog_CXX="$CXX" # Let the user override the test.
1.62 paf 4369: else
4370: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4371: for as_dir in $PATH
4372: do
4373: IFS=$as_save_IFS
1.237 moko 4374: case $as_dir in #(((
4375: '') as_dir=./ ;;
4376: */) ;;
4377: *) as_dir=$as_dir/ ;;
4378: esac
1.150 moko 4379: for ac_exec_ext in '' $ac_executable_extensions; do
1.237 moko 4380: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.66 paf 4381: ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
1.237 moko 4382: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.62 paf 4383: break 2
4384: fi
4385: done
1.150 moko 4386: done
4387: IFS=$as_save_IFS
1.62 paf 4388:
1.237 moko 4389: fi ;;
4390: esac
1.62 paf 4391: fi
1.66 paf 4392: CXX=$ac_cv_prog_CXX
4393: if test -n "$CXX"; then
1.237 moko 4394: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4395: printf "%s\n" "$CXX" >&6; }
1.62 paf 4396: else
1.237 moko 4397: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4398: printf "%s\n" "no" >&6; }
1.41 paf 4399: fi
4400:
1.150 moko 4401:
1.66 paf 4402: test -n "$CXX" && break
4403: done
1.62 paf 4404: fi
1.66 paf 4405: if test -z "$CXX"; then
4406: ac_ct_CXX=$CXX
1.237 moko 4407: for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
1.66 paf 4408: do
4409: # Extract the first word of "$ac_prog", so it can be a program name with args.
4410: set dummy $ac_prog; ac_word=$2
1.237 moko 4411: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4412: printf %s "checking for $ac_word... " >&6; }
4413: if test ${ac_cv_prog_ac_ct_CXX+y}
4414: then :
4415: printf %s "(cached) " >&6
4416: else case e in #(
4417: e) if test -n "$ac_ct_CXX"; then
1.66 paf 4418: ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
1.62 paf 4419: else
4420: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4421: for as_dir in $PATH
4422: do
4423: IFS=$as_save_IFS
1.237 moko 4424: case $as_dir in #(((
4425: '') as_dir=./ ;;
4426: */) ;;
4427: *) as_dir=$as_dir/ ;;
4428: esac
1.150 moko 4429: for ac_exec_ext in '' $ac_executable_extensions; do
1.237 moko 4430: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.66 paf 4431: ac_cv_prog_ac_ct_CXX="$ac_prog"
1.237 moko 4432: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.62 paf 4433: break 2
4434: fi
4435: done
1.150 moko 4436: done
4437: IFS=$as_save_IFS
1.62 paf 4438:
1.237 moko 4439: fi ;;
4440: esac
1.62 paf 4441: fi
1.66 paf 4442: ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4443: if test -n "$ac_ct_CXX"; then
1.237 moko 4444: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4445: printf "%s\n" "$ac_ct_CXX" >&6; }
1.62 paf 4446: else
1.237 moko 4447: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4448: printf "%s\n" "no" >&6; }
1.62 paf 4449: fi
4450:
1.150 moko 4451:
1.66 paf 4452: test -n "$ac_ct_CXX" && break
4453: done
4454:
1.150 moko 4455: if test "x$ac_ct_CXX" = x; then
4456: CXX="g++"
4457: else
4458: case $cross_compiling:$ac_tool_warned in
4459: yes:)
1.237 moko 4460: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4461: printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
1.150 moko 4462: ac_tool_warned=yes ;;
4463: esac
4464: CXX=$ac_ct_CXX
4465: fi
1.62 paf 4466: fi
4467:
1.150 moko 4468: fi
4469: fi
1.66 paf 4470: # Provide some information about the compiler.
1.237 moko 4471: printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
1.150 moko 4472: set X $ac_compile
4473: ac_compiler=$2
4474: for ac_option in --version -v -V -qversion; do
4475: { { ac_try="$ac_compiler $ac_option >&5"
4476: case "(($ac_try" in
4477: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4478: *) ac_try_echo=$ac_try;;
4479: esac
4480: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1.237 moko 4481: printf "%s\n" "$ac_try_echo"; } >&5
1.150 moko 4482: (eval "$ac_compiler $ac_option >&5") 2>conftest.err
1.66 paf 4483: ac_status=$?
1.150 moko 4484: if test -s conftest.err; then
4485: sed '10a\
4486: ... rest of stderr output deleted ...
4487: 10q' conftest.err >conftest.er1
4488: cat conftest.er1 >&5
4489: fi
4490: rm -f conftest.er1 conftest.err
1.237 moko 4491: printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1.150 moko 4492: test $ac_status = 0; }
4493: done
1.66 paf 4494:
1.150 moko 4495: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.66 paf 4496: /* end confdefs.h. */
4497:
4498: int
1.237 moko 4499: main (void)
1.66 paf 4500: {
4501:
4502: ;
4503: return 0;
4504: }
4505: _ACEOF
4506: ac_clean_files_save=$ac_clean_files
1.150 moko 4507: ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
1.66 paf 4508: # Try to create an executable without -o first, disregard a.out.
4509: # It will help us diagnose broken compilers, and finding out an intuition
4510: # of exeext.
1.237 moko 4511: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
4512: printf %s "checking whether the C++ compiler works... " >&6; }
4513: ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1.150 moko 4514:
4515: # The possible output files:
4516: ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4517:
4518: ac_rmfiles=
4519: for ac_file in $ac_files
4520: do
4521: case $ac_file in
4522: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4523: * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4524: esac
4525: done
4526: rm -f $ac_rmfiles
4527:
4528: if { { ac_try="$ac_link_default"
4529: case "(($ac_try" in
4530: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4531: *) ac_try_echo=$ac_try;;
4532: esac
4533: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1.237 moko 4534: printf "%s\n" "$ac_try_echo"; } >&5
1.150 moko 4535: (eval "$ac_link_default") 2>&5
4536: ac_status=$?
1.237 moko 4537: printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4538: test $ac_status = 0; }
4539: then :
4540: # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'.
4541: # So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no'
1.150 moko 4542: # in a Makefile. We should not override ac_cv_exeext if it was cached,
4543: # so that the user can short-circuit this test for compilers unknown to
4544: # Autoconf.
4545: for ac_file in $ac_files ''
1.62 paf 4546: do
1.66 paf 4547: test -f "$ac_file" || continue
4548: case $ac_file in
1.150 moko 4549: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
1.86 paf 4550: ;;
1.66 paf 4551: [ab].out )
1.86 paf 4552: # We found the default executable, but exeext='' is most
4553: # certainly right.
4554: break;;
1.66 paf 4555: *.* )
1.237 moko 4556: if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
1.150 moko 4557: then :; else
4558: ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4559: fi
4560: # We set ac_cv_exeext here because the later test for it is not
1.237 moko 4561: # safe: cross compilers may not add the suffix if given an '-o'
1.150 moko 4562: # argument, so we may need to know it at that point already.
4563: # Even if this section looks crufty: it has the advantage of
4564: # actually working.
1.86 paf 4565: break;;
1.66 paf 4566: * )
1.86 paf 4567: break;;
1.66 paf 4568: esac
1.62 paf 4569: done
1.150 moko 4570: test "$ac_cv_exeext" = no && ac_cv_exeext=
4571:
1.237 moko 4572: else case e in #(
4573: e) ac_file='' ;;
4574: esac
1.150 moko 4575: fi
1.237 moko 4576: if test -z "$ac_file"
4577: then :
4578: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4579: printf "%s\n" "no" >&6; }
4580: printf "%s\n" "$as_me: failed program was:" >&5
1.66 paf 4581: sed 's/^/| /' conftest.$ac_ext >&5
1.62 paf 4582:
1.237 moko 4583: { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4584: printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
1.150 moko 4585: as_fn_error 77 "C++ compiler cannot create executables
1.237 moko 4586: See 'config.log' for more details" "$LINENO" 5; }
4587: else case e in #(
4588: e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4589: printf "%s\n" "yes" >&6; } ;;
4590: esac
1.1 paf 4591: fi
1.237 moko 4592: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
4593: printf %s "checking for C++ compiler default output file name... " >&6; }
4594: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4595: printf "%s\n" "$ac_file" >&6; }
1.66 paf 4596: ac_exeext=$ac_cv_exeext
1.62 paf 4597:
1.150 moko 4598: rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
1.66 paf 4599: ac_clean_files=$ac_clean_files_save
1.237 moko 4600: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4601: printf %s "checking for suffix of executables... " >&6; }
1.150 moko 4602: if { { ac_try="$ac_link"
4603: case "(($ac_try" in
4604: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4605: *) ac_try_echo=$ac_try;;
4606: esac
4607: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1.237 moko 4608: printf "%s\n" "$ac_try_echo"; } >&5
1.150 moko 4609: (eval "$ac_link") 2>&5
1.62 paf 4610: ac_status=$?
1.237 moko 4611: printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4612: test $ac_status = 0; }
4613: then :
4614: # If both 'conftest.exe' and 'conftest' are 'present' (well, observable)
4615: # catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will
4616: # work properly (i.e., refer to 'conftest.exe'), while it won't with
4617: # 'rm'.
1.62 paf 4618: for ac_file in conftest.exe conftest conftest.*; do
4619: test -f "$ac_file" || continue
4620: case $ac_file in
1.150 moko 4621: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
1.62 paf 4622: *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1.86 paf 4623: break;;
1.62 paf 4624: * ) break;;
4625: esac
4626: done
1.237 moko 4627: else case e in #(
4628: e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4629: printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
1.150 moko 4630: as_fn_error $? "cannot compute suffix of executables: cannot compile and link
1.237 moko 4631: See 'config.log' for more details" "$LINENO" 5; } ;;
4632: esac
1.150 moko 4633: fi
4634: rm -f conftest conftest$ac_cv_exeext
1.237 moko 4635: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4636: printf "%s\n" "$ac_cv_exeext" >&6; }
1.62 paf 4637:
4638: rm -f conftest.$ac_ext
4639: EXEEXT=$ac_cv_exeext
4640: ac_exeext=$EXEEXT
1.150 moko 4641: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4642: /* end confdefs.h. */
4643: #include <stdio.h>
4644: int
1.237 moko 4645: main (void)
1.150 moko 4646: {
4647: FILE *f = fopen ("conftest.out", "w");
1.237 moko 4648: if (!f)
4649: return 1;
1.150 moko 4650: return ferror (f) || fclose (f) != 0;
4651:
4652: ;
4653: return 0;
4654: }
4655: _ACEOF
4656: ac_clean_files="$ac_clean_files conftest.out"
4657: # Check that the compiler produces executables we can run. If not, either
4658: # the compiler is broken, or we cross compile.
1.237 moko 4659: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4660: printf %s "checking whether we are cross compiling... " >&6; }
1.150 moko 4661: if test "$cross_compiling" != yes; then
4662: { { ac_try="$ac_link"
4663: case "(($ac_try" in
4664: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4665: *) ac_try_echo=$ac_try;;
4666: esac
4667: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1.237 moko 4668: printf "%s\n" "$ac_try_echo"; } >&5
1.150 moko 4669: (eval "$ac_link") 2>&5
4670: ac_status=$?
1.237 moko 4671: printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1.150 moko 4672: test $ac_status = 0; }
4673: if { ac_try='./conftest$ac_cv_exeext'
4674: { { case "(($ac_try" in
4675: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4676: *) ac_try_echo=$ac_try;;
4677: esac
4678: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1.237 moko 4679: printf "%s\n" "$ac_try_echo"; } >&5
1.150 moko 4680: (eval "$ac_try") 2>&5
4681: ac_status=$?
1.237 moko 4682: printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1.150 moko 4683: test $ac_status = 0; }; }; then
4684: cross_compiling=no
4685: else
4686: if test "$cross_compiling" = maybe; then
4687: cross_compiling=yes
4688: else
1.237 moko 4689: { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4690: printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4691: as_fn_error 77 "cannot run C++ compiled programs.
4692: If you meant to cross compile, use '--host'.
4693: See 'config.log' for more details" "$LINENO" 5; }
1.150 moko 4694: fi
4695: fi
4696: fi
1.237 moko 4697: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4698: printf "%s\n" "$cross_compiling" >&6; }
1.150 moko 4699:
1.237 moko 4700: rm -f conftest.$ac_ext conftest$ac_cv_exeext \
4701: conftest.o conftest.obj conftest.out
1.150 moko 4702: ac_clean_files=$ac_clean_files_save
1.237 moko 4703: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4704: printf %s "checking for suffix of object files... " >&6; }
4705: if test ${ac_cv_objext+y}
4706: then :
4707: printf %s "(cached) " >&6
4708: else case e in #(
4709: e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.62 paf 4710: /* end confdefs.h. */
4711:
4712: int
1.237 moko 4713: main (void)
1.62 paf 4714: {
4715:
4716: ;
4717: return 0;
4718: }
4719: _ACEOF
4720: rm -f conftest.o conftest.obj
1.150 moko 4721: if { { ac_try="$ac_compile"
4722: case "(($ac_try" in
4723: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4724: *) ac_try_echo=$ac_try;;
4725: esac
4726: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1.237 moko 4727: printf "%s\n" "$ac_try_echo"; } >&5
1.150 moko 4728: (eval "$ac_compile") 2>&5
4729: ac_status=$?
1.237 moko 4730: printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4731: test $ac_status = 0; }
4732: then :
1.150 moko 4733: for ac_file in conftest.o conftest.obj conftest.*; do
4734: test -f "$ac_file" || continue;
1.62 paf 4735: case $ac_file in
1.150 moko 4736: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
1.62 paf 4737: *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4738: break;;
4739: esac
4740: done
1.237 moko 4741: else case e in #(
4742: e) printf "%s\n" "$as_me: failed program was:" >&5
1.62 paf 4743: sed 's/^/| /' conftest.$ac_ext >&5
4744:
1.237 moko 4745: { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4746: printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
1.150 moko 4747: as_fn_error $? "cannot compute suffix of object files: cannot compile
1.237 moko 4748: See 'config.log' for more details" "$LINENO" 5; } ;;
4749: esac
1.62 paf 4750: fi
1.237 moko 4751: rm -f conftest.$ac_cv_objext conftest.$ac_ext ;;
4752: esac
1.62 paf 4753: fi
1.237 moko 4754: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4755: printf "%s\n" "$ac_cv_objext" >&6; }
1.66 paf 4756: OBJEXT=$ac_cv_objext
4757: ac_objext=$OBJEXT
1.237 moko 4758: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C++" >&5
4759: printf %s "checking whether the compiler supports GNU C++... " >&6; }
4760: if test ${ac_cv_cxx_compiler_gnu+y}
4761: then :
4762: printf %s "(cached) " >&6
4763: else case e in #(
4764: e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.62 paf 4765: /* end confdefs.h. */
1.66 paf 4766:
1.62 paf 4767: int
1.237 moko 4768: main (void)
1.62 paf 4769: {
1.66 paf 4770: #ifndef __GNUC__
4771: choke me
4772: #endif
4773:
1.62 paf 4774: ;
4775: return 0;
4776: }
4777: _ACEOF
1.237 moko 4778: if ac_fn_cxx_try_compile "$LINENO"
4779: then :
1.66 paf 4780: ac_compiler_gnu=yes
1.237 moko 4781: else case e in #(
4782: e) ac_compiler_gnu=no ;;
4783: esac
1.1 paf 4784: fi
1.237 moko 4785: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1.66 paf 4786: ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
1.237 moko 4787: ;;
4788: esac
4789: fi
4790: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4791: printf "%s\n" "$ac_cv_cxx_compiler_gnu" >&6; }
4792: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1.1 paf 4793:
1.150 moko 4794: if test $ac_compiler_gnu = yes; then
4795: GXX=yes
4796: else
4797: GXX=
4798: fi
1.237 moko 4799: ac_test_CXXFLAGS=${CXXFLAGS+y}
1.66 paf 4800: ac_save_CXXFLAGS=$CXXFLAGS
1.237 moko 4801: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4802: printf %s "checking whether $CXX accepts -g... " >&6; }
4803: if test ${ac_cv_prog_cxx_g+y}
4804: then :
4805: printf %s "(cached) " >&6
4806: else case e in #(
4807: e) ac_save_cxx_werror_flag=$ac_cxx_werror_flag
1.150 moko 4808: ac_cxx_werror_flag=yes
4809: ac_cv_prog_cxx_g=no
4810: CXXFLAGS="-g"
4811: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.66 paf 4812: /* end confdefs.h. */
1.1 paf 4813:
1.66 paf 4814: int
1.237 moko 4815: main (void)
1.66 paf 4816: {
1.1 paf 4817:
1.66 paf 4818: ;
4819: return 0;
4820: }
1.62 paf 4821: _ACEOF
1.237 moko 4822: if ac_fn_cxx_try_compile "$LINENO"
4823: then :
1.66 paf 4824: ac_cv_prog_cxx_g=yes
1.237 moko 4825: else case e in #(
4826: e) CXXFLAGS=""
1.150 moko 4827: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4828: /* end confdefs.h. */
1.66 paf 4829:
1.62 paf 4830: int
1.237 moko 4831: main (void)
1.62 paf 4832: {
1.150 moko 4833:
1.62 paf 4834: ;
4835: return 0;
4836: }
4837: _ACEOF
1.237 moko 4838: if ac_fn_cxx_try_compile "$LINENO"
4839: then :
1.150 moko 4840:
1.237 moko 4841: else case e in #(
4842: e) ac_cxx_werror_flag=$ac_save_cxx_werror_flag
1.150 moko 4843: CXXFLAGS="-g"
4844: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4845: /* end confdefs.h. */
1.62 paf 4846:
4847: int
1.237 moko 4848: main (void)
1.62 paf 4849: {
1.150 moko 4850:
1.62 paf 4851: ;
4852: return 0;
4853: }
4854: _ACEOF
1.237 moko 4855: if ac_fn_cxx_try_compile "$LINENO"
4856: then :
1.150 moko 4857: ac_cv_prog_cxx_g=yes
4858: fi
1.237 moko 4859: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4860: esac
1.150 moko 4861: fi
1.237 moko 4862: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4863: esac
1.150 moko 4864: fi
1.237 moko 4865: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4866: ac_cxx_werror_flag=$ac_save_cxx_werror_flag ;;
4867: esac
1.150 moko 4868: fi
1.237 moko 4869: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4870: printf "%s\n" "$ac_cv_prog_cxx_g" >&6; }
4871: if test $ac_test_CXXFLAGS; then
1.150 moko 4872: CXXFLAGS=$ac_save_CXXFLAGS
4873: elif test $ac_cv_prog_cxx_g = yes; then
4874: if test "$GXX" = yes; then
4875: CXXFLAGS="-g -O2"
4876: else
4877: CXXFLAGS="-g"
4878: fi
1.1 paf 4879: else
1.150 moko 4880: if test "$GXX" = yes; then
4881: CXXFLAGS="-O2"
4882: else
4883: CXXFLAGS=
4884: fi
1.1 paf 4885: fi
1.237 moko 4886: ac_prog_cxx_stdcxx=no
4887: if test x$ac_prog_cxx_stdcxx = xno
4888: then :
4889: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++11 features" >&5
4890: printf %s "checking for $CXX option to enable C++11 features... " >&6; }
4891: if test ${ac_cv_prog_cxx_cxx11+y}
4892: then :
4893: printf %s "(cached) " >&6
4894: else case e in #(
4895: e) ac_cv_prog_cxx_cxx11=no
4896: ac_save_CXX=$CXX
4897: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4898: /* end confdefs.h. */
4899: $ac_cxx_conftest_cxx11_program
4900: _ACEOF
4901: for ac_arg in '' -std=gnu++11 -std=gnu++0x -std=c++11 -std=c++0x -qlanglvl=extended0x -AA
4902: do
4903: CXX="$ac_save_CXX $ac_arg"
4904: if ac_fn_cxx_try_compile "$LINENO"
4905: then :
4906: ac_cv_prog_cxx_cxx11=$ac_arg
4907: fi
4908: rm -f core conftest.err conftest.$ac_objext conftest.beam
4909: test "x$ac_cv_prog_cxx_cxx11" != "xno" && break
4910: done
4911: rm -f conftest.$ac_ext
4912: CXX=$ac_save_CXX ;;
4913: esac
4914: fi
4915:
4916: if test "x$ac_cv_prog_cxx_cxx11" = xno
4917: then :
4918: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4919: printf "%s\n" "unsupported" >&6; }
4920: else case e in #(
4921: e) if test "x$ac_cv_prog_cxx_cxx11" = x
4922: then :
4923: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4924: printf "%s\n" "none needed" >&6; }
4925: else case e in #(
4926: e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx11" >&5
4927: printf "%s\n" "$ac_cv_prog_cxx_cxx11" >&6; }
4928: CXX="$CXX $ac_cv_prog_cxx_cxx11" ;;
4929: esac
4930: fi
4931: ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx11
4932: ac_prog_cxx_stdcxx=cxx11 ;;
4933: esac
4934: fi
4935: fi
4936: if test x$ac_prog_cxx_stdcxx = xno
4937: then :
4938: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++98 features" >&5
4939: printf %s "checking for $CXX option to enable C++98 features... " >&6; }
4940: if test ${ac_cv_prog_cxx_cxx98+y}
4941: then :
4942: printf %s "(cached) " >&6
4943: else case e in #(
4944: e) ac_cv_prog_cxx_cxx98=no
4945: ac_save_CXX=$CXX
4946: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4947: /* end confdefs.h. */
4948: $ac_cxx_conftest_cxx98_program
4949: _ACEOF
4950: for ac_arg in '' -std=gnu++98 -std=c++98 -qlanglvl=extended -AA
4951: do
4952: CXX="$ac_save_CXX $ac_arg"
4953: if ac_fn_cxx_try_compile "$LINENO"
4954: then :
4955: ac_cv_prog_cxx_cxx98=$ac_arg
4956: fi
4957: rm -f core conftest.err conftest.$ac_objext conftest.beam
4958: test "x$ac_cv_prog_cxx_cxx98" != "xno" && break
4959: done
4960: rm -f conftest.$ac_ext
4961: CXX=$ac_save_CXX ;;
4962: esac
4963: fi
4964:
4965: if test "x$ac_cv_prog_cxx_cxx98" = xno
4966: then :
4967: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4968: printf "%s\n" "unsupported" >&6; }
4969: else case e in #(
4970: e) if test "x$ac_cv_prog_cxx_cxx98" = x
4971: then :
4972: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4973: printf "%s\n" "none needed" >&6; }
4974: else case e in #(
4975: e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx98" >&5
4976: printf "%s\n" "$ac_cv_prog_cxx_cxx98" >&6; }
4977: CXX="$CXX $ac_cv_prog_cxx_cxx98" ;;
4978: esac
4979: fi
4980: ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx98
4981: ac_prog_cxx_stdcxx=cxx98 ;;
4982: esac
4983: fi
4984: fi
4985:
1.62 paf 4986: ac_ext=c
4987: ac_cpp='$CPP $CPPFLAGS'
4988: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4989: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4990: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.86 paf 4991: DEPDIR="${am__leading_dot}deps"
1.62 paf 4992:
1.150 moko 4993: ac_config_commands="$ac_config_commands depfiles"
1.62 paf 4994:
1.237 moko 4995: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
4996: printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
1.199 moko 4997: cat > confinc.mk << 'END'
1.86 paf 4998: am__doit:
1.199 moko 4999: @echo this is the am__doit target >confinc.out
1.86 paf 5000: .PHONY: am__doit
1.62 paf 5001: END
5002: am__include="#"
5003: am__quote=
1.199 moko 5004: # BSD make does it like this.
5005: echo '.include "confinc.mk" # ignored' > confmf.BSD
5006: # Other make implementations (GNU, Solaris 10, AIX) do it like this.
5007: echo 'include confinc.mk # ignored' > confmf.GNU
5008: _am_result=no
5009: for s in GNU BSD; do
5010: { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
5011: (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
5012: ac_status=$?
5013: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5014: (exit $ac_status); }
5015: case $?:`cat confinc.out 2>/dev/null` in #(
5016: '0:this is the am__doit target') :
5017: case $s in #(
5018: BSD) :
5019: am__include='.include' am__quote='"' ;; #(
5020: *) :
5021: am__include='include' am__quote='' ;;
5022: esac ;; #(
5023: *) :
1.150 moko 5024: ;;
1.199 moko 5025: esac
5026: if test "$am__include" != "#"; then
5027: _am_result="yes ($s style)"
5028: break
5029: fi
5030: done
5031: rm -f confinc.* confmf.*
1.237 moko 5032: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
5033: printf "%s\n" "${_am_result}" >&6; }
1.62 paf 5034:
1.150 moko 5035: # Check whether --enable-dependency-tracking was given.
1.237 moko 5036: if test ${enable_dependency_tracking+y}
5037: then :
1.150 moko 5038: enableval=$enable_dependency_tracking;
5039: fi
1.62 paf 5040:
5041: if test "x$enable_dependency_tracking" != xno; then
5042: am_depcomp="$ac_aux_dir/depcomp"
5043: AMDEPBACKSLASH='\'
1.187 moko 5044: am__nodep='_no'
1.1 paf 5045: fi
1.150 moko 5046: if test "x$enable_dependency_tracking" != xno; then
1.62 paf 5047: AMDEP_TRUE=
5048: AMDEP_FALSE='#'
5049: else
5050: AMDEP_TRUE='#'
5051: AMDEP_FALSE=
5052: fi
1.1 paf 5053:
5054:
5055:
1.66 paf 5056: depcc="$CXX" am_compiler_list=
1.1 paf 5057:
1.237 moko 5058: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5059: printf %s "checking dependency style of $depcc... " >&6; }
5060: if test ${am_cv_CXX_dependencies_compiler_type+y}
5061: then :
5062: printf %s "(cached) " >&6
5063: else case e in #(
5064: e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
1.62 paf 5065: # We make a subdir and do the tests there. Otherwise we can end up
5066: # making bogus files that we don't know about and never remove. For
5067: # instance it was reported that on HP-UX the gcc test will end up
1.187 moko 5068: # making a dummy file named 'D' -- because '-MD' means "put the output
5069: # in D".
5070: rm -rf conftest.dir
1.62 paf 5071: mkdir conftest.dir
5072: # Copy depcomp to subdir because otherwise we won't find it if we're
5073: # using a relative directory.
5074: cp "$am_depcomp" conftest.dir
5075: cd conftest.dir
1.86 paf 5076: # We will build objects and dependencies in a subdirectory because
5077: # it helps to detect inapplicable dependency modes. For instance
5078: # both Tru64's cc and ICC support -MD to output dependencies as a
5079: # side effect of compilation, but ICC will put the dependencies in
5080: # the current directory while Tru64 will put them in the object
5081: # directory.
5082: mkdir sub
1.1 paf 5083:
1.66 paf 5084: am_cv_CXX_dependencies_compiler_type=none
1.62 paf 5085: if test "$am_compiler_list" = ""; then
5086: am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
1.1 paf 5087: fi
1.150 moko 5088: am__universal=false
5089: case " $depcc " in #(
5090: *\ -arch\ *\ -arch\ *) am__universal=true ;;
5091: esac
5092:
1.62 paf 5093: for depmode in $am_compiler_list; do
1.86 paf 5094: # Setup a source with many dependencies, because some compilers
5095: # like to wrap large dependency lists on column 80 (with \), and
5096: # we should not choose a depcomp mode which is confused by this.
5097: #
1.62 paf 5098: # We need to recreate these files for each test, as the compiler may
5099: # overwrite some of them when testing with obscure command lines.
5100: # This happens at least with the AIX C compiler.
1.86 paf 5101: : > sub/conftest.c
5102: for i in 1 2 3 4 5 6; do
5103: echo '#include "conftst'$i'.h"' >> sub/conftest.c
1.187 moko 5104: # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5105: # Solaris 10 /bin/sh.
5106: echo '/* dummy */' > sub/conftst$i.h
1.86 paf 5107: done
5108: echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
1.62 paf 5109:
1.187 moko 5110: # We check with '-c' and '-o' for the sake of the "dashmstdout"
1.150 moko 5111: # mode. It turns out that the SunPro C++ compiler does not properly
1.187 moko 5112: # handle '-M -o', and we need to detect this. Also, some Intel
5113: # versions had trouble with output in subdirs.
1.150 moko 5114: am__obj=sub/conftest.${OBJEXT-o}
5115: am__minus_obj="-o $am__obj"
1.62 paf 5116: case $depmode in
1.150 moko 5117: gcc)
5118: # This depmode causes a compiler race in universal mode.
5119: test "$am__universal" = false || continue
5120: ;;
1.62 paf 5121: nosideeffect)
1.187 moko 5122: # After this tag, mechanisms are not by side-effect, so they'll
5123: # only be used when explicitly requested.
1.62 paf 5124: if test "x$enable_dependency_tracking" = xyes; then
5125: continue
5126: else
5127: break
5128: fi
5129: ;;
1.187 moko 5130: msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5131: # This compiler won't grok '-c -o', but also, the minuso test has
1.150 moko 5132: # not run yet. These depmodes are late enough in the game, and
5133: # so weak that their functioning should not be impacted.
5134: am__obj=conftest.${OBJEXT-o}
5135: am__minus_obj=
5136: ;;
1.62 paf 5137: none) break ;;
5138: esac
5139: if depmode=$depmode \
1.150 moko 5140: source=sub/conftest.c object=$am__obj \
1.86 paf 5141: depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
1.150 moko 5142: $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
1.86 paf 5143: >/dev/null 2>conftest.err &&
1.150 moko 5144: grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
1.86 paf 5145: grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
1.150 moko 5146: grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
1.62 paf 5147: ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
1.86 paf 5148: # icc doesn't choke on unknown options, it will just issue warnings
5149: # or remarks (even with -Werror). So we grep stderr for any message
5150: # that says an option was ignored or not supported.
1.237 moko 5151: # When given -MP, icc 7.0 and 7.1 complain thus:
1.86 paf 5152: # icc: Command line warning: ignoring option '-M'; no argument required
5153: # The diagnosis changed in icc 8.0:
5154: # icc: Command line remark: option '-MP' not supported
5155: if (grep 'ignoring option' conftest.err ||
5156: grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5157: am_cv_CXX_dependencies_compiler_type=$depmode
5158: break
5159: fi
1.66 paf 5160: fi
5161: done
5162:
5163: cd ..
5164: rm -rf conftest.dir
5165: else
5166: am_cv_CXX_dependencies_compiler_type=none
5167: fi
1.237 moko 5168: ;;
5169: esac
1.66 paf 5170: fi
1.237 moko 5171: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
5172: printf "%s\n" "$am_cv_CXX_dependencies_compiler_type" >&6; }
1.66 paf 5173: CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5174:
1.150 moko 5175: if
1.66 paf 5176: test "x$enable_dependency_tracking" != xno \
5177: && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5178: am__fastdepCXX_TRUE=
5179: am__fastdepCXX_FALSE='#'
5180: else
5181: am__fastdepCXX_TRUE='#'
5182: am__fastdepCXX_FALSE=
5183: fi
5184:
5185:
1.237 moko 5186:
5187:
5188:
5189:
5190:
5191:
5192:
5193:
5194:
1.66 paf 5195: ac_ext=c
5196: ac_cpp='$CPP $CPPFLAGS'
5197: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5198: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5199: ac_compiler_gnu=$ac_cv_c_compiler_gnu
5200: if test -n "$ac_tool_prefix"; then
5201: # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5202: set dummy ${ac_tool_prefix}gcc; ac_word=$2
1.237 moko 5203: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5204: printf %s "checking for $ac_word... " >&6; }
5205: if test ${ac_cv_prog_CC+y}
5206: then :
5207: printf %s "(cached) " >&6
5208: else case e in #(
5209: e) if test -n "$CC"; then
1.66 paf 5210: ac_cv_prog_CC="$CC" # Let the user override the test.
5211: else
5212: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5213: for as_dir in $PATH
5214: do
5215: IFS=$as_save_IFS
1.237 moko 5216: case $as_dir in #(((
5217: '') as_dir=./ ;;
5218: */) ;;
5219: *) as_dir=$as_dir/ ;;
5220: esac
1.150 moko 5221: for ac_exec_ext in '' $ac_executable_extensions; do
1.237 moko 5222: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.66 paf 5223: ac_cv_prog_CC="${ac_tool_prefix}gcc"
1.237 moko 5224: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.66 paf 5225: break 2
5226: fi
5227: done
1.150 moko 5228: done
5229: IFS=$as_save_IFS
1.66 paf 5230:
1.237 moko 5231: fi ;;
5232: esac
1.66 paf 5233: fi
5234: CC=$ac_cv_prog_CC
5235: if test -n "$CC"; then
1.237 moko 5236: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5237: printf "%s\n" "$CC" >&6; }
1.66 paf 5238: else
1.237 moko 5239: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5240: printf "%s\n" "no" >&6; }
1.66 paf 5241: fi
5242:
1.150 moko 5243:
1.66 paf 5244: fi
5245: if test -z "$ac_cv_prog_CC"; then
5246: ac_ct_CC=$CC
5247: # Extract the first word of "gcc", so it can be a program name with args.
5248: set dummy gcc; ac_word=$2
1.237 moko 5249: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5250: printf %s "checking for $ac_word... " >&6; }
5251: if test ${ac_cv_prog_ac_ct_CC+y}
5252: then :
5253: printf %s "(cached) " >&6
5254: else case e in #(
5255: e) if test -n "$ac_ct_CC"; then
1.66 paf 5256: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5257: else
5258: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5259: for as_dir in $PATH
5260: do
5261: IFS=$as_save_IFS
1.237 moko 5262: case $as_dir in #(((
5263: '') as_dir=./ ;;
5264: */) ;;
5265: *) as_dir=$as_dir/ ;;
5266: esac
1.150 moko 5267: for ac_exec_ext in '' $ac_executable_extensions; do
1.237 moko 5268: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.66 paf 5269: ac_cv_prog_ac_ct_CC="gcc"
1.237 moko 5270: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.66 paf 5271: break 2
5272: fi
5273: done
1.150 moko 5274: done
5275: IFS=$as_save_IFS
1.66 paf 5276:
1.237 moko 5277: fi ;;
5278: esac
1.66 paf 5279: fi
5280: ac_ct_CC=$ac_cv_prog_ac_ct_CC
5281: if test -n "$ac_ct_CC"; then
1.237 moko 5282: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5283: printf "%s\n" "$ac_ct_CC" >&6; }
1.1 paf 5284: else
1.237 moko 5285: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5286: printf "%s\n" "no" >&6; }
1.62 paf 5287: fi
5288:
1.150 moko 5289: if test "x$ac_ct_CC" = x; then
5290: CC=""
5291: else
5292: case $cross_compiling:$ac_tool_warned in
5293: yes:)
1.237 moko 5294: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5295: printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
1.150 moko 5296: ac_tool_warned=yes ;;
5297: esac
5298: CC=$ac_ct_CC
5299: fi
1.66 paf 5300: else
5301: CC="$ac_cv_prog_CC"
1.1 paf 5302: fi
1.62 paf 5303:
1.66 paf 5304: if test -z "$CC"; then
1.150 moko 5305: if test -n "$ac_tool_prefix"; then
5306: # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1.66 paf 5307: set dummy ${ac_tool_prefix}cc; ac_word=$2
1.237 moko 5308: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5309: printf %s "checking for $ac_word... " >&6; }
5310: if test ${ac_cv_prog_CC+y}
5311: then :
5312: printf %s "(cached) " >&6
5313: else case e in #(
5314: e) if test -n "$CC"; then
1.66 paf 5315: ac_cv_prog_CC="$CC" # Let the user override the test.
5316: else
5317: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5318: for as_dir in $PATH
5319: do
5320: IFS=$as_save_IFS
1.237 moko 5321: case $as_dir in #(((
5322: '') as_dir=./ ;;
5323: */) ;;
5324: *) as_dir=$as_dir/ ;;
5325: esac
1.150 moko 5326: for ac_exec_ext in '' $ac_executable_extensions; do
1.237 moko 5327: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.66 paf 5328: ac_cv_prog_CC="${ac_tool_prefix}cc"
1.237 moko 5329: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.66 paf 5330: break 2
5331: fi
5332: done
1.150 moko 5333: done
5334: IFS=$as_save_IFS
1.62 paf 5335:
1.237 moko 5336: fi ;;
5337: esac
1.66 paf 5338: fi
5339: CC=$ac_cv_prog_CC
5340: if test -n "$CC"; then
1.237 moko 5341: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5342: printf "%s\n" "$CC" >&6; }
1.62 paf 5343: else
1.237 moko 5344: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5345: printf "%s\n" "no" >&6; }
1.1 paf 5346: fi
5347:
1.150 moko 5348:
1.66 paf 5349: fi
1.1 paf 5350: fi
1.66 paf 5351: if test -z "$CC"; then
5352: # Extract the first word of "cc", so it can be a program name with args.
5353: set dummy cc; ac_word=$2
1.237 moko 5354: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5355: printf %s "checking for $ac_word... " >&6; }
5356: if test ${ac_cv_prog_CC+y}
5357: then :
5358: printf %s "(cached) " >&6
5359: else case e in #(
5360: e) if test -n "$CC"; then
1.66 paf 5361: ac_cv_prog_CC="$CC" # Let the user override the test.
5362: else
5363: ac_prog_rejected=no
5364: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5365: for as_dir in $PATH
5366: do
5367: IFS=$as_save_IFS
1.237 moko 5368: case $as_dir in #(((
5369: '') as_dir=./ ;;
5370: */) ;;
5371: *) as_dir=$as_dir/ ;;
5372: esac
1.150 moko 5373: for ac_exec_ext in '' $ac_executable_extensions; do
1.237 moko 5374: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5375: if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1.66 paf 5376: ac_prog_rejected=yes
5377: continue
5378: fi
5379: ac_cv_prog_CC="cc"
1.237 moko 5380: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.66 paf 5381: break 2
5382: fi
5383: done
1.150 moko 5384: done
5385: IFS=$as_save_IFS
1.62 paf 5386:
1.66 paf 5387: if test $ac_prog_rejected = yes; then
5388: # We found a bogon in the path, so make sure we never use it.
5389: set dummy $ac_cv_prog_CC
5390: shift
5391: if test $# != 0; then
5392: # We chose a different compiler from the bogus one.
5393: # However, it has the same basename, so the bogon will be chosen
5394: # first if we set CC to just the basename; use the full file name.
5395: shift
1.237 moko 5396: ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
1.66 paf 5397: fi
5398: fi
1.237 moko 5399: fi ;;
5400: esac
1.66 paf 5401: fi
5402: CC=$ac_cv_prog_CC
5403: if test -n "$CC"; then
1.237 moko 5404: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5405: printf "%s\n" "$CC" >&6; }
1.66 paf 5406: else
1.237 moko 5407: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5408: printf "%s\n" "no" >&6; }
1.1 paf 5409: fi
5410:
1.150 moko 5411:
1.66 paf 5412: fi
5413: if test -z "$CC"; then
5414: if test -n "$ac_tool_prefix"; then
1.150 moko 5415: for ac_prog in cl.exe
1.62 paf 5416: do
5417: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5418: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1.237 moko 5419: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5420: printf %s "checking for $ac_word... " >&6; }
5421: if test ${ac_cv_prog_CC+y}
5422: then :
5423: printf %s "(cached) " >&6
5424: else case e in #(
5425: e) if test -n "$CC"; then
1.66 paf 5426: ac_cv_prog_CC="$CC" # Let the user override the test.
1.62 paf 5427: else
5428: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5429: for as_dir in $PATH
5430: do
5431: IFS=$as_save_IFS
1.237 moko 5432: case $as_dir in #(((
5433: '') as_dir=./ ;;
5434: */) ;;
5435: *) as_dir=$as_dir/ ;;
5436: esac
1.150 moko 5437: for ac_exec_ext in '' $ac_executable_extensions; do
1.237 moko 5438: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.66 paf 5439: ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1.237 moko 5440: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.62 paf 5441: break 2
5442: fi
5443: done
1.150 moko 5444: done
5445: IFS=$as_save_IFS
1.1 paf 5446:
1.237 moko 5447: fi ;;
5448: esac
1.62 paf 5449: fi
1.66 paf 5450: CC=$ac_cv_prog_CC
5451: if test -n "$CC"; then
1.237 moko 5452: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5453: printf "%s\n" "$CC" >&6; }
1.1 paf 5454: else
1.237 moko 5455: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5456: printf "%s\n" "no" >&6; }
1.1 paf 5457: fi
5458:
1.150 moko 5459:
1.66 paf 5460: test -n "$CC" && break
1.62 paf 5461: done
5462: fi
1.66 paf 5463: if test -z "$CC"; then
5464: ac_ct_CC=$CC
1.150 moko 5465: for ac_prog in cl.exe
1.62 paf 5466: do
5467: # Extract the first word of "$ac_prog", so it can be a program name with args.
5468: set dummy $ac_prog; ac_word=$2
1.237 moko 5469: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5470: printf %s "checking for $ac_word... " >&6; }
5471: if test ${ac_cv_prog_ac_ct_CC+y}
5472: then :
5473: printf %s "(cached) " >&6
5474: else case e in #(
5475: e) if test -n "$ac_ct_CC"; then
1.66 paf 5476: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1.1 paf 5477: else
1.62 paf 5478: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5479: for as_dir in $PATH
5480: do
5481: IFS=$as_save_IFS
1.237 moko 5482: case $as_dir in #(((
5483: '') as_dir=./ ;;
5484: */) ;;
5485: *) as_dir=$as_dir/ ;;
5486: esac
1.150 moko 5487: for ac_exec_ext in '' $ac_executable_extensions; do
1.237 moko 5488: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.66 paf 5489: ac_cv_prog_ac_ct_CC="$ac_prog"
1.237 moko 5490: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.62 paf 5491: break 2
5492: fi
5493: done
1.150 moko 5494: done
5495: IFS=$as_save_IFS
1.62 paf 5496:
1.237 moko 5497: fi ;;
5498: esac
1.62 paf 5499: fi
1.66 paf 5500: ac_ct_CC=$ac_cv_prog_ac_ct_CC
5501: if test -n "$ac_ct_CC"; then
1.237 moko 5502: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5503: printf "%s\n" "$ac_ct_CC" >&6; }
1.1 paf 5504: else
1.237 moko 5505: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5506: printf "%s\n" "no" >&6; }
1.1 paf 5507: fi
5508:
1.150 moko 5509:
1.66 paf 5510: test -n "$ac_ct_CC" && break
5511: done
5512:
1.150 moko 5513: if test "x$ac_ct_CC" = x; then
5514: CC=""
5515: else
5516: case $cross_compiling:$ac_tool_warned in
5517: yes:)
1.237 moko 5518: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5519: printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
1.150 moko 5520: ac_tool_warned=yes ;;
5521: esac
5522: CC=$ac_ct_CC
5523: fi
1.66 paf 5524: fi
5525:
5526: fi
1.237 moko 5527: if test -z "$CC"; then
5528: if test -n "$ac_tool_prefix"; then
5529: # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
5530: set dummy ${ac_tool_prefix}clang; ac_word=$2
5531: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5532: printf %s "checking for $ac_word... " >&6; }
5533: if test ${ac_cv_prog_CC+y}
5534: then :
5535: printf %s "(cached) " >&6
5536: else case e in #(
5537: e) if test -n "$CC"; then
5538: ac_cv_prog_CC="$CC" # Let the user override the test.
5539: else
5540: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5541: for as_dir in $PATH
5542: do
5543: IFS=$as_save_IFS
5544: case $as_dir in #(((
5545: '') as_dir=./ ;;
5546: */) ;;
5547: *) as_dir=$as_dir/ ;;
5548: esac
5549: for ac_exec_ext in '' $ac_executable_extensions; do
5550: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5551: ac_cv_prog_CC="${ac_tool_prefix}clang"
5552: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5553: break 2
5554: fi
5555: done
5556: done
5557: IFS=$as_save_IFS
5558:
5559: fi ;;
5560: esac
5561: fi
5562: CC=$ac_cv_prog_CC
5563: if test -n "$CC"; then
5564: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5565: printf "%s\n" "$CC" >&6; }
5566: else
5567: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5568: printf "%s\n" "no" >&6; }
5569: fi
5570:
5571:
5572: fi
5573: if test -z "$ac_cv_prog_CC"; then
5574: ac_ct_CC=$CC
5575: # Extract the first word of "clang", so it can be a program name with args.
5576: set dummy clang; ac_word=$2
5577: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5578: printf %s "checking for $ac_word... " >&6; }
5579: if test ${ac_cv_prog_ac_ct_CC+y}
5580: then :
5581: printf %s "(cached) " >&6
5582: else case e in #(
5583: e) if test -n "$ac_ct_CC"; then
5584: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5585: else
5586: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5587: for as_dir in $PATH
5588: do
5589: IFS=$as_save_IFS
5590: case $as_dir in #(((
5591: '') as_dir=./ ;;
5592: */) ;;
5593: *) as_dir=$as_dir/ ;;
5594: esac
5595: for ac_exec_ext in '' $ac_executable_extensions; do
5596: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5597: ac_cv_prog_ac_ct_CC="clang"
5598: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5599: break 2
5600: fi
5601: done
5602: done
5603: IFS=$as_save_IFS
5604:
5605: fi ;;
5606: esac
5607: fi
5608: ac_ct_CC=$ac_cv_prog_ac_ct_CC
5609: if test -n "$ac_ct_CC"; then
5610: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5611: printf "%s\n" "$ac_ct_CC" >&6; }
5612: else
5613: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5614: printf "%s\n" "no" >&6; }
5615: fi
5616:
5617: if test "x$ac_ct_CC" = x; then
5618: CC=""
5619: else
5620: case $cross_compiling:$ac_tool_warned in
5621: yes:)
5622: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5623: printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5624: ac_tool_warned=yes ;;
5625: esac
5626: CC=$ac_ct_CC
5627: fi
5628: else
5629: CC="$ac_cv_prog_CC"
5630: fi
5631:
5632: fi
1.62 paf 5633:
1.1 paf 5634:
1.237 moko 5635: test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
5636: printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
1.150 moko 5637: as_fn_error $? "no acceptable C compiler found in \$PATH
1.237 moko 5638: See 'config.log' for more details" "$LINENO" 5; }
1.62 paf 5639:
5640: # Provide some information about the compiler.
1.237 moko 5641: printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
1.150 moko 5642: set X $ac_compile
5643: ac_compiler=$2
1.237 moko 5644: for ac_option in --version -v -V -qversion -version; do
1.150 moko 5645: { { ac_try="$ac_compiler $ac_option >&5"
5646: case "(($ac_try" in
5647: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5648: *) ac_try_echo=$ac_try;;
5649: esac
5650: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1.237 moko 5651: printf "%s\n" "$ac_try_echo"; } >&5
1.150 moko 5652: (eval "$ac_compiler $ac_option >&5") 2>conftest.err
1.62 paf 5653: ac_status=$?
1.150 moko 5654: if test -s conftest.err; then
5655: sed '10a\
5656: ... rest of stderr output deleted ...
5657: 10q' conftest.err >conftest.er1
5658: cat conftest.er1 >&5
5659: fi
5660: rm -f conftest.er1 conftest.err
1.237 moko 5661: printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1.150 moko 5662: test $ac_status = 0; }
5663: done
5664:
1.237 moko 5665: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
5666: printf %s "checking whether the compiler supports GNU C... " >&6; }
5667: if test ${ac_cv_c_compiler_gnu+y}
5668: then :
5669: printf %s "(cached) " >&6
5670: else case e in #(
5671: e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.62 paf 5672: /* end confdefs.h. */
5673:
5674: int
1.237 moko 5675: main (void)
1.62 paf 5676: {
5677: #ifndef __GNUC__
5678: choke me
5679: #endif
5680:
5681: ;
5682: return 0;
5683: }
5684: _ACEOF
1.237 moko 5685: if ac_fn_c_try_compile "$LINENO"
5686: then :
1.62 paf 5687: ac_compiler_gnu=yes
1.237 moko 5688: else case e in #(
5689: e) ac_compiler_gnu=no ;;
5690: esac
1.62 paf 5691: fi
1.237 moko 5692: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1.66 paf 5693: ac_cv_c_compiler_gnu=$ac_compiler_gnu
1.237 moko 5694: ;;
5695: esac
5696: fi
5697: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5698: printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
5699: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.62 paf 5700:
1.150 moko 5701: if test $ac_compiler_gnu = yes; then
5702: GCC=yes
5703: else
5704: GCC=
5705: fi
1.237 moko 5706: ac_test_CFLAGS=${CFLAGS+y}
1.66 paf 5707: ac_save_CFLAGS=$CFLAGS
1.237 moko 5708: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5709: printf %s "checking whether $CC accepts -g... " >&6; }
5710: if test ${ac_cv_prog_cc_g+y}
5711: then :
5712: printf %s "(cached) " >&6
5713: else case e in #(
5714: e) ac_save_c_werror_flag=$ac_c_werror_flag
1.150 moko 5715: ac_c_werror_flag=yes
5716: ac_cv_prog_cc_g=no
5717: CFLAGS="-g"
5718: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.62 paf 5719: /* end confdefs.h. */
5720:
5721: int
1.237 moko 5722: main (void)
1.62 paf 5723: {
5724:
5725: ;
5726: return 0;
5727: }
5728: _ACEOF
1.237 moko 5729: if ac_fn_c_try_compile "$LINENO"
5730: then :
1.66 paf 5731: ac_cv_prog_cc_g=yes
1.237 moko 5732: else case e in #(
5733: e) CFLAGS=""
1.150 moko 5734: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5735: /* end confdefs.h. */
5736:
5737: int
1.237 moko 5738: main (void)
1.150 moko 5739: {
1.62 paf 5740:
1.150 moko 5741: ;
5742: return 0;
5743: }
5744: _ACEOF
1.237 moko 5745: if ac_fn_c_try_compile "$LINENO"
5746: then :
1.150 moko 5747:
1.237 moko 5748: else case e in #(
5749: e) ac_c_werror_flag=$ac_save_c_werror_flag
1.150 moko 5750: CFLAGS="-g"
5751: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5752: /* end confdefs.h. */
5753:
5754: int
1.237 moko 5755: main (void)
1.150 moko 5756: {
5757:
5758: ;
5759: return 0;
5760: }
5761: _ACEOF
1.237 moko 5762: if ac_fn_c_try_compile "$LINENO"
5763: then :
1.150 moko 5764: ac_cv_prog_cc_g=yes
5765: fi
1.237 moko 5766: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5767: esac
1.62 paf 5768: fi
1.237 moko 5769: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5770: esac
1.62 paf 5771: fi
1.237 moko 5772: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5773: ac_c_werror_flag=$ac_save_c_werror_flag ;;
5774: esac
1.150 moko 5775: fi
1.237 moko 5776: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5777: printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
5778: if test $ac_test_CFLAGS; then
1.66 paf 5779: CFLAGS=$ac_save_CFLAGS
5780: elif test $ac_cv_prog_cc_g = yes; then
5781: if test "$GCC" = yes; then
5782: CFLAGS="-g -O2"
1.1 paf 5783: else
1.66 paf 5784: CFLAGS="-g"
1.1 paf 5785: fi
5786: else
1.66 paf 5787: if test "$GCC" = yes; then
5788: CFLAGS="-O2"
1.1 paf 5789: else
1.66 paf 5790: CFLAGS=
1.1 paf 5791: fi
5792: fi
1.237 moko 5793: ac_prog_cc_stdc=no
5794: if test x$ac_prog_cc_stdc = xno
5795: then :
5796: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
5797: printf %s "checking for $CC option to enable C11 features... " >&6; }
5798: if test ${ac_cv_prog_cc_c11+y}
5799: then :
5800: printf %s "(cached) " >&6
5801: else case e in #(
5802: e) ac_cv_prog_cc_c11=no
1.66 paf 5803: ac_save_CC=$CC
1.150 moko 5804: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.66 paf 5805: /* end confdefs.h. */
1.237 moko 5806: $ac_c_conftest_c11_program
5807: _ACEOF
5808: for ac_arg in '' -std=gnu11
5809: do
5810: CC="$ac_save_CC $ac_arg"
5811: if ac_fn_c_try_compile "$LINENO"
5812: then :
5813: ac_cv_prog_cc_c11=$ac_arg
5814: fi
5815: rm -f core conftest.err conftest.$ac_objext conftest.beam
5816: test "x$ac_cv_prog_cc_c11" != "xno" && break
5817: done
5818: rm -f conftest.$ac_ext
5819: CC=$ac_save_CC ;;
5820: esac
5821: fi
1.86 paf 5822:
1.237 moko 5823: if test "x$ac_cv_prog_cc_c11" = xno
5824: then :
5825: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5826: printf "%s\n" "unsupported" >&6; }
5827: else case e in #(
5828: e) if test "x$ac_cv_prog_cc_c11" = x
5829: then :
5830: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5831: printf "%s\n" "none needed" >&6; }
5832: else case e in #(
5833: e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
5834: printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
5835: CC="$CC $ac_cv_prog_cc_c11" ;;
5836: esac
5837: fi
5838: ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
5839: ac_prog_cc_stdc=c11 ;;
5840: esac
5841: fi
5842: fi
5843: if test x$ac_prog_cc_stdc = xno
5844: then :
5845: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
5846: printf %s "checking for $CC option to enable C99 features... " >&6; }
5847: if test ${ac_cv_prog_cc_c99+y}
5848: then :
5849: printf %s "(cached) " >&6
5850: else case e in #(
5851: e) ac_cv_prog_cc_c99=no
5852: ac_save_CC=$CC
5853: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5854: /* end confdefs.h. */
5855: $ac_c_conftest_c99_program
5856: _ACEOF
5857: for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
5858: do
5859: CC="$ac_save_CC $ac_arg"
5860: if ac_fn_c_try_compile "$LINENO"
5861: then :
5862: ac_cv_prog_cc_c99=$ac_arg
5863: fi
5864: rm -f core conftest.err conftest.$ac_objext conftest.beam
5865: test "x$ac_cv_prog_cc_c99" != "xno" && break
5866: done
5867: rm -f conftest.$ac_ext
5868: CC=$ac_save_CC ;;
5869: esac
5870: fi
1.86 paf 5871:
1.237 moko 5872: if test "x$ac_cv_prog_cc_c99" = xno
5873: then :
5874: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5875: printf "%s\n" "unsupported" >&6; }
5876: else case e in #(
5877: e) if test "x$ac_cv_prog_cc_c99" = x
5878: then :
5879: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5880: printf "%s\n" "none needed" >&6; }
5881: else case e in #(
5882: e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5883: printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
5884: CC="$CC $ac_cv_prog_cc_c99" ;;
5885: esac
5886: fi
5887: ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
5888: ac_prog_cc_stdc=c99 ;;
5889: esac
5890: fi
5891: fi
5892: if test x$ac_prog_cc_stdc = xno
5893: then :
5894: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
5895: printf %s "checking for $CC option to enable C89 features... " >&6; }
5896: if test ${ac_cv_prog_cc_c89+y}
5897: then :
5898: printf %s "(cached) " >&6
5899: else case e in #(
5900: e) ac_cv_prog_cc_c89=no
5901: ac_save_CC=$CC
5902: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5903: /* end confdefs.h. */
5904: $ac_c_conftest_c89_program
1.66 paf 5905: _ACEOF
1.237 moko 5906: for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1.66 paf 5907: do
5908: CC="$ac_save_CC $ac_arg"
1.237 moko 5909: if ac_fn_c_try_compile "$LINENO"
5910: then :
1.150 moko 5911: ac_cv_prog_cc_c89=$ac_arg
1.66 paf 5912: fi
1.237 moko 5913: rm -f core conftest.err conftest.$ac_objext conftest.beam
1.150 moko 5914: test "x$ac_cv_prog_cc_c89" != "xno" && break
1.66 paf 5915: done
1.150 moko 5916: rm -f conftest.$ac_ext
1.237 moko 5917: CC=$ac_save_CC ;;
5918: esac
5919: fi
1.66 paf 5920:
1.237 moko 5921: if test "x$ac_cv_prog_cc_c89" = xno
5922: then :
5923: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5924: printf "%s\n" "unsupported" >&6; }
5925: else case e in #(
5926: e) if test "x$ac_cv_prog_cc_c89" = x
5927: then :
5928: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5929: printf "%s\n" "none needed" >&6; }
5930: else case e in #(
5931: e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5932: printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
5933: CC="$CC $ac_cv_prog_cc_c89" ;;
5934: esac
1.66 paf 5935: fi
1.237 moko 5936: ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
5937: ac_prog_cc_stdc=c89 ;;
1.66 paf 5938: esac
1.237 moko 5939: fi
1.62 paf 5940: fi
1.66 paf 5941:
1.62 paf 5942: ac_ext=c
5943: ac_cpp='$CPP $CPPFLAGS'
5944: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5945: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5946: ac_compiler_gnu=$ac_cv_c_compiler_gnu
5947:
1.237 moko 5948:
5949: ac_ext=c
1.187 moko 5950: ac_cpp='$CPP $CPPFLAGS'
5951: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5952: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5953: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.237 moko 5954: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5955: printf %s "checking whether $CC understands -c and -o together... " >&6; }
5956: if test ${am_cv_prog_cc_c_o+y}
5957: then :
5958: printf %s "(cached) " >&6
5959: else case e in #(
5960: e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.187 moko 5961: /* end confdefs.h. */
5962:
5963: int
1.237 moko 5964: main (void)
1.187 moko 5965: {
5966:
5967: ;
5968: return 0;
5969: }
5970: _ACEOF
5971: # Make sure it works both with $CC and with simple cc.
5972: # Following AC_PROG_CC_C_O, we do the test twice because some
5973: # compilers refuse to overwrite an existing .o file with -o,
5974: # though they will create one.
5975: am_cv_prog_cc_c_o=yes
5976: for am_i in 1 2; do
5977: if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5978: ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5979: ac_status=$?
5980: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5981: (exit $ac_status); } \
5982: && test -f conftest2.$ac_objext; then
5983: : OK
5984: else
5985: am_cv_prog_cc_c_o=no
5986: break
5987: fi
5988: done
5989: rm -f core conftest*
1.237 moko 5990: unset am_i ;;
5991: esac
1.187 moko 5992: fi
1.237 moko 5993: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5994: printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
1.187 moko 5995: if test "$am_cv_prog_cc_c_o" != yes; then
5996: # Losing compiler, so override with the script.
5997: # FIXME: It is wrong to rewrite CC.
5998: # But if we don't then we get into trouble of one sort or another.
5999: # A longer-term fix would be to have automake use am__CC in this case,
6000: # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
6001: CC="$am_aux_dir/compile $CC"
6002: fi
6003: ac_ext=c
6004: ac_cpp='$CPP $CPPFLAGS'
6005: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6006: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6007: ac_compiler_gnu=$ac_cv_c_compiler_gnu
6008:
6009:
1.66 paf 6010: depcc="$CC" am_compiler_list=
1.62 paf 6011:
1.237 moko 6012: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6013: printf %s "checking dependency style of $depcc... " >&6; }
6014: if test ${am_cv_CC_dependencies_compiler_type+y}
6015: then :
6016: printf %s "(cached) " >&6
6017: else case e in #(
6018: e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
1.62 paf 6019: # We make a subdir and do the tests there. Otherwise we can end up
6020: # making bogus files that we don't know about and never remove. For
6021: # instance it was reported that on HP-UX the gcc test will end up
1.187 moko 6022: # making a dummy file named 'D' -- because '-MD' means "put the output
6023: # in D".
6024: rm -rf conftest.dir
1.62 paf 6025: mkdir conftest.dir
6026: # Copy depcomp to subdir because otherwise we won't find it if we're
6027: # using a relative directory.
6028: cp "$am_depcomp" conftest.dir
6029: cd conftest.dir
1.86 paf 6030: # We will build objects and dependencies in a subdirectory because
6031: # it helps to detect inapplicable dependency modes. For instance
6032: # both Tru64's cc and ICC support -MD to output dependencies as a
6033: # side effect of compilation, but ICC will put the dependencies in
6034: # the current directory while Tru64 will put them in the object
6035: # directory.
6036: mkdir sub
1.62 paf 6037:
1.66 paf 6038: am_cv_CC_dependencies_compiler_type=none
1.62 paf 6039: if test "$am_compiler_list" = ""; then
6040: am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6041: fi
1.150 moko 6042: am__universal=false
6043: case " $depcc " in #(
6044: *\ -arch\ *\ -arch\ *) am__universal=true ;;
6045: esac
6046:
1.62 paf 6047: for depmode in $am_compiler_list; do
1.86 paf 6048: # Setup a source with many dependencies, because some compilers
6049: # like to wrap large dependency lists on column 80 (with \), and
6050: # we should not choose a depcomp mode which is confused by this.
6051: #
1.62 paf 6052: # We need to recreate these files for each test, as the compiler may
6053: # overwrite some of them when testing with obscure command lines.
6054: # This happens at least with the AIX C compiler.
1.86 paf 6055: : > sub/conftest.c
6056: for i in 1 2 3 4 5 6; do
6057: echo '#include "conftst'$i'.h"' >> sub/conftest.c
1.187 moko 6058: # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6059: # Solaris 10 /bin/sh.
6060: echo '/* dummy */' > sub/conftst$i.h
1.86 paf 6061: done
6062: echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
1.62 paf 6063:
1.187 moko 6064: # We check with '-c' and '-o' for the sake of the "dashmstdout"
1.150 moko 6065: # mode. It turns out that the SunPro C++ compiler does not properly
1.187 moko 6066: # handle '-M -o', and we need to detect this. Also, some Intel
6067: # versions had trouble with output in subdirs.
1.150 moko 6068: am__obj=sub/conftest.${OBJEXT-o}
6069: am__minus_obj="-o $am__obj"
1.62 paf 6070: case $depmode in
1.150 moko 6071: gcc)
6072: # This depmode causes a compiler race in universal mode.
6073: test "$am__universal" = false || continue
6074: ;;
1.62 paf 6075: nosideeffect)
1.187 moko 6076: # After this tag, mechanisms are not by side-effect, so they'll
6077: # only be used when explicitly requested.
1.62 paf 6078: if test "x$enable_dependency_tracking" = xyes; then
6079: continue
6080: else
6081: break
6082: fi
6083: ;;
1.187 moko 6084: msvc7 | msvc7msys | msvisualcpp | msvcmsys)
6085: # This compiler won't grok '-c -o', but also, the minuso test has
1.150 moko 6086: # not run yet. These depmodes are late enough in the game, and
6087: # so weak that their functioning should not be impacted.
6088: am__obj=conftest.${OBJEXT-o}
6089: am__minus_obj=
6090: ;;
1.62 paf 6091: none) break ;;
6092: esac
1.66 paf 6093: if depmode=$depmode \
1.150 moko 6094: source=sub/conftest.c object=$am__obj \
1.86 paf 6095: depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
1.150 moko 6096: $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
1.86 paf 6097: >/dev/null 2>conftest.err &&
1.150 moko 6098: grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
1.86 paf 6099: grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
1.150 moko 6100: grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
1.66 paf 6101: ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
1.86 paf 6102: # icc doesn't choke on unknown options, it will just issue warnings
6103: # or remarks (even with -Werror). So we grep stderr for any message
6104: # that says an option was ignored or not supported.
1.237 moko 6105: # When given -MP, icc 7.0 and 7.1 complain thus:
1.86 paf 6106: # icc: Command line warning: ignoring option '-M'; no argument required
6107: # The diagnosis changed in icc 8.0:
6108: # icc: Command line remark: option '-MP' not supported
6109: if (grep 'ignoring option' conftest.err ||
6110: grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6111: am_cv_CC_dependencies_compiler_type=$depmode
6112: break
6113: fi
1.66 paf 6114: fi
6115: done
6116:
6117: cd ..
6118: rm -rf conftest.dir
6119: else
6120: am_cv_CC_dependencies_compiler_type=none
6121: fi
1.237 moko 6122: ;;
6123: esac
1.66 paf 6124: fi
1.237 moko 6125: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6126: printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
1.66 paf 6127: CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6128:
1.150 moko 6129: if
1.66 paf 6130: test "x$enable_dependency_tracking" != xno \
6131: && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6132: am__fastdepCC_TRUE=
6133: am__fastdepCC_FALSE='#'
6134: else
6135: am__fastdepCC_TRUE='#'
6136: am__fastdepCC_FALSE=
6137: fi
6138:
6139:
1.128 moko 6140:
1.66 paf 6141: ac_ext=c
6142: ac_cpp='$CPP $CPPFLAGS'
6143: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6144: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6145: ac_compiler_gnu=$ac_cv_c_compiler_gnu
6146:
1.67 paf 6147:
1.62 paf 6148:
1.237 moko 6149: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dynamic-link library extension" >&5
6150: printf %s "checking for dynamic-link library extension... " >&6; }
1.128 moko 6151: case "$host_os" in
1.158 moko 6152: *cygwin* ) dll_extension=dll;;
6153: * ) dll_extension=so
1.66 paf 6154: esac
1.237 moko 6155: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dll_extension" >&5
6156: printf "%s\n" "$dll_extension" >&6; }
1.1 paf 6157:
1.71 paf 6158:
6159:
1.243 moko 6160: case "$host" in
6161: *-freebsd4*)
1.71 paf 6162:
1.243 moko 6163: printf "%s\n" "#define FREEBSD4 /**/" >>confdefs.h
1.71 paf 6164:
1.243 moko 6165: ;;
6166: *-freebsd1*)
1.150 moko 6167:
1.243 moko 6168: printf "%s\n" "#define FREEBSD1X /**/" >>confdefs.h
1.1 paf 6169:
1.243 moko 6170: ;;
6171: *-sunos5.6* | *-solaris2.6*)
1.1 paf 6172:
1.243 moko 6173: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -lxnet" >&5
6174: printf %s "checking for main in -lxnet... " >&6; }
6175: if test ${ac_cv_lib_xnet_main+y}
1.237 moko 6176: then :
1.243 moko 6177: printf %s "(cached) " >&6
6178: else case e in #(
6179: e) ac_check_lib_save_LIBS=$LIBS
6180: LIBS="-lxnet $LIBS"
6181: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6182: /* end confdefs.h. */
1.182 moko 6183:
6184:
1.243 moko 6185: int
6186: main (void)
6187: {
6188: return main ();
6189: ;
6190: return 0;
6191: }
6192: _ACEOF
6193: if ac_fn_c_try_link "$LINENO"
1.237 moko 6194: then :
1.243 moko 6195: ac_cv_lib_xnet_main=yes
1.237 moko 6196: else case e in #(
1.243 moko 6197: e) ac_cv_lib_xnet_main=no ;;
1.237 moko 6198: esac
1.150 moko 6199: fi
1.243 moko 6200: rm -f core conftest.err conftest.$ac_objext conftest.beam \
6201: conftest$ac_exeext conftest.$ac_ext
6202: LIBS=$ac_check_lib_save_LIBS ;;
6203: esac
1.150 moko 6204: fi
1.243 moko 6205: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xnet_main" >&5
6206: printf "%s\n" "$ac_cv_lib_xnet_main" >&6; }
6207: if test "x$ac_cv_lib_xnet_main" = xyes
1.237 moko 6208: then :
1.243 moko 6209: printf "%s\n" "#define HAVE_LIBXNET 1" >>confdefs.h
1.201 moko 6210:
1.243 moko 6211: LIBS="-lxnet $LIBS"
1.201 moko 6212:
6213: fi
6214:
1.243 moko 6215: ;;
6216: *-sunos5* | *-solaris2*)
6217: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -lsocket" >&5
6218: printf %s "checking for main in -lsocket... " >&6; }
6219: if test ${ac_cv_lib_socket_main+y}
1.237 moko 6220: then :
1.243 moko 6221: printf %s "(cached) " >&6
6222: else case e in #(
6223: e) ac_check_lib_save_LIBS=$LIBS
6224: LIBS="-lsocket $LIBS"
6225: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6226: /* end confdefs.h. */
1.60 paf 6227:
1.1 paf 6228:
1.243 moko 6229: int
6230: main (void)
6231: {
6232: return main ();
6233: ;
6234: return 0;
6235: }
6236: _ACEOF
6237: if ac_fn_c_try_link "$LINENO"
1.237 moko 6238: then :
1.243 moko 6239: ac_cv_lib_socket_main=yes
6240: else case e in #(
6241: e) ac_cv_lib_socket_main=no ;;
6242: esac
1.13 paf 6243: fi
1.243 moko 6244: rm -f core conftest.err conftest.$ac_objext conftest.beam \
6245: conftest$ac_exeext conftest.$ac_ext
6246: LIBS=$ac_check_lib_save_LIBS ;;
6247: esac
1.150 moko 6248: fi
1.243 moko 6249: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_main" >&5
6250: printf "%s\n" "$ac_cv_lib_socket_main" >&6; }
6251: if test "x$ac_cv_lib_socket_main" = xyes
1.237 moko 6252: then :
1.243 moko 6253: printf "%s\n" "#define HAVE_LIBSOCKET 1" >>confdefs.h
1.94 misha 6254:
1.243 moko 6255: LIBS="-lsocket $LIBS"
1.94 misha 6256:
6257: fi
6258:
1.243 moko 6259: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -lnsl" >&5
6260: printf %s "checking for main in -lnsl... " >&6; }
6261: if test ${ac_cv_lib_nsl_main+y}
1.237 moko 6262: then :
1.243 moko 6263: printf %s "(cached) " >&6
1.237 moko 6264: else case e in #(
1.243 moko 6265: e) ac_check_lib_save_LIBS=$LIBS
6266: LIBS="-lnsl $LIBS"
6267: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6268: /* end confdefs.h. */
1.17 paf 6269:
6270:
1.67 paf 6271: int
1.237 moko 6272: main (void)
1.67 paf 6273: {
1.243 moko 6274: return main ();
1.67 paf 6275: ;
6276: return 0;
6277: }
6278: _ACEOF
1.237 moko 6279: if ac_fn_c_try_link "$LINENO"
6280: then :
1.243 moko 6281: ac_cv_lib_nsl_main=yes
1.237 moko 6282: else case e in #(
1.243 moko 6283: e) ac_cv_lib_nsl_main=no ;;
1.237 moko 6284: esac
1.67 paf 6285: fi
1.237 moko 6286: rm -f core conftest.err conftest.$ac_objext conftest.beam \
1.150 moko 6287: conftest$ac_exeext conftest.$ac_ext
1.243 moko 6288: LIBS=$ac_check_lib_save_LIBS ;;
6289: esac
1.138 moko 6290: fi
1.243 moko 6291: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_main" >&5
6292: printf "%s\n" "$ac_cv_lib_nsl_main" >&6; }
6293: if test "x$ac_cv_lib_nsl_main" = xyes
6294: then :
6295: printf "%s\n" "#define HAVE_LIBNSL 1" >>confdefs.h
1.67 paf 6296:
1.243 moko 6297: LIBS="-lnsl $LIBS"
1.67 paf 6298:
1.243 moko 6299: fi
1.1 paf 6300:
1.243 moko 6301: ;;
6302: *-nec-sysv4*)
6303: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
6304: printf %s "checking for gethostbyname in -lnsl... " >&6; }
6305: if test ${ac_cv_lib_nsl_gethostbyname+y}
1.237 moko 6306: then :
1.243 moko 6307: printf %s "(cached) " >&6
6308: else case e in #(
6309: e) ac_check_lib_save_LIBS=$LIBS
6310: LIBS="-lnsl $LIBS"
6311: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6312: /* end confdefs.h. */
1.100 misha 6313:
1.243 moko 6314: /* Override any GCC internal prototype to avoid an error.
6315: Use char because int might match the return type of a GCC
6316: builtin and then its argument prototype would still apply.
6317: The 'extern "C"' is for builds by C++ compilers;
6318: although this is not generally supported in C code supporting it here
6319: has little cost and some practical benefit (sr 110532). */
6320: #ifdef __cplusplus
6321: extern "C"
6322: #endif
6323: char gethostbyname (void);
1.218 moko 6324: int
1.237 moko 6325: main (void)
1.218 moko 6326: {
1.243 moko 6327: return gethostbyname ();
1.218 moko 6328: ;
6329: return 0;
6330: }
6331: _ACEOF
1.237 moko 6332: if ac_fn_c_try_link "$LINENO"
6333: then :
1.243 moko 6334: ac_cv_lib_nsl_gethostbyname=yes
1.237 moko 6335: else case e in #(
1.243 moko 6336: e) ac_cv_lib_nsl_gethostbyname=no ;;
1.237 moko 6337: esac
1.218 moko 6338: fi
1.237 moko 6339: rm -f core conftest.err conftest.$ac_objext conftest.beam \
1.218 moko 6340: conftest$ac_exeext conftest.$ac_ext
1.243 moko 6341: LIBS=$ac_check_lib_save_LIBS ;;
6342: esac
6343: fi
6344: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
6345: printf "%s\n" "$ac_cv_lib_nsl_gethostbyname" >&6; }
6346: if test "x$ac_cv_lib_nsl_gethostbyname" = xyes
6347: then :
6348: printf "%s\n" "#define HAVE_LIBNSL 1" >>confdefs.h
6349:
6350: LIBS="-lnsl $LIBS"
1.229 moko 6351:
1.218 moko 6352: fi
6353:
1.243 moko 6354: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
6355: printf %s "checking for socket in -lsocket... " >&6; }
6356: if test ${ac_cv_lib_socket_socket+y}
6357: then :
6358: printf %s "(cached) " >&6
6359: else case e in #(
6360: e) ac_check_lib_save_LIBS=$LIBS
6361: LIBS="-lsocket $LIBS"
6362: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6363: /* end confdefs.h. */
1.229 moko 6364:
1.243 moko 6365: /* Override any GCC internal prototype to avoid an error.
6366: Use char because int might match the return type of a GCC
6367: builtin and then its argument prototype would still apply.
6368: The 'extern "C"' is for builds by C++ compilers;
6369: although this is not generally supported in C code supporting it here
6370: has little cost and some practical benefit (sr 110532). */
6371: #ifdef __cplusplus
6372: extern "C"
6373: #endif
6374: char socket (void);
1.142 moko 6375: int
1.237 moko 6376: main (void)
1.142 moko 6377: {
1.243 moko 6378: return socket ();
1.142 moko 6379: ;
6380: return 0;
6381: }
6382: _ACEOF
1.237 moko 6383: if ac_fn_c_try_link "$LINENO"
6384: then :
1.243 moko 6385: ac_cv_lib_socket_socket=yes
1.237 moko 6386: else case e in #(
1.243 moko 6387: e) ac_cv_lib_socket_socket=no ;;
1.237 moko 6388: esac
1.142 moko 6389: fi
1.237 moko 6390: rm -f core conftest.err conftest.$ac_objext conftest.beam \
1.150 moko 6391: conftest$ac_exeext conftest.$ac_ext
1.243 moko 6392: LIBS=$ac_check_lib_save_LIBS ;;
6393: esac
1.142 moko 6394: fi
1.243 moko 6395: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
6396: printf "%s\n" "$ac_cv_lib_socket_socket" >&6; }
6397: if test "x$ac_cv_lib_socket_socket" = xyes
6398: then :
6399: printf "%s\n" "#define HAVE_LIBSOCKET 1" >>confdefs.h
1.100 misha 6400:
1.243 moko 6401: LIBS="-lsocket $LIBS"
1.100 misha 6402:
1.243 moko 6403: fi
1.100 misha 6404:
1.243 moko 6405: ;;
6406: *-cygwin*)
1.100 misha 6407:
1.243 moko 6408: printf "%s\n" "#define WIN32 /**/" >>confdefs.h
1.66 paf 6409:
1.243 moko 6410: ;;
6411: esac
1.66 paf 6412:
1.243 moko 6413: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sin in -lm" >&5
6414: printf %s "checking for sin in -lm... " >&6; }
6415: if test ${ac_cv_lib_m_sin+y}
1.237 moko 6416: then :
1.243 moko 6417: printf %s "(cached) " >&6
6418: else case e in #(
6419: e) ac_check_lib_save_LIBS=$LIBS
6420: LIBS="-lm $LIBS"
6421: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6422: /* end confdefs.h. */
1.66 paf 6423:
1.243 moko 6424: /* Override any GCC internal prototype to avoid an error.
6425: Use char because int might match the return type of a GCC
6426: builtin and then its argument prototype would still apply.
6427: The 'extern "C"' is for builds by C++ compilers;
6428: although this is not generally supported in C code supporting it here
6429: has little cost and some practical benefit (sr 110532). */
6430: #ifdef __cplusplus
6431: extern "C"
6432: #endif
6433: char sin (void);
1.142 moko 6434: int
1.237 moko 6435: main (void)
1.142 moko 6436: {
1.243 moko 6437: return sin ();
1.142 moko 6438: ;
6439: return 0;
6440: }
6441: _ACEOF
1.237 moko 6442: if ac_fn_c_try_link "$LINENO"
6443: then :
1.243 moko 6444: ac_cv_lib_m_sin=yes
1.237 moko 6445: else case e in #(
1.243 moko 6446: e) ac_cv_lib_m_sin=no ;;
1.237 moko 6447: esac
1.142 moko 6448: fi
1.237 moko 6449: rm -f core conftest.err conftest.$ac_objext conftest.beam \
1.150 moko 6450: conftest$ac_exeext conftest.$ac_ext
1.243 moko 6451: LIBS=$ac_check_lib_save_LIBS ;;
6452: esac
6453: fi
6454: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sin" >&5
6455: printf "%s\n" "$ac_cv_lib_m_sin" >&6; }
6456: if test "x$ac_cv_lib_m_sin" = xyes
6457: then :
6458: printf "%s\n" "#define HAVE_LIBM 1" >>confdefs.h
1.229 moko 6459:
1.243 moko 6460: LIBS="-lm $LIBS"
1.66 paf 6461:
1.150 moko 6462: fi
1.66 paf 6463:
1.243 moko 6464: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
6465: printf %s "checking for crypt in -lcrypt... " >&6; }
6466: if test ${ac_cv_lib_crypt_crypt+y}
1.237 moko 6467: then :
1.243 moko 6468: printf %s "(cached) " >&6
6469: else case e in #(
6470: e) ac_check_lib_save_LIBS=$LIBS
6471: LIBS="-lcrypt $LIBS"
6472: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6473: /* end confdefs.h. */
1.154 moko 6474:
1.243 moko 6475: /* Override any GCC internal prototype to avoid an error.
6476: Use char because int might match the return type of a GCC
6477: builtin and then its argument prototype would still apply.
6478: The 'extern "C"' is for builds by C++ compilers;
6479: although this is not generally supported in C code supporting it here
6480: has little cost and some practical benefit (sr 110532). */
6481: #ifdef __cplusplus
6482: extern "C"
6483: #endif
6484: char crypt (void);
1.154 moko 6485: int
1.237 moko 6486: main (void)
1.154 moko 6487: {
1.243 moko 6488: return crypt ();
1.154 moko 6489: ;
6490: return 0;
6491: }
6492: _ACEOF
1.237 moko 6493: if ac_fn_c_try_link "$LINENO"
6494: then :
1.243 moko 6495: ac_cv_lib_crypt_crypt=yes
1.237 moko 6496: else case e in #(
1.243 moko 6497: e) ac_cv_lib_crypt_crypt=no ;;
1.237 moko 6498: esac
1.150 moko 6499: fi
1.237 moko 6500: rm -f core conftest.err conftest.$ac_objext conftest.beam \
1.154 moko 6501: conftest$ac_exeext conftest.$ac_ext
1.243 moko 6502: LIBS=$ac_check_lib_save_LIBS ;;
6503: esac
6504: fi
6505: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
6506: printf "%s\n" "$ac_cv_lib_crypt_crypt" >&6; }
6507: if test "x$ac_cv_lib_crypt_crypt" = xyes
6508: then :
6509: printf "%s\n" "#define HAVE_LIBCRYPT 1" >>confdefs.h
1.229 moko 6510:
1.243 moko 6511: LIBS="-lcrypt $LIBS"
1.66 paf 6512:
1.154 moko 6513: fi
1.66 paf 6514:
6515:
6516:
6517:
1.243 moko 6518: # Check whether --with-build-warnings was given.
6519: if test ${with_build_warnings+y}
6520: then :
6521: withval=$with_build_warnings; { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: enabling compiler warnings" >&5
6522: printf "%s\n" "$as_me: WARNING: enabling compiler warnings" >&2;}
6523: CXXFLAGS="$CXXFLAGS -D_FORTIFY_SOURCE=2 -Wextra -Wall -Wno-parentheses"
1.66 paf 6524:
1.243 moko 6525: fi
1.241 moko 6526:
6527:
6528:
1.243 moko 6529: # Check whether --with-coverage was given.
6530: if test ${with_coverage+y}
1.241 moko 6531: then :
1.243 moko 6532: withval=$with_coverage; { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: enabling gcov support" >&5
6533: printf "%s\n" "$as_me: WARNING: enabling gcov support" >&2;}
6534: CFLAGS=`echo "$CFLAGS" | $SED -e 's/-O0-9*//g'`
6535: CXXFLAGS=`echo "$XXCFLAGS" | $SED -e 's/-O0-9*//g'`
6536: CFLAGS="$CFLAGS -O0 -fprofile-arcs -ftest-coverage"
6537: CXXFLAGS="$CXXFLAGS -O0 -fprofile-arcs -ftest-coverage"
6538: LDFLAGS="$LDFLAGS -lgcov"
1.241 moko 6539:
6540: fi
1.66 paf 6541:
1.232 moko 6542:
6543:
1.243 moko 6544: # Check whether --with-profiler was given.
6545: if test ${with_profiler+y}
1.237 moko 6546: then :
1.243 moko 6547: withval=$with_profiler; { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: enabling gprof support" >&5
6548: printf "%s\n" "$as_me: WARNING: enabling gprof support" >&2;}
6549: CFLAGS="$CFLAGS -O0 -pg -g"
6550: CXXFLAGS="$CXXFLAGS -O0 -pg -g"
1.237 moko 6551:
1.243 moko 6552: fi
1.232 moko 6553:
6554:
6555:
1.243 moko 6556: # Check whether --with-assertions was given.
6557: if test ${with_assertions+y}
1.241 moko 6558: then :
1.243 moko 6559: withval=$with_assertions; { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: enabling assertions" >&5
6560: printf "%s\n" "$as_me: WARNING: enabling assertions" >&2;}
1.241 moko 6561:
6562: else case e in #(
6563: e)
1.243 moko 6564: printf "%s\n" "#define NDEBUG /**/" >>confdefs.h
6565:
1.241 moko 6566: ;;
6567: esac
6568: fi
6569:
6570:
6571:
1.243 moko 6572: # Check whether --with-sjlj-exceptions was given.
6573: if test ${with_sjlj_exceptions+y}
6574: then :
6575: withval=$with_sjlj_exceptions;
6576: printf "%s\n" "#define PA_WITH_SJLJ_EXCEPTIONS /**/" >>confdefs.h
1.232 moko 6577:
6578:
6579: fi
6580:
6581:
6582:
6583:
1.243 moko 6584: # Check whether --with-system-cfg was given.
6585: if test ${with_system_cfg+y}
6586: then :
6587: withval=$with_system_cfg;
6588: printf "%s\n" "#define SYSTEM_CONFIG_FILE \"$withval\"" >>confdefs.h
1.232 moko 6589:
6590:
1.243 moko 6591: fi
1.239 moko 6592:
6593:
6594:
1.243 moko 6595: # Check whether --enable-safe-mode was given.
6596: if test ${enable_safe_mode+y}
1.239 moko 6597: then :
1.243 moko 6598: enableval=$enable_safe_mode;
6599: SAFE_MODE=$enableval
1.239 moko 6600:
6601:
6602: fi
6603:
6604:
1.243 moko 6605: if test "$SAFE_MODE" = "no"; then
6606: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: enabling reading of files belonging to group+user other then effective" >&5
6607: printf "%s\n" "$as_me: WARNING: enabling reading of files belonging to group+user other then effective" >&2;}
6608: else
1.239 moko 6609:
1.243 moko 6610: printf "%s\n" "#define PA_SAFE_MODE /**/" >>confdefs.h
1.239 moko 6611:
6612: fi
6613:
6614:
1.243 moko 6615: # Check whether --enable-execs was given.
6616: if test ${enable_execs+y}
6617: then :
6618: enableval=$enable_execs;
6619: if test "$enableval" = "no"; then
6620: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: disabling file execs" >&5
6621: printf "%s\n" "$as_me: WARNING: disabling file execs" >&2;}
1.239 moko 6622:
1.243 moko 6623: printf "%s\n" "#define NO_PA_EXECS /**/" >>confdefs.h
1.239 moko 6624:
1.243 moko 6625: fi
1.239 moko 6626:
6627:
1.243 moko 6628: fi
1.66 paf 6629:
6630:
6631:
1.243 moko 6632: # Check whether --enable-stringstream was given.
6633: if test ${enable_stringstream+y}
1.237 moko 6634: then :
1.243 moko 6635: enableval=$enable_stringstream;
6636: if test "$enableval" = "no"; then
6637: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: disabling stringstream usage" >&5
6638: printf "%s\n" "$as_me: WARNING: disabling stringstream usage" >&2;}
1.122 moko 6639:
1.243 moko 6640: printf "%s\n" "#define NO_STRINGSTREAM /**/" >>confdefs.h
1.122 moko 6641:
1.150 moko 6642: fi
1.7 paf 6643:
6644:
1.66 paf 6645: fi
1.1 paf 6646:
6647:
6648:
1.62 paf 6649:
1.243 moko 6650: # Check whether --with-gc was given.
6651: if test ${with_gc+y}
6652: then :
6653: withval=$with_gc;
1.62 paf 6654:
1.243 moko 6655: GC=$withval
6656: GC_LIBS="$GC/libgc.la"
1.7 paf 6657:
1.243 moko 6658: if test -f $GC_LIBS; then
6659: GC_OK="yes"
6660: else
6661: GC_LIBS="-L$GC -lgc"
6662: fi
1.1 paf 6663:
1.243 moko 6664: if test "$GC" = "yes"; then
6665: GC=""
6666: GC_LIBS="-lgc"
6667: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: --with-gc value was not specified, hoping linker would find it" >&5
6668: printf "%s\n" "$as_me: WARNING: --with-gc value was not specified, hoping linker would find it" >&2;}
6669: fi
1.1 paf 6670:
1.243 moko 6671: else case e in #(
6672: e)
6673: GC_LIBS="-lgc"
6674: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: --with-gc was not specified, hoping linker would find it" >&5
6675: printf "%s\n" "$as_me: WARNING: --with-gc was not specified, hoping linker would find it" >&2;}
6676: ;;
1.128 moko 6677: esac
1.243 moko 6678: fi
1.128 moko 6679:
6680:
1.243 moko 6681: if test -z "$GC_OK"; then
6682: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libgc" >&5
6683: printf %s "checking for libgc... " >&6; }
6684: SAVE_LIBS=$LIBS
6685: LIBS="$LIBS $GC_LIBS"
1.128 moko 6686:
1.243 moko 6687: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6688: /* end confdefs.h. */
6689: extern int GC_dont_gc;
6690: int
6691: main (void)
6692: {
6693: GC_dont_gc=0;
6694: ;
6695: return 0;
6696: }
6697: _ACEOF
6698: if ac_fn_c_try_link "$LINENO"
6699: then :
6700: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6701: printf "%s\n" "yes" >&6; }
1.237 moko 6702:
1.243 moko 6703: else case e in #(
6704: e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6705: printf "%s\n" "no" >&6; }
6706: if test -z "$GC"; then
6707: as_fn_error $? "please specify path to libgc: --with-gc=DIR" "$LINENO" 5
6708: else
6709: as_fn_error $? "$GC does not seem to be valid libgc installation directory" "$LINENO" 5
6710: fi
1.128 moko 6711:
1.243 moko 6712: ;;
6713: esac
6714: fi
6715: rm -f core conftest.err conftest.$ac_objext conftest.beam \
6716: conftest$ac_exeext conftest.$ac_ext
1.128 moko 6717:
1.243 moko 6718: LIBS=$SAVE_LIBS
6719: fi
1.128 moko 6720:
6721:
6722:
6723:
6724:
1.243 moko 6725: # Check whether --with-pcre was given.
6726: if test ${with_pcre+y}
6727: then :
6728: withval=$with_pcre;
6729: PCRE=$withval
1.128 moko 6730:
1.243 moko 6731: if test "$PCRE" = "yes"; then
6732: PCRE=""
6733: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: --with-pcre value was not specified, hoping linker would find it" >&5
6734: printf "%s\n" "$as_me: WARNING: --with-pcre value was not specified, hoping linker would find it" >&2;}
6735: else
6736: PCRE_INCLUDES="-I$PCRE/include"
1.128 moko 6737:
1.243 moko 6738: if test -f $PCRE/include/pcre.h -a -f $PCRE/lib/libpcre.la; then
6739: PCRE_OK="yes"
6740: PCRE_LIBS="$PCRE/lib/libpcre.la"
6741: else
6742: if test -f $PCRE/include/pcre2.h -a -f $PCRE/lib/libpcre2-8.la; then
6743: PCRE_OK="yes"
6744: PCRE_LIBS="$PCRE/lib/libpcre2-8.la"
1.128 moko 6745:
1.243 moko 6746: printf "%s\n" "#define HAVE_PCRE2 /**/" >>confdefs.h
1.128 moko 6747:
1.243 moko 6748: else
6749: PCRE_LIBS="-L$PCRE/lib"
6750: fi
6751: fi
6752: fi
1.128 moko 6753:
1.243 moko 6754: else case e in #(
6755: e)
6756: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: --with-pcre was not specified, hoping linker would find it" >&5
6757: printf "%s\n" "$as_me: WARNING: --with-pcre was not specified, hoping linker would find it" >&2;}
6758: ;;
6759: esac
6760: fi
1.128 moko 6761:
6762:
1.243 moko 6763: if test -z "$PCRE_OK"; then
6764: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pcre2" >&5
6765: printf %s "checking for pcre2... " >&6; }
6766: SAVE_LIBS=$LIBS
6767: LIBS="$LIBS $PCRE_LIBS $PCRE_INCLUDES -lpcre2-8"
1.10 paf 6768:
1.243 moko 6769: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6770: /* end confdefs.h. */
6771: #define PCRE2_CODE_UNIT_WIDTH 8
6772: #include <pcre2.h>
6773: int
6774: main (void)
6775: {
6776: void *v=pcre2_general_context_create(0,0,0);
6777: ;
6778: return 0;
6779: }
6780: _ACEOF
6781: if ac_fn_c_try_link "$LINENO"
6782: then :
6783: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6784: printf "%s\n" "yes" >&6; }
6785: PCRE_LIBS="$PCRE_LIBS -lpcre2-8"
1.10 paf 6786:
1.243 moko 6787: printf "%s\n" "#define HAVE_PCRE2 /**/" >>confdefs.h
1.62 paf 6788:
1.243 moko 6789: PCRE_OK="yes"
1.86 paf 6790:
1.243 moko 6791: else case e in #(
6792: e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6793: printf "%s\n" "no" >&6; }
1.86 paf 6794:
1.243 moko 6795: ;;
6796: esac
6797: fi
6798: rm -f core conftest.err conftest.$ac_objext conftest.beam \
6799: conftest$ac_exeext conftest.$ac_ext
1.86 paf 6800:
1.243 moko 6801: LIBS=$SAVE_LIBS
1.128 moko 6802: fi
1.86 paf 6803:
1.243 moko 6804: if test -z "$PCRE_OK"; then
6805: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pcre" >&5
6806: printf %s "checking for pcre... " >&6; }
6807: PCRE_LIBS="$PCRE_LIBS -lpcre"
6808: SAVE_LIBS=$LIBS
6809: LIBS="$LIBS $PCRE_LIBS $PCRE_INCLUDES"
6810:
6811: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6812: /* end confdefs.h. */
6813: #include <pcre.h>
6814: int
6815: main (void)
1.66 paf 6816: {
1.243 moko 6817: const char *v=pcre_version();
6818: ;
6819: return 0;
1.66 paf 6820: }
1.243 moko 6821: _ACEOF
6822: if ac_fn_c_try_link "$LINENO"
6823: then :
6824: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6825: printf "%s\n" "yes" >&6; }
6826:
6827: else case e in #(
6828: e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6829: printf "%s\n" "no" >&6; }
6830: if test -z "$PCRE"; then
6831: as_fn_error $? "please specify path to PCRE: --with-pcre=DIR" "$LINENO" 5
6832: else
6833: as_fn_error $? "$PCRE does not seem to be valid PCRE installation directory" "$LINENO" 5
6834: fi
1.10 paf 6835:
1.243 moko 6836: ;;
1.128 moko 6837: esac
1.243 moko 6838: fi
6839: rm -f core conftest.err conftest.$ac_objext conftest.beam \
6840: conftest$ac_exeext conftest.$ac_ext
1.128 moko 6841:
1.243 moko 6842: LIBS=$SAVE_LIBS
6843: fi
1.128 moko 6844:
6845:
6846:
6847:
6848:
6849:
1.243 moko 6850: # Check whether --with-xml was given.
6851: if test ${with_xml+y}
6852: then :
6853: withval=$with_xml;
1.128 moko 6854:
1.243 moko 6855: XML=$withval
6856: XML_LIBS="-lxml2 -lxslt -lexslt"
1.128 moko 6857:
1.243 moko 6858: if test -z "$XML" -o "$XML" = "yes"; then
6859: XML=""
6860: XML_INCLUDES="-I/usr/include/libxml2"
6861: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: --with-xml value was not specified, hoping linker would find it" >&5
6862: printf "%s\n" "$as_me: WARNING: --with-xml value was not specified, hoping linker would find it" >&2;}
6863: else
6864: XML_INCLUDES="-I$XML/include -I$XML/include/libxml2"
6865: XML_LIBS="-L$XML/lib $XML_LIBS"
1.128 moko 6866:
1.243 moko 6867: if test -f $XML/include/libxslt/xslt.h -a -f $XML/lib/libxml2.la \
6868: -a -f $XML/lib/libxslt.la -a -f $XML/lib/libexslt.la; then
6869: XML_LIBS="$XML/lib/libxml2.la $XML/lib/libxslt.la $XML/lib/libexslt.la"
6870: XML_OK="yes"
6871: fi
6872: fi
1.128 moko 6873:
1.243 moko 6874: if test -z "$XML_OK"; then
6875: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for xml" >&5
6876: printf %s "checking for xml... " >&6; }
6877: SAVE_LIBS=$LIBS
6878: LIBS="$LIBS $XML_LIBS $XML_INCLUDES"
1.128 moko 6879:
1.243 moko 6880: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6881: /* end confdefs.h. */
6882: #include <libxslt/xslt.h>
6883: int
6884: main (void)
6885: {
6886: const char *v=xsltEngineVersion;
6887: ;
6888: return 0;
6889: }
6890: _ACEOF
6891: if ac_fn_c_try_link "$LINENO"
6892: then :
6893: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6894: printf "%s\n" "yes" >&6; }
1.128 moko 6895:
1.237 moko 6896: else case e in #(
1.243 moko 6897: e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6898: printf "%s\n" "no" >&6; }
6899: if test -z "$XML"; then
6900: as_fn_error $? "please specify path to Gnome XML libraries: --with-xml=DIR" "$LINENO" 5
6901: else
6902: as_fn_error $? "$XML does not seem to be valid Gnome XML installation directory" "$LINENO" 5
6903: fi
1.150 moko 6904:
1.243 moko 6905: ;;
1.237 moko 6906: esac
1.66 paf 6907: fi
1.243 moko 6908: rm -f core conftest.err conftest.$ac_objext conftest.beam \
6909: conftest$ac_exeext conftest.$ac_ext
6910:
6911: LIBS=$SAVE_LIBS
6912: fi
6913:
6914: printf "%s\n" "#define XML /**/" >>confdefs.h
1.128 moko 6915:
1.10 paf 6916:
1.243 moko 6917: fi
1.128 moko 6918:
6919:
6920:
6921:
6922:
6923:
6924:
1.243 moko 6925: # Check whether --with-mailreceive was given.
6926: if test ${with_mailreceive+y}
6927: then :
6928: withval=$with_mailreceive;
6929: MIME=$withval
6930: GLIB="glib-2.0"
6931: GMIME="gmime-2.4"
1.128 moko 6932:
1.243 moko 6933: if test -z "$MIME" -o "$MIME" = "yes"; then
6934: MIME=""
6935: MIME_INCLUDES=`pkg-config --cflags $GMIME 2>/dev/null`
6936: MIME_LIBS=`pkg-config --libs $GMIME 2>/dev/null`
6937: if test -z "$MIME_LIBS"; then
6938: GMIME="gmime-3.0"
6939: MIME_INCLUDES=`pkg-config --cflags $GMIME 2>/dev/null`
6940: MIME_LIBS=`pkg-config --libs $GMIME 2>/dev/null`
6941: fi
6942: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: --with-mailreceive value was not specified, hoping linker would find Gnome MIME library" >&5
6943: printf "%s\n" "$as_me: WARNING: --with-mailreceive value was not specified, hoping linker would find Gnome MIME library" >&2;}
6944: else
6945: MIME_INCLUDES="-I$MIME/include/$GMIME"
6946: MIME_LIBS="-l$GMIME"
6947: if test -f $MIME/include/$GMIME/gmime/gmime.h -a -f $MIME/lib/lib$GMIME.la; then
6948: MIME_LIBS="$MIME/lib/lib$GMIME.la"
6949: if test -f $MIME/lib/lib$GLIB.la; then
6950: MIME_INCLUDES="$MIME_INCLUDES -I$MIME/include/$GLIB -I$MIME/lib/$GLIB/include"
6951: else
6952: GLIB_INCLUDES=`pkg-config --cflags $GLIB 2>/dev/null`
6953: MIME_INCLUDES="$MIME_INCLUDES $GLIB_INCLUDES"
6954: fi
6955: MIME_OK="yes"
6956: fi
6957: fi
1.128 moko 6958:
1.243 moko 6959: if test -z "$MIME_OK"; then
6960: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for mime" >&5
6961: printf %s "checking for mime... " >&6; }
6962: SAVE_LIBS=$LIBS
6963: LIBS="$LIBS $MIME_LIBS $MIME_INCLUDES"
1.128 moko 6964:
1.243 moko 6965: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6966: /* end confdefs.h. */
6967: #include <gmime/gmime.h>
6968: int
6969: main (void)
6970: {
6971: guint v=gmime_major_version;
6972: ;
6973: return 0;
6974: }
6975: _ACEOF
6976: if ac_fn_c_try_link "$LINENO"
1.237 moko 6977: then :
1.243 moko 6978: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6979: printf "%s\n" "yes" >&6; }
6980:
1.237 moko 6981: else case e in #(
1.243 moko 6982: e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6983: printf "%s\n" "no" >&6; }
6984: if test -z "$MIME"; then
6985: as_fn_error $? "please specify path to Gnome MIME library: --with-mailreceive=DIR" "$LINENO" 5
6986: else
6987: as_fn_error $? "$MIME does not seem to be valid Gnome MIME installation directory" "$LINENO" 5
6988: fi
1.150 moko 6989:
1.243 moko 6990: ;;
1.237 moko 6991: esac
1.128 moko 6992: fi
1.243 moko 6993: rm -f core conftest.err conftest.$ac_objext conftest.beam \
6994: conftest$ac_exeext conftest.$ac_ext
6995:
6996: LIBS=$SAVE_LIBS
6997: fi
6998:
6999: printf "%s\n" "#define WITH_MAILRECEIVE /**/" >>confdefs.h
7000:
7001:
7002: fi
1.150 moko 7003:
7004:
1.243 moko 7005:
7006:
7007:
7008:
7009: ac_header= ac_cache=
7010: for ac_item in $ac_header_c_list
1.150 moko 7011: do
1.243 moko 7012: if test $ac_cache; then
7013: ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
7014: if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
7015: printf "%s\n" "#define $ac_item 1" >> confdefs.h
1.150 moko 7016: fi
1.243 moko 7017: ac_header= ac_cache=
7018: elif test $ac_header; then
7019: ac_cache=$ac_item
7020: else
7021: ac_header=$ac_item
7022: fi
7023: done
7024:
7025:
7026:
7027:
1.128 moko 7028:
7029:
1.150 moko 7030:
7031:
1.243 moko 7032: if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
1.237 moko 7033: then :
1.150 moko 7034:
1.243 moko 7035: printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
1.150 moko 7036:
1.128 moko 7037: fi
7038:
1.243 moko 7039: # Check whether --with-amqp was given.
7040: if test ${with_amqp+y}
7041: then :
7042: withval=$with_amqp;
7043: AMQP=$withval
1.128 moko 7044:
1.243 moko 7045: if test -z "$AMQP" -o "$AMQP" = "yes"; then
7046: AMQP_INCLUDES=""
7047: AMQP_LIBS="-lrabbitmq"
7048: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: --with-amqp value was not specified, hoping linker would find it" >&5
7049: printf "%s\n" "$as_me: WARNING: --with-amqp value was not specified, hoping linker would find it" >&2;}
7050: else
7051: AMQP_INCLUDES="-I$AMQP/include"
7052: if test -f $AMQP/lib/librabbitmq.la; then
7053: AMQP_LIBS="$AMQP/lib/librabbitmq.la"
7054: else
7055: AMQP_LIBS="-L$AMQP/lib -lrabbitmq"
7056: fi
7057: fi
1.128 moko 7058:
1.243 moko 7059: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for librabbitmq" >&5
7060: printf %s "checking for librabbitmq... " >&6; }
7061: SAVE_LIBS=$LIBS
7062: LIBS="$AMQP_LIBS $AMQP_INCLUDES $LIBS"
1.128 moko 7063:
1.243 moko 7064: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7065: /* end confdefs.h. */
7066: #include <amqp.h>
7067: int
7068: main (void)
7069: {
7070: amqp_connection_state_t c = 0;
7071: ;
7072: return 0;
7073: }
7074: _ACEOF
7075: if ac_fn_c_try_link "$LINENO"
7076: then :
7077: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7078: printf "%s\n" "yes" >&6; }
1.128 moko 7079:
1.243 moko 7080: else case e in #(
7081: e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7082: printf "%s\n" "no" >&6; }
7083: if test -z "$AMQP"; then
7084: as_fn_error $? "please specify path to librabbitmq: --with-amqp=DIR" "$LINENO" 5
7085: else
7086: as_fn_error $? "$AMQP does not seem to be valid librabbitmq installation directory" "$LINENO" 5
7087: fi
1.128 moko 7088:
1.243 moko 7089: ;;
7090: esac
7091: fi
7092: rm -f core conftest.err conftest.$ac_objext conftest.beam \
7093: conftest$ac_exeext conftest.$ac_ext
1.128 moko 7094:
1.243 moko 7095: LIBS=$SAVE_LIBS
1.128 moko 7096:
1.243 moko 7097: SAVE_CPPFLAGS=$CPPFLAGS
7098: CPPFLAGS="$CPPFLAGS $AMQP_INCLUDES"
7099: ac_fn_c_check_header_compile "$LINENO" "amqp_ssl_socket.h" "ac_cv_header_amqp_ssl_socket_h" "$ac_includes_default"
7100: if test "x$ac_cv_header_amqp_ssl_socket_h" = xyes
7101: then :
1.128 moko 7102:
1.244 ! moko 7103: printf "%s\n" "#define WITH_AMQP_SSL /**/" >>confdefs.h
! 7104:
1.243 moko 7105: fi
1.128 moko 7106:
1.243 moko 7107: CPPFLAGS=$SAVE_CPPFLAGS
1.128 moko 7108:
7109:
1.243 moko 7110: printf "%s\n" "#define WITH_AMQP /**/" >>confdefs.h
1.128 moko 7111:
7112:
1.243 moko 7113: fi
1.128 moko 7114:
7115:
7116:
7117:
7118:
7119:
7120:
1.243 moko 7121: # Check whether --with-redis was given.
7122: if test ${with_redis+y}
1.237 moko 7123: then :
1.243 moko 7124: withval=$with_redis;
7125: REDIS=$withval
1.150 moko 7126:
1.243 moko 7127: if test -z "$REDIS" -o "$REDIS" = "yes"; then
7128: REDIS_INCLUDES=""
7129: REDIS_LIBS="-lhiredis"
7130: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: --with-redis value was not specified, hoping linker would find it" >&5
7131: printf "%s\n" "$as_me: WARNING: --with-redis value was not specified, hoping linker would find it" >&2;}
1.244 ! moko 7132:
! 7133: ac_fn_c_check_header_compile "$LINENO" "hiredis/hiredis_ssl.h" "ac_cv_header_hiredis_hiredis_ssl_h" "#include <hiredis/hiredis.h>
! 7134: "
! 7135: if test "x$ac_cv_header_hiredis_hiredis_ssl_h" = xyes
! 7136: then :
! 7137:
! 7138:
! 7139: printf "%s\n" "#define WITH_REDIS_SSL /**/" >>confdefs.h
! 7140:
! 7141: REDIS_LIBS="-lhiredis_ssl $REDIS_LIBS"
! 7142:
! 7143: fi
! 7144:
1.243 moko 7145: else
7146: REDIS_INCLUDES="-I$REDIS/include"
7147: if test -f $REDIS/lib/libhiredis.a; then
7148: REDIS_LIBS="$REDIS/lib/libhiredis.a"
7149: else
7150: REDIS_LIBS="-L$REDIS/lib -lhiredis"
7151: fi
1.128 moko 7152: fi
7153:
1.243 moko 7154: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for hiredis" >&5
7155: printf %s "checking for hiredis... " >&6; }
7156: SAVE_LIBS=$LIBS
7157: LIBS="$REDIS_LIBS $REDIS_INCLUDES $LIBS"
7158:
7159: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7160: /* end confdefs.h. */
7161: #include <hiredis/hiredis.h>
7162: int
7163: main (void)
7164: {
7165: redisContext *c = redisConnect("", 0);
7166: ;
7167: return 0;
7168: }
7169: _ACEOF
7170: if ac_fn_c_try_link "$LINENO"
1.237 moko 7171: then :
1.243 moko 7172: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7173: printf "%s\n" "yes" >&6; }
7174:
1.237 moko 7175: else case e in #(
1.243 moko 7176: e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7177: printf "%s\n" "no" >&6; }
7178: if test -z "$REDIS"; then
7179: as_fn_error $? "please specify path to hiredis: --with-redis=DIR" "$LINENO" 5
7180: else
7181: as_fn_error $? "$REDIS does not seem to be valid hiredis installation directory" "$LINENO" 5
7182: fi
7183:
7184: ;;
1.128 moko 7185: esac
7186: fi
1.243 moko 7187: rm -f core conftest.err conftest.$ac_objext conftest.beam \
7188: conftest$ac_exeext conftest.$ac_ext
7189:
7190: LIBS=$SAVE_LIBS
1.128 moko 7191:
1.243 moko 7192: printf "%s\n" "#define WITH_REDIS /**/" >>confdefs.h
1.128 moko 7193:
7194:
1.243 moko 7195: fi
1.128 moko 7196:
7197:
7198:
7199:
7200:
7201:
1.243 moko 7202: # Check whether --with-sendmail was given.
7203: if test ${with_sendmail+y}
1.237 moko 7204: then :
1.243 moko 7205: withval=$with_sendmail;
7206: printf "%s\n" "#define PA_FORCED_SENDMAIL \"$withval\"" >>confdefs.h
7207:
7208:
1.128 moko 7209: fi
1.243 moko 7210:
7211:
7212:
7213:
7214: # Check whether --with-apache was given.
7215: if test ${with_apache+y}
1.237 moko 7216: then :
1.243 moko 7217: withval=$with_apache;
7218: APXS=$withval
1.128 moko 7219:
1.243 moko 7220: if test -z "$APXS" -o "$APXS" = "yes"; then
7221: APXS=`which apxs 2>/dev/null`
7222: if test -z "$APXS"; then
7223: APXS=`which apxs2 2>/dev/null`
7224: fi
7225: fi
1.128 moko 7226:
1.243 moko 7227: APACHE=`$APXS -q TARGET 2>/dev/null`
1.150 moko 7228:
1.243 moko 7229: if test -z "$APACHE"; then
7230: as_fn_error $? "$APXS does not seem to be valid apache apxs utility path" "$LINENO" 5
7231: fi
7232:
7233: APACHE_MAIN_INC=`$APXS -q INCLUDEDIR`
7234: APACHE_EXTRA_INC=`$APXS -q EXTRA_INCLUDES 2>/dev/null`
7235: APACHE_INC="-I$APACHE_MAIN_INC $APACHE_EXTRA_INC"
7236: APACHE_CFLAGS=`$APXS -q CFLAGS`
7237:
7238: fi
7239:
7240:
7241:
7242:
7243: if test -n "$APACHE"; then
7244: COMPILE_APACHE_MODULE_TRUE=
7245: COMPILE_APACHE_MODULE_FALSE='#'
7246: else
7247: COMPILE_APACHE_MODULE_TRUE='#'
7248: COMPILE_APACHE_MODULE_FALSE=
7249: fi
7250:
7251:
7252:
7253:
7254:
7255:
7256:
7257:
7258:
7259:
7260: case `pwd` in
7261: *\ * | *\ *)
7262: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
7263: printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
7264: esac
7265:
7266:
7267:
7268: macro_version='2.5.4'
7269: macro_revision='2.5.4'
7270:
7271:
7272:
7273:
7274:
7275:
7276:
7277:
7278:
7279:
7280:
7281:
7282:
7283:
7284: ltmain=$ac_aux_dir/ltmain.sh
7285:
7286: # Backslashify metacharacters that are still active within
7287: # double-quoted strings.
7288: sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7289:
7290: # Same as above, but do not quote variable references.
7291: double_quote_subst='s/\(["`\\]\)/\\\1/g'
7292:
7293: # Sed substitution to delay expansion of an escaped shell variable in a
7294: # double_quote_subst'ed string.
7295: delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7296:
7297: # Sed substitution to delay expansion of an escaped single quote.
7298: delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7299:
7300: # Sed substitution to avoid accidental globbing in evaled expressions
7301: no_glob_subst='s/\*/\\\*/g'
7302:
7303: ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7304: ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
7305: ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
7306:
7307: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
7308: printf %s "checking how to print strings... " >&6; }
7309: # Test print first, because it will be a builtin if present.
7310: if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
7311: test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
7312: ECHO='print -r --'
7313: elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
7314: ECHO='printf %s\n'
7315: else
7316: # Use this function as a fallback that always works.
7317: func_fallback_echo ()
7318: {
7319: eval 'cat <<_LTECHO_EOF
7320: $1
7321: _LTECHO_EOF'
7322: }
7323: ECHO='func_fallback_echo'
1.128 moko 7324: fi
1.243 moko 7325:
7326: # func_echo_all arg...
7327: # Invoke $ECHO with all args, space-separated.
7328: func_echo_all ()
7329: {
7330: $ECHO ""
7331: }
7332:
7333: case $ECHO in
7334: printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
7335: printf "%s\n" "printf" >&6; } ;;
7336: print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
7337: printf "%s\n" "print -r" >&6; } ;;
7338: *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
7339: printf "%s\n" "cat" >&6; } ;;
7340: esac
7341:
7342:
7343:
7344:
7345:
7346:
7347:
7348:
7349:
7350:
7351:
7352:
7353:
7354:
7355: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7356: printf %s "checking for a sed that does not truncate output... " >&6; }
7357: if test ${ac_cv_path_SED+y}
1.237 moko 7358: then :
7359: printf %s "(cached) " >&6
7360: else case e in #(
1.243 moko 7361: e) ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7362: for ac_i in 1 2 3 4 5 6 7; do
7363: ac_script="$ac_script$as_nl$ac_script"
7364: done
7365: echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7366: { ac_script=; unset ac_script;}
7367: if test -z "$SED"; then
7368: ac_path_SED_found=false
7369: # Loop through the user's path and test for each of PROGNAME-LIST
7370: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1.128 moko 7371: for as_dir in $PATH
7372: do
7373: IFS=$as_save_IFS
1.237 moko 7374: case $as_dir in #(((
7375: '') as_dir=./ ;;
7376: */) ;;
7377: *) as_dir=$as_dir/ ;;
7378: esac
1.243 moko 7379: for ac_prog in sed gsed
7380: do
1.150 moko 7381: for ac_exec_ext in '' $ac_executable_extensions; do
1.243 moko 7382: ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
7383: as_fn_executable_p "$ac_path_SED" || continue
7384: # Check for GNU ac_path_SED and select it if it is found.
7385: # Check for GNU $ac_path_SED
7386: case `"$ac_path_SED" --version 2>&1` in #(
7387: *GNU*)
7388: ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7389: #(
7390: *)
7391: ac_count=0
7392: printf %s 0123456789 >"conftest.in"
7393: while :
7394: do
7395: cat "conftest.in" "conftest.in" >"conftest.tmp"
7396: mv "conftest.tmp" "conftest.in"
7397: cp "conftest.in" "conftest.nl"
7398: printf "%s\n" '' >> "conftest.nl"
7399: "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7400: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7401: as_fn_arith $ac_count + 1 && ac_count=$as_val
7402: if test $ac_count -gt ${ac_path_SED_max-0}; then
7403: # Best one so far, save it but keep looking for a better one
7404: ac_cv_path_SED="$ac_path_SED"
7405: ac_path_SED_max=$ac_count
7406: fi
7407: # 10*(2^10) chars as input seems more than enough
7408: test $ac_count -gt 10 && break
7409: done
7410: rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7411: esac
7412:
7413: $ac_path_SED_found && break 3
7414: done
7415: done
1.150 moko 7416: done
7417: IFS=$as_save_IFS
1.243 moko 7418: if test -z "$ac_cv_path_SED"; then
7419: as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
7420: fi
7421: else
7422: ac_cv_path_SED=$SED
7423: fi
7424: ;;
1.237 moko 7425: esac
1.128 moko 7426: fi
1.243 moko 7427: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7428: printf "%s\n" "$ac_cv_path_SED" >&6; }
7429: SED="$ac_cv_path_SED"
7430: rm -f conftest.sed
7431:
7432: test -z "$SED" && SED=sed
7433: Xsed="$SED -e 1s/^X//"
1.128 moko 7434:
1.150 moko 7435:
1.128 moko 7436:
7437:
7438:
7439:
7440:
7441:
7442:
7443:
7444:
1.243 moko 7445: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
7446: printf %s "checking for grep that handles long lines and -e... " >&6; }
7447: if test ${ac_cv_path_GREP+y}
1.237 moko 7448: then :
7449: printf %s "(cached) " >&6
7450: else case e in #(
1.243 moko 7451: e) if test -z "$GREP"; then
7452: ac_path_GREP_found=false
7453: # Loop through the user's path and test for each of PROGNAME-LIST
7454: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7455: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7456: do
7457: IFS=$as_save_IFS
7458: case $as_dir in #(((
7459: '') as_dir=./ ;;
7460: */) ;;
7461: *) as_dir=$as_dir/ ;;
7462: esac
7463: for ac_prog in grep ggrep
7464: do
7465: for ac_exec_ext in '' $ac_executable_extensions; do
7466: ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
7467: as_fn_executable_p "$ac_path_GREP" || continue
7468: # Check for GNU ac_path_GREP and select it if it is found.
7469: # Check for GNU $ac_path_GREP
7470: case `"$ac_path_GREP" --version 2>&1` in #(
7471: *GNU*)
7472: ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
7473: #(
7474: *)
7475: ac_count=0
7476: printf %s 0123456789 >"conftest.in"
7477: while :
7478: do
7479: cat "conftest.in" "conftest.in" >"conftest.tmp"
7480: mv "conftest.tmp" "conftest.in"
7481: cp "conftest.in" "conftest.nl"
7482: printf "%s\n" 'GREP' >> "conftest.nl"
7483: "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7484: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7485: as_fn_arith $ac_count + 1 && ac_count=$as_val
7486: if test $ac_count -gt ${ac_path_GREP_max-0}; then
7487: # Best one so far, save it but keep looking for a better one
7488: ac_cv_path_GREP="$ac_path_GREP"
7489: ac_path_GREP_max=$ac_count
7490: fi
7491: # 10*(2^10) chars as input seems more than enough
7492: test $ac_count -gt 10 && break
7493: done
7494: rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7495: esac
7496:
7497: $ac_path_GREP_found && break 3
7498: done
7499: done
7500: done
7501: IFS=$as_save_IFS
7502: if test -z "$ac_cv_path_GREP"; then
7503: as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
1.128 moko 7504: fi
1.243 moko 7505: else
7506: ac_cv_path_GREP=$GREP
7507: fi
7508: ;;
1.237 moko 7509: esac
1.128 moko 7510: fi
1.243 moko 7511: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
7512: printf "%s\n" "$ac_cv_path_GREP" >&6; }
7513: GREP="$ac_cv_path_GREP"
7514:
7515:
7516: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
7517: printf %s "checking for egrep... " >&6; }
7518: if test ${ac_cv_path_EGREP+y}
7519: then :
7520: printf %s "(cached) " >&6
7521: else case e in #(
7522: e) if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
7523: then ac_cv_path_EGREP="$GREP -E"
7524: else
7525: if test -z "$EGREP"; then
7526: ac_path_EGREP_found=false
7527: # Loop through the user's path and test for each of PROGNAME-LIST
7528: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7529: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7530: do
7531: IFS=$as_save_IFS
7532: case $as_dir in #(((
7533: '') as_dir=./ ;;
7534: */) ;;
7535: *) as_dir=$as_dir/ ;;
7536: esac
7537: for ac_prog in egrep
7538: do
7539: for ac_exec_ext in '' $ac_executable_extensions; do
7540: ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
7541: as_fn_executable_p "$ac_path_EGREP" || continue
7542: # Check for GNU ac_path_EGREP and select it if it is found.
7543: # Check for GNU $ac_path_EGREP
7544: case `"$ac_path_EGREP" --version 2>&1` in #(
7545: *GNU*)
7546: ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
7547: #(
7548: *)
7549: ac_count=0
7550: printf %s 0123456789 >"conftest.in"
7551: while :
7552: do
7553: cat "conftest.in" "conftest.in" >"conftest.tmp"
7554: mv "conftest.tmp" "conftest.in"
7555: cp "conftest.in" "conftest.nl"
7556: printf "%s\n" 'EGREP' >> "conftest.nl"
7557: "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7558: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7559: as_fn_arith $ac_count + 1 && ac_count=$as_val
7560: if test $ac_count -gt ${ac_path_EGREP_max-0}; then
7561: # Best one so far, save it but keep looking for a better one
7562: ac_cv_path_EGREP="$ac_path_EGREP"
7563: ac_path_EGREP_max=$ac_count
7564: fi
7565: # 10*(2^10) chars as input seems more than enough
7566: test $ac_count -gt 10 && break
7567: done
7568: rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7569: esac
1.128 moko 7570:
1.243 moko 7571: $ac_path_EGREP_found && break 3
7572: done
7573: done
7574: done
7575: IFS=$as_save_IFS
7576: if test -z "$ac_cv_path_EGREP"; then
7577: as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7578: fi
1.128 moko 7579: else
1.243 moko 7580: ac_cv_path_EGREP=$EGREP
7581: fi
7582:
7583: fi ;;
7584: esac
1.128 moko 7585: fi
1.243 moko 7586: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
7587: printf "%s\n" "$ac_cv_path_EGREP" >&6; }
7588: EGREP="$ac_cv_path_EGREP"
1.128 moko 7589:
1.243 moko 7590: EGREP_TRADITIONAL=$EGREP
7591: ac_cv_path_EGREP_TRADITIONAL=$EGREP
7592:
7593: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7594: printf %s "checking for fgrep... " >&6; }
7595: if test ${ac_cv_path_FGREP+y}
1.237 moko 7596: then :
7597: printf %s "(cached) " >&6
7598: else case e in #(
1.243 moko 7599: e) if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7600: then ac_cv_path_FGREP="$GREP -F"
7601: else
7602: if test -z "$FGREP"; then
7603: ac_path_FGREP_found=false
7604: # Loop through the user's path and test for each of PROGNAME-LIST
7605: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7606: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7607: do
7608: IFS=$as_save_IFS
7609: case $as_dir in #(((
7610: '') as_dir=./ ;;
7611: */) ;;
7612: *) as_dir=$as_dir/ ;;
7613: esac
7614: for ac_prog in fgrep
7615: do
7616: for ac_exec_ext in '' $ac_executable_extensions; do
7617: ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
7618: as_fn_executable_p "$ac_path_FGREP" || continue
7619: # Check for GNU ac_path_FGREP and select it if it is found.
7620: # Check for GNU $ac_path_FGREP
7621: case `"$ac_path_FGREP" --version 2>&1` in #(
7622: *GNU*)
7623: ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7624: #(
7625: *)
7626: ac_count=0
7627: printf %s 0123456789 >"conftest.in"
7628: while :
7629: do
7630: cat "conftest.in" "conftest.in" >"conftest.tmp"
7631: mv "conftest.tmp" "conftest.in"
7632: cp "conftest.in" "conftest.nl"
7633: printf "%s\n" 'FGREP' >> "conftest.nl"
7634: "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7635: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7636: as_fn_arith $ac_count + 1 && ac_count=$as_val
7637: if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7638: # Best one so far, save it but keep looking for a better one
7639: ac_cv_path_FGREP="$ac_path_FGREP"
7640: ac_path_FGREP_max=$ac_count
7641: fi
7642: # 10*(2^10) chars as input seems more than enough
7643: test $ac_count -gt 10 && break
7644: done
7645: rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7646: esac
7647:
7648: $ac_path_FGREP_found && break 3
7649: done
7650: done
7651: done
7652: IFS=$as_save_IFS
7653: if test -z "$ac_cv_path_FGREP"; then
7654: as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7655: fi
7656: else
7657: ac_cv_path_FGREP=$FGREP
7658: fi
7659:
7660: fi ;;
7661: esac
7662: fi
7663: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7664: printf "%s\n" "$ac_cv_path_FGREP" >&6; }
7665: FGREP="$ac_cv_path_FGREP"
1.128 moko 7666:
7667:
1.243 moko 7668: test -z "$GREP" && GREP=grep
7669:
1.128 moko 7670:
7671:
7672:
7673:
7674:
7675:
7676:
7677:
7678:
7679:
7680:
7681:
7682:
7683:
7684:
7685:
7686:
7687:
1.243 moko 7688: # Check whether --with-gnu-ld was given.
7689: if test ${with_gnu_ld+y}
7690: then :
7691: withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
7692: else case e in #(
7693: e) with_gnu_ld=no ;;
7694: esac
7695: fi
1.128 moko 7696:
1.243 moko 7697: ac_prog=ld
7698: if test yes = "$GCC"; then
7699: # Check if gcc -print-prog-name=ld gives a path.
7700: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7701: printf %s "checking for ld used by $CC... " >&6; }
7702: case $host in
7703: *-*-mingw* | *-*-windows*)
7704: # gcc leaves a trailing carriage return, which upsets mingw
7705: ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7706: *)
7707: ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7708: esac
7709: case $ac_prog in
7710: # Accept absolute paths.
7711: [\\/]* | ?:[\\/]*)
7712: re_direlt='/[^/][^/]*/\.\./'
7713: # Canonicalize the pathname of ld
7714: ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7715: while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7716: ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7717: done
7718: test -z "$LD" && LD=$ac_prog
7719: ;;
7720: "")
7721: # If it fails, then pretend we aren't using GCC.
7722: ac_prog=ld
7723: ;;
7724: *)
7725: # If it is relative, then search for the first ld in PATH.
7726: with_gnu_ld=unknown
7727: ;;
7728: esac
7729: elif test yes = "$with_gnu_ld"; then
7730: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7731: printf %s "checking for GNU ld... " >&6; }
7732: else
7733: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7734: printf %s "checking for non-GNU ld... " >&6; }
7735: fi
7736: if test ${lt_cv_path_LD+y}
7737: then :
7738: printf %s "(cached) " >&6
7739: else case e in #(
7740: e) if test -z "$LD"; then
7741: lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7742: for ac_dir in $PATH; do
7743: IFS=$lt_save_ifs
7744: test -z "$ac_dir" && ac_dir=.
7745: if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7746: lt_cv_path_LD=$ac_dir/$ac_prog
7747: # Check to see if the program is GNU ld. I'd rather use --version,
7748: # but apparently some variants of GNU ld only accept -v.
7749: # Break only if it was the GNU/non-GNU ld that we prefer.
7750: case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7751: *GNU* | *'with BFD'*)
7752: test no != "$with_gnu_ld" && break
7753: ;;
7754: *)
7755: test yes != "$with_gnu_ld" && break
7756: ;;
7757: esac
7758: fi
7759: done
7760: IFS=$lt_save_ifs
7761: else
7762: lt_cv_path_LD=$LD # Let the user override the test with a path.
7763: fi ;;
7764: esac
7765: fi
1.128 moko 7766:
1.243 moko 7767: LD=$lt_cv_path_LD
7768: if test -n "$LD"; then
7769: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7770: printf "%s\n" "$LD" >&6; }
7771: else
7772: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7773: printf "%s\n" "no" >&6; }
7774: fi
7775: test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
7776: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7777: printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
7778: if test ${lt_cv_prog_gnu_ld+y}
7779: then :
7780: printf %s "(cached) " >&6
7781: else case e in #(
7782: e) # I'd rather use --version here, but apparently some GNU lds only accept -v.
7783: case `$LD -v 2>&1 </dev/null` in
7784: *GNU* | *'with BFD'*)
7785: lt_cv_prog_gnu_ld=yes
1.128 moko 7786: ;;
1.243 moko 7787: *)
7788: lt_cv_prog_gnu_ld=no
1.128 moko 7789: ;;
1.243 moko 7790: esac ;;
1.128 moko 7791: esac
1.243 moko 7792: fi
7793: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7794: printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
7795: with_gnu_ld=$lt_cv_prog_gnu_ld
1.128 moko 7796:
7797:
7798:
7799:
7800:
7801:
7802:
7803:
7804:
1.243 moko 7805: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
7806: printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
7807: if test ${lt_cv_path_NM+y}
1.237 moko 7808: then :
7809: printf %s "(cached) " >&6
7810: else case e in #(
1.243 moko 7811: e) if test -n "$NM"; then
7812: # Let the user override the test.
7813: lt_cv_path_NM=$NM
7814: else
7815: lt_nm_to_check=${ac_tool_prefix}nm
7816: if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
7817: lt_nm_to_check="$lt_nm_to_check nm"
7818: fi
7819: for lt_tmp_nm in $lt_nm_to_check; do
7820: lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7821: for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
7822: IFS=$lt_save_ifs
7823: test -z "$ac_dir" && ac_dir=.
7824: tmp_nm=$ac_dir/$lt_tmp_nm
7825: if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
7826: # Check to see if the nm accepts a BSD-compat flag.
7827: # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
7828: # nm: unknown option "B" ignored
7829: # Tru64's nm complains that /dev/null is an invalid object file
7830: # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
7831: case $build_os in
7832: mingw* | windows*) lt_bad_file=conftest.nm/nofile ;;
7833: *) lt_bad_file=/dev/null ;;
7834: esac
7835: case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
7836: *$lt_bad_file* | *'Invalid file or object type'*)
7837: lt_cv_path_NM="$tmp_nm -B"
7838: break 2
7839: ;;
7840: *)
7841: case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
7842: */dev/null*)
7843: lt_cv_path_NM="$tmp_nm -p"
7844: break 2
7845: ;;
7846: *)
7847: lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7848: continue # so that we can try to find one that supports BSD flags
7849: ;;
7850: esac
7851: ;;
7852: esac
7853: fi
7854: done
7855: IFS=$lt_save_ifs
1.150 moko 7856: done
1.243 moko 7857: : ${lt_cv_path_NM=no}
1.237 moko 7858: fi ;;
7859: esac
7860: fi
1.243 moko 7861: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
7862: printf "%s\n" "$lt_cv_path_NM" >&6; }
7863: if test no != "$lt_cv_path_NM"; then
7864: NM=$lt_cv_path_NM
1.237 moko 7865: else
1.243 moko 7866: # Didn't find any BSD compatible name lister, look for dumpbin.
7867: if test -n "$DUMPBIN"; then :
7868: # Let the user override the test.
7869: else
7870: if test -n "$ac_tool_prefix"; then
7871: for ac_prog in dumpbin "link -dump"
7872: do
7873: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7874: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1.237 moko 7875: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7876: printf %s "checking for $ac_word... " >&6; }
1.243 moko 7877: if test ${ac_cv_prog_DUMPBIN+y}
1.237 moko 7878: then :
7879: printf %s "(cached) " >&6
7880: else case e in #(
1.243 moko 7881: e) if test -n "$DUMPBIN"; then
7882: ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
1.237 moko 7883: else
7884: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7885: for as_dir in $PATH
7886: do
7887: IFS=$as_save_IFS
7888: case $as_dir in #(((
7889: '') as_dir=./ ;;
7890: */) ;;
7891: *) as_dir=$as_dir/ ;;
7892: esac
7893: for ac_exec_ext in '' $ac_executable_extensions; do
7894: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.243 moko 7895: ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
1.237 moko 7896: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7897: break 2
7898: fi
7899: done
7900: done
7901: IFS=$as_save_IFS
7902:
7903: fi ;;
7904: esac
1.128 moko 7905: fi
1.243 moko 7906: DUMPBIN=$ac_cv_prog_DUMPBIN
7907: if test -n "$DUMPBIN"; then
7908: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
7909: printf "%s\n" "$DUMPBIN" >&6; }
1.128 moko 7910: else
1.237 moko 7911: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7912: printf "%s\n" "no" >&6; }
1.128 moko 7913: fi
7914:
1.150 moko 7915:
1.243 moko 7916: test -n "$DUMPBIN" && break
7917: done
1.128 moko 7918: fi
1.243 moko 7919: if test -z "$DUMPBIN"; then
7920: ac_ct_DUMPBIN=$DUMPBIN
7921: for ac_prog in dumpbin "link -dump"
7922: do
7923: # Extract the first word of "$ac_prog", so it can be a program name with args.
7924: set dummy $ac_prog; ac_word=$2
1.237 moko 7925: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7926: printf %s "checking for $ac_word... " >&6; }
1.243 moko 7927: if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
1.237 moko 7928: then :
7929: printf %s "(cached) " >&6
7930: else case e in #(
1.243 moko 7931: e) if test -n "$ac_ct_DUMPBIN"; then
7932: ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
1.128 moko 7933: else
7934: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7935: for as_dir in $PATH
7936: do
7937: IFS=$as_save_IFS
1.237 moko 7938: case $as_dir in #(((
7939: '') as_dir=./ ;;
7940: */) ;;
7941: *) as_dir=$as_dir/ ;;
7942: esac
1.150 moko 7943: for ac_exec_ext in '' $ac_executable_extensions; do
1.237 moko 7944: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.243 moko 7945: ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
1.237 moko 7946: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.128 moko 7947: break 2
7948: fi
7949: done
1.150 moko 7950: done
7951: IFS=$as_save_IFS
1.128 moko 7952:
1.237 moko 7953: fi ;;
7954: esac
1.128 moko 7955: fi
1.243 moko 7956: ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
7957: if test -n "$ac_ct_DUMPBIN"; then
7958: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
7959: printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
1.128 moko 7960: else
1.237 moko 7961: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7962: printf "%s\n" "no" >&6; }
1.128 moko 7963: fi
7964:
1.243 moko 7965:
7966: test -n "$ac_ct_DUMPBIN" && break
7967: done
7968:
7969: if test "x$ac_ct_DUMPBIN" = x; then
7970: DUMPBIN=":"
1.150 moko 7971: else
7972: case $cross_compiling:$ac_tool_warned in
7973: yes:)
1.237 moko 7974: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7975: printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
1.150 moko 7976: ac_tool_warned=yes ;;
7977: esac
1.243 moko 7978: DUMPBIN=$ac_ct_DUMPBIN
1.150 moko 7979: fi
1.128 moko 7980: fi
7981:
1.243 moko 7982: case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
7983: *COFF*)
7984: DUMPBIN="$DUMPBIN -symbols -headers"
7985: ;;
7986: *)
7987: DUMPBIN=:
7988: ;;
7989: esac
7990: fi
7991:
7992: if test : != "$DUMPBIN"; then
7993: NM=$DUMPBIN
7994: fi
7995: fi
7996: test -z "$NM" && NM=nm
1.128 moko 7997:
7998:
7999:
8000:
8001:
8002:
1.243 moko 8003: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
8004: printf %s "checking the name lister ($NM) interface... " >&6; }
8005: if test ${lt_cv_nm_interface+y}
1.237 moko 8006: then :
8007: printf %s "(cached) " >&6
8008: else case e in #(
1.243 moko 8009: e) lt_cv_nm_interface="BSD nm"
8010: echo "int some_variable = 0;" > conftest.$ac_ext
8011: (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
8012: (eval "$ac_compile" 2>conftest.err)
8013: cat conftest.err >&5
8014: (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
8015: (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
8016: cat conftest.err >&5
8017: (eval echo "\"\$as_me:$LINENO: output\"" >&5)
8018: cat conftest.out >&5
8019: if $GREP 'External.*some_variable' conftest.out > /dev/null; then
8020: lt_cv_nm_interface="MS dumpbin"
8021: fi
8022: rm -f conftest* ;;
8023: esac
8024: fi
8025: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
8026: printf "%s\n" "$lt_cv_nm_interface" >&6; }
8027:
8028: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
8029: printf %s "checking whether ln -s works... " >&6; }
8030: LN_S=$as_ln_s
8031: if test "$LN_S" = "ln -s"; then
8032: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8033: printf "%s\n" "yes" >&6; }
8034: else
8035: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
8036: printf "%s\n" "no, using $LN_S" >&6; }
8037: fi
1.128 moko 8038:
1.243 moko 8039: # find the maximum length of command line arguments
8040: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
8041: printf %s "checking the maximum length of command line arguments... " >&6; }
8042: if test ${lt_cv_sys_max_cmd_len+y}
8043: then :
8044: printf %s "(cached) " >&6
8045: else case e in #(
8046: e) i=0
8047: teststring=ABCD
1.128 moko 8048:
1.243 moko 8049: case $build_os in
8050: msdosdjgpp*)
8051: # On DJGPP, this test can blow up pretty badly due to problems in libc
8052: # (any single argument exceeding 2000 bytes causes a buffer overrun
8053: # during glob expansion). Even if it were fixed, the result of this
8054: # check would be larger than it should be.
8055: lt_cv_sys_max_cmd_len=12288; # 12K is about right
8056: ;;
1.128 moko 8057:
1.243 moko 8058: gnu* | ironclad*)
8059: # Under GNU Hurd and Ironclad, this test is not required because there
8060: # is no limit to the length of command line arguments.
8061: # Libtool will interpret -1 as no limit whatsoever
8062: lt_cv_sys_max_cmd_len=-1;
8063: ;;
1.128 moko 8064:
1.243 moko 8065: cygwin* | mingw* | windows* | cegcc*)
8066: # On Win9x/ME, this test blows up -- it succeeds, but takes
8067: # about 5 minutes as the teststring grows exponentially.
8068: # Worse, since 9x/ME are not pre-emptively multitasking,
8069: # you end up with a "frozen" computer, even though with patience
8070: # the test eventually succeeds (with a max line length of 256k).
8071: # Instead, let's just punt: use the minimum linelength reported by
8072: # all of the supported platforms: 8192 (on NT/2K/XP).
8073: lt_cv_sys_max_cmd_len=8192;
8074: ;;
1.128 moko 8075:
1.243 moko 8076: mint*)
8077: # On MiNT this can take a long time and run out of memory.
8078: lt_cv_sys_max_cmd_len=8192;
8079: ;;
1.128 moko 8080:
1.243 moko 8081: amigaos*)
8082: # On AmigaOS with pdksh, this test takes hours, literally.
8083: # So we just punt and use a minimum line length of 8192.
8084: lt_cv_sys_max_cmd_len=8192;
8085: ;;
1.128 moko 8086:
1.243 moko 8087: darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
8088: # This has been around since 386BSD, at least. Likely further.
8089: if test -x /sbin/sysctl; then
8090: lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
8091: elif test -x /usr/sbin/sysctl; then
8092: lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
8093: else
8094: lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
8095: fi
8096: # And add a safety zone
8097: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8098: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8099: ;;
1.128 moko 8100:
1.243 moko 8101: interix*)
8102: # We know the value 262144 and hardcode it with a safety zone (like BSD)
8103: lt_cv_sys_max_cmd_len=196608
8104: ;;
1.128 moko 8105:
1.243 moko 8106: os2*)
8107: # The test takes a long time on OS/2.
8108: lt_cv_sys_max_cmd_len=8192
8109: ;;
1.128 moko 8110:
1.243 moko 8111: osf*)
8112: # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
8113: # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
8114: # nice to cause kernel panics so lets avoid the loop below.
8115: # First set a reasonable default.
8116: lt_cv_sys_max_cmd_len=16384
8117: #
8118: if test -x /sbin/sysconfig; then
8119: case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
8120: *1*) lt_cv_sys_max_cmd_len=-1 ;;
8121: esac
8122: fi
8123: ;;
8124: sco3.2v5*)
8125: lt_cv_sys_max_cmd_len=102400
1.128 moko 8126: ;;
1.243 moko 8127: sysv5* | sco5v6* | sysv4.2uw2*)
8128: kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
8129: if test -n "$kargmax"; then
8130: lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'`
8131: else
8132: lt_cv_sys_max_cmd_len=32768
8133: fi
1.128 moko 8134: ;;
8135: *)
1.243 moko 8136: lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
8137: if test -n "$lt_cv_sys_max_cmd_len" && \
8138: test undefined != "$lt_cv_sys_max_cmd_len"; then
8139: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8140: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8141: else
8142: # Make teststring a little bigger before we do anything with it.
8143: # a 1K string should be a reasonable start.
8144: for i in 1 2 3 4 5 6 7 8; do
8145: teststring=$teststring$teststring
8146: done
8147: SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
8148: # If test is not a shell built-in, we'll probably end up computing a
8149: # maximum length that is only half of the actual maximum length, but
8150: # we can't tell.
8151: while { test X`env echo "$teststring$teststring" 2>/dev/null` \
8152: = "X$teststring$teststring"; } >/dev/null 2>&1 &&
8153: test 17 != "$i" # 1/2 MB should be enough
8154: do
8155: i=`expr $i + 1`
8156: teststring=$teststring$teststring
8157: done
8158: # Only check the string length outside the loop.
8159: lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
8160: teststring=
8161: # Add a significant safety factor because C++ compilers can tack on
8162: # massive amounts of additional arguments before passing them to the
8163: # linker. It appears as though 1/2 is a usable value.
8164: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
8165: fi
1.128 moko 8166: ;;
8167: esac
1.243 moko 8168: ;;
8169: esac
8170: fi
8171:
8172: if test -n "$lt_cv_sys_max_cmd_len"; then
8173: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
8174: printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
8175: else
8176: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
8177: printf "%s\n" "none" >&6; }
8178: fi
8179: max_cmd_len=$lt_cv_sys_max_cmd_len
8180:
8181:
8182:
8183:
8184:
8185:
8186: : ${CP="cp -f"}
8187: : ${MV="mv -f"}
8188: : ${RM="rm -f"}
8189:
8190: if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
8191: lt_unset=unset
8192: else
8193: lt_unset=false
8194: fi
8195:
1.128 moko 8196:
8197:
8198:
1.237 moko 8199:
1.243 moko 8200: # test EBCDIC or ASCII
8201: case `echo X|tr X '\101'` in
8202: A) # ASCII based system
8203: # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
8204: lt_SP2NL='tr \040 \012'
8205: lt_NL2SP='tr \015\012 \040\040'
1.128 moko 8206: ;;
1.243 moko 8207: *) # EBCDIC based system
8208: lt_SP2NL='tr \100 \n'
8209: lt_NL2SP='tr \r\n \100\100'
1.128 moko 8210: ;;
1.243 moko 8211: esac
1.128 moko 8212:
8213:
8214:
8215:
8216:
8217:
1.237 moko 8218:
1.128 moko 8219:
8220:
1.243 moko 8221: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
8222: printf %s "checking how to convert $build file names to $host format... " >&6; }
8223: if test ${lt_cv_to_host_file_cmd+y}
8224: then :
8225: printf %s "(cached) " >&6
8226: else case e in #(
8227: e) case $host in
8228: *-*-mingw* )
8229: case $build in
8230: *-*-mingw* | *-*-windows* ) # actually msys
8231: lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
8232: ;;
8233: *-*-cygwin* )
8234: lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
8235: ;;
8236: * ) # otherwise, assume *nix
8237: lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
8238: ;;
8239: esac
1.128 moko 8240: ;;
1.243 moko 8241: *-*-cygwin* )
8242: case $build in
8243: *-*-mingw* | *-*-windows* ) # actually msys
8244: lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
8245: ;;
8246: *-*-cygwin* )
8247: lt_cv_to_host_file_cmd=func_convert_file_noop
8248: ;;
8249: * ) # otherwise, assume *nix
8250: lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
8251: ;;
8252: esac
1.128 moko 8253: ;;
1.243 moko 8254: * ) # unhandled hosts (and "normal" native builds)
8255: lt_cv_to_host_file_cmd=func_convert_file_noop
1.128 moko 8256: ;;
1.237 moko 8257: esac
8258: ;;
1.128 moko 8259: esac
8260: fi
8261:
1.243 moko 8262: to_host_file_cmd=$lt_cv_to_host_file_cmd
8263: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
8264: printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
1.128 moko 8265:
8266:
8267:
8268:
8269:
1.243 moko 8270: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
8271: printf %s "checking how to convert $build file names to toolchain format... " >&6; }
8272: if test ${lt_cv_to_tool_file_cmd+y}
8273: then :
8274: printf %s "(cached) " >&6
8275: else case e in #(
8276: e) #assume ordinary cross tools, or native build.
8277: lt_cv_to_tool_file_cmd=func_convert_file_noop
8278: case $host in
8279: *-*-mingw* | *-*-windows* )
8280: case $build in
8281: *-*-mingw* | *-*-windows* ) # actually msys
8282: lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
8283: ;;
8284: esac
8285: ;;
8286: esac
8287: ;;
8288: esac
8289: fi
1.128 moko 8290:
1.243 moko 8291: to_tool_file_cmd=$lt_cv_to_tool_file_cmd
8292: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
8293: printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
1.128 moko 8294:
8295:
8296:
8297:
8298:
1.243 moko 8299: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
8300: printf %s "checking for $LD option to reload object files... " >&6; }
8301: if test ${lt_cv_ld_reload_flag+y}
8302: then :
8303: printf %s "(cached) " >&6
8304: else case e in #(
8305: e) lt_cv_ld_reload_flag='-r' ;;
8306: esac
8307: fi
8308: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
8309: printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
8310: reload_flag=$lt_cv_ld_reload_flag
8311: case $reload_flag in
8312: "" | " "*) ;;
8313: *) reload_flag=" $reload_flag" ;;
8314: esac
8315: reload_cmds='$LD$reload_flag -o $output$reload_objs'
8316: case $host_os in
8317: cygwin* | mingw* | windows* | pw32* | cegcc*)
8318: if test yes != "$GCC"; then
8319: reload_cmds=false
8320: fi
8321: ;;
8322: darwin*)
8323: if test yes = "$GCC"; then
8324: reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
8325: else
8326: reload_cmds='$LD$reload_flag -o $output$reload_objs'
8327: fi
8328: ;;
8329: esac
1.128 moko 8330:
8331:
8332:
8333:
8334:
8335:
8336:
8337:
8338:
1.243 moko 8339: # Extract the first word of "file", so it can be a program name with args.
8340: set dummy file; ac_word=$2
1.237 moko 8341: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8342: printf %s "checking for $ac_word... " >&6; }
1.243 moko 8343: if test ${ac_cv_prog_FILECMD+y}
1.237 moko 8344: then :
8345: printf %s "(cached) " >&6
8346: else case e in #(
1.243 moko 8347: e) if test -n "$FILECMD"; then
8348: ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
1.128 moko 8349: else
8350: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8351: for as_dir in $PATH
8352: do
8353: IFS=$as_save_IFS
1.237 moko 8354: case $as_dir in #(((
8355: '') as_dir=./ ;;
8356: */) ;;
8357: *) as_dir=$as_dir/ ;;
8358: esac
1.150 moko 8359: for ac_exec_ext in '' $ac_executable_extensions; do
1.237 moko 8360: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.243 moko 8361: ac_cv_prog_FILECMD="file"
1.237 moko 8362: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.128 moko 8363: break 2
8364: fi
8365: done
1.150 moko 8366: done
8367: IFS=$as_save_IFS
1.128 moko 8368:
1.243 moko 8369: test -z "$ac_cv_prog_FILECMD" && ac_cv_prog_FILECMD=":"
1.237 moko 8370: fi ;;
8371: esac
1.128 moko 8372: fi
1.243 moko 8373: FILECMD=$ac_cv_prog_FILECMD
8374: if test -n "$FILECMD"; then
8375: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
8376: printf "%s\n" "$FILECMD" >&6; }
1.128 moko 8377: else
1.237 moko 8378: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8379: printf "%s\n" "no" >&6; }
1.128 moko 8380: fi
8381:
1.150 moko 8382:
1.243 moko 8383:
8384:
8385:
8386:
8387:
8388:
8389: if test -n "$ac_tool_prefix"; then
8390: # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
8391: set dummy ${ac_tool_prefix}objdump; ac_word=$2
1.237 moko 8392: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8393: printf %s "checking for $ac_word... " >&6; }
1.243 moko 8394: if test ${ac_cv_prog_OBJDUMP+y}
1.237 moko 8395: then :
8396: printf %s "(cached) " >&6
8397: else case e in #(
1.243 moko 8398: e) if test -n "$OBJDUMP"; then
8399: ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
1.128 moko 8400: else
8401: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8402: for as_dir in $PATH
8403: do
8404: IFS=$as_save_IFS
1.237 moko 8405: case $as_dir in #(((
8406: '') as_dir=./ ;;
8407: */) ;;
8408: *) as_dir=$as_dir/ ;;
8409: esac
1.150 moko 8410: for ac_exec_ext in '' $ac_executable_extensions; do
1.237 moko 8411: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.243 moko 8412: ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
1.237 moko 8413: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.128 moko 8414: break 2
8415: fi
8416: done
1.150 moko 8417: done
8418: IFS=$as_save_IFS
1.128 moko 8419:
1.237 moko 8420: fi ;;
8421: esac
1.128 moko 8422: fi
1.243 moko 8423: OBJDUMP=$ac_cv_prog_OBJDUMP
8424: if test -n "$OBJDUMP"; then
8425: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
8426: printf "%s\n" "$OBJDUMP" >&6; }
1.128 moko 8427: else
1.237 moko 8428: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8429: printf "%s\n" "no" >&6; }
1.128 moko 8430: fi
8431:
8432:
8433: fi
1.243 moko 8434: if test -z "$ac_cv_prog_OBJDUMP"; then
8435: ac_ct_OBJDUMP=$OBJDUMP
8436: # Extract the first word of "objdump", so it can be a program name with args.
8437: set dummy objdump; ac_word=$2
1.237 moko 8438: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8439: printf %s "checking for $ac_word... " >&6; }
1.243 moko 8440: if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
1.237 moko 8441: then :
8442: printf %s "(cached) " >&6
8443: else case e in #(
1.243 moko 8444: e) if test -n "$ac_ct_OBJDUMP"; then
8445: ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
1.237 moko 8446: else
8447: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8448: for as_dir in $PATH
8449: do
8450: IFS=$as_save_IFS
8451: case $as_dir in #(((
8452: '') as_dir=./ ;;
8453: */) ;;
8454: *) as_dir=$as_dir/ ;;
8455: esac
8456: for ac_exec_ext in '' $ac_executable_extensions; do
8457: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.243 moko 8458: ac_cv_prog_ac_ct_OBJDUMP="objdump"
1.237 moko 8459: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8460: break 2
8461: fi
8462: done
8463: done
8464: IFS=$as_save_IFS
8465:
8466: fi ;;
8467: esac
8468: fi
1.243 moko 8469: ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
8470: if test -n "$ac_ct_OBJDUMP"; then
8471: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
8472: printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
1.237 moko 8473: else
8474: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8475: printf "%s\n" "no" >&6; }
8476: fi
8477:
1.243 moko 8478: if test "x$ac_ct_OBJDUMP" = x; then
8479: OBJDUMP="false"
1.237 moko 8480: else
8481: case $cross_compiling:$ac_tool_warned in
8482: yes:)
8483: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8484: printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8485: ac_tool_warned=yes ;;
8486: esac
1.243 moko 8487: OBJDUMP=$ac_ct_OBJDUMP
1.237 moko 8488: fi
8489: else
1.243 moko 8490: OBJDUMP="$ac_cv_prog_OBJDUMP"
1.237 moko 8491: fi
8492:
1.243 moko 8493: test -z "$OBJDUMP" && OBJDUMP=objdump
8494:
8495:
8496:
8497:
8498:
8499:
8500: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
8501: printf %s "checking how to recognize dependent libraries... " >&6; }
8502: if test ${lt_cv_deplibs_check_method+y}
1.237 moko 8503: then :
8504: printf %s "(cached) " >&6
8505: else case e in #(
1.243 moko 8506: e) lt_cv_file_magic_cmd='$MAGIC_CMD'
8507: lt_cv_file_magic_test_file=
8508: lt_cv_deplibs_check_method='unknown'
8509: # Need to set the preceding variable on all platforms that support
8510: # interlibrary dependencies.
8511: # 'none' -- dependencies not supported.
8512: # 'unknown' -- same as none, but documents that we really don't know.
8513: # 'pass_all' -- all dependencies passed with no checks.
8514: # 'file_magic [[regex]]' -- check by looking for files in library path
8515: # that responds to the $file_magic_cmd with a given extended regex.
8516: # If you have 'file' or equivalent on your system and you're not sure
8517: # whether 'pass_all' will *always* work, you probably want this one.
8518:
8519: case $host_os in
8520: aix[4-9]*)
8521: lt_cv_deplibs_check_method=pass_all
8522: ;;
8523:
8524: beos*)
8525: lt_cv_deplibs_check_method=pass_all
8526: ;;
8527:
8528: bsdi[45]*)
8529: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
8530: lt_cv_file_magic_cmd='$FILECMD -L'
8531: lt_cv_file_magic_test_file=/shlib/libc.so
8532: ;;
8533:
8534: cygwin*)
8535: # func_win32_libid is a shell function defined in ltmain.sh
8536: lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8537: lt_cv_file_magic_cmd='func_win32_libid'
8538: ;;
8539:
8540: mingw* | windows* | pw32*)
8541: # Base MSYS/MinGW do not provide the 'file' command needed by
8542: # func_win32_libid shell function, so use a weaker test based on 'objdump',
8543: # unless we find 'file', for example because we are cross-compiling.
8544: if ( file / ) >/dev/null 2>&1; then
8545: lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8546: lt_cv_file_magic_cmd='func_win32_libid'
8547: else
8548: # Keep this pattern in sync with the one in func_win32_libid.
8549: lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64|pe-aarch64)'
8550: lt_cv_file_magic_cmd='$OBJDUMP -f'
1.128 moko 8551: fi
1.243 moko 8552: ;;
1.128 moko 8553:
1.243 moko 8554: cegcc*)
8555: # use the weaker test based on 'objdump'. See mingw*.
8556: lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
8557: lt_cv_file_magic_cmd='$OBJDUMP -f'
8558: ;;
1.128 moko 8559:
1.243 moko 8560: darwin* | rhapsody*)
8561: lt_cv_deplibs_check_method=pass_all
8562: ;;
1.150 moko 8563:
1.243 moko 8564: freebsd* | dragonfly* | midnightbsd*)
8565: if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8566: case $host_cpu in
8567: i*86 )
8568: # Not sure whether the presence of OpenBSD here was a mistake.
8569: # Let's accept both of them until this is cleared up.
8570: lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
8571: lt_cv_file_magic_cmd=$FILECMD
8572: lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
8573: ;;
8574: esac
8575: else
8576: lt_cv_deplibs_check_method=pass_all
8577: fi
8578: ;;
8579:
8580: haiku*)
8581: lt_cv_deplibs_check_method=pass_all
8582: ;;
8583:
8584: hpux10.20* | hpux11*)
8585: lt_cv_file_magic_cmd=$FILECMD
8586: case $host_cpu in
8587: ia64*)
8588: lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
8589: lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
8590: ;;
8591: hppa*64*)
8592: 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]'
8593: lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
8594: ;;
8595: *)
8596: lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
8597: lt_cv_file_magic_test_file=/usr/lib/libc.sl
8598: ;;
8599: esac
8600: ;;
8601:
8602: interix[3-9]*)
8603: # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
8604: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
8605: ;;
8606:
8607: irix5* | irix6* | nonstopux*)
8608: case $LD in
8609: *-32|*"-32 ") libmagic=32-bit;;
8610: *-n32|*"-n32 ") libmagic=N32;;
8611: *-64|*"-64 ") libmagic=64-bit;;
8612: *) libmagic=never-match;;
8613: esac
8614: lt_cv_deplibs_check_method=pass_all
8615: ;;
8616:
8617: # This must be glibc/ELF.
8618: linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8619: lt_cv_deplibs_check_method=pass_all
8620: ;;
8621:
8622: *-mlibc)
8623: lt_cv_deplibs_check_method=pass_all
8624: ;;
8625:
8626: netbsd* | netbsdelf*-gnu)
8627: if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8628: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8629: else
8630: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
8631: fi
8632: ;;
8633:
8634: newos6*)
8635: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
8636: lt_cv_file_magic_cmd=$FILECMD
8637: lt_cv_file_magic_test_file=/usr/lib/libnls.so
8638: ;;
8639:
8640: *nto* | *qnx*)
8641: lt_cv_deplibs_check_method=pass_all
8642: ;;
8643:
8644: openbsd*)
8645: if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
8646: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
8647: else
8648: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8649: fi
8650: ;;
8651:
8652: osf3* | osf4* | osf5*)
8653: lt_cv_deplibs_check_method=pass_all
8654: ;;
8655:
8656: rdos*)
8657: lt_cv_deplibs_check_method=pass_all
8658: ;;
8659:
8660: serenity*)
8661: lt_cv_deplibs_check_method=pass_all
8662: ;;
8663:
8664: solaris*)
8665: lt_cv_deplibs_check_method=pass_all
8666: ;;
8667:
8668: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8669: lt_cv_deplibs_check_method=pass_all
8670: ;;
8671:
8672: sysv4 | sysv4.3*)
8673: case $host_vendor in
8674: motorola)
8675: 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]'
8676: lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
8677: ;;
8678: ncr)
8679: lt_cv_deplibs_check_method=pass_all
8680: ;;
8681: sequent)
8682: lt_cv_file_magic_cmd='/bin/file'
8683: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
8684: ;;
8685: sni)
8686: lt_cv_file_magic_cmd='/bin/file'
8687: lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
8688: lt_cv_file_magic_test_file=/lib/libc.so
8689: ;;
8690: siemens)
8691: lt_cv_deplibs_check_method=pass_all
8692: ;;
8693: pc)
8694: lt_cv_deplibs_check_method=pass_all
8695: ;;
8696: esac
8697: ;;
8698:
8699: tpf*)
8700: lt_cv_deplibs_check_method=pass_all
8701: ;;
8702: os2*)
8703: lt_cv_deplibs_check_method=pass_all
8704: ;;
8705: esac
8706: ;;
8707: esac
8708: fi
8709: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
8710: printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
8711:
8712: file_magic_glob=
8713: want_nocaseglob=no
8714: if test "$build" = "$host"; then
8715: case $host_os in
8716: mingw* | windows* | pw32*)
8717: if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
8718: want_nocaseglob=yes
8719: else
8720: file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
8721: fi
8722: ;;
8723: esac
1.128 moko 8724: fi
1.243 moko 8725:
8726: file_magic_cmd=$lt_cv_file_magic_cmd
8727: deplibs_check_method=$lt_cv_deplibs_check_method
8728: test -z "$deplibs_check_method" && deplibs_check_method=unknown
8729:
8730:
8731:
8732:
8733:
8734:
8735:
8736:
8737:
8738:
8739:
8740:
8741:
8742:
8743:
8744:
8745:
8746:
8747:
8748:
8749:
8750:
8751: if test -n "$ac_tool_prefix"; then
8752: # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8753: set dummy ${ac_tool_prefix}dlltool; ac_word=$2
1.237 moko 8754: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8755: printf %s "checking for $ac_word... " >&6; }
1.243 moko 8756: if test ${ac_cv_prog_DLLTOOL+y}
1.237 moko 8757: then :
8758: printf %s "(cached) " >&6
8759: else case e in #(
1.243 moko 8760: e) if test -n "$DLLTOOL"; then
8761: ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
1.128 moko 8762: else
8763: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8764: for as_dir in $PATH
8765: do
8766: IFS=$as_save_IFS
1.237 moko 8767: case $as_dir in #(((
8768: '') as_dir=./ ;;
8769: */) ;;
8770: *) as_dir=$as_dir/ ;;
8771: esac
1.150 moko 8772: for ac_exec_ext in '' $ac_executable_extensions; do
1.237 moko 8773: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.243 moko 8774: ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
1.237 moko 8775: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.128 moko 8776: break 2
8777: fi
8778: done
1.150 moko 8779: done
8780: IFS=$as_save_IFS
1.128 moko 8781:
1.237 moko 8782: fi ;;
8783: esac
1.128 moko 8784: fi
1.243 moko 8785: DLLTOOL=$ac_cv_prog_DLLTOOL
8786: if test -n "$DLLTOOL"; then
8787: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8788: printf "%s\n" "$DLLTOOL" >&6; }
1.128 moko 8789: else
1.237 moko 8790: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8791: printf "%s\n" "no" >&6; }
1.128 moko 8792: fi
8793:
1.150 moko 8794:
1.243 moko 8795: fi
8796: if test -z "$ac_cv_prog_DLLTOOL"; then
8797: ac_ct_DLLTOOL=$DLLTOOL
8798: # Extract the first word of "dlltool", so it can be a program name with args.
8799: set dummy dlltool; ac_word=$2
8800: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8801: printf %s "checking for $ac_word... " >&6; }
8802: if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
8803: then :
8804: printf %s "(cached) " >&6
8805: else case e in #(
8806: e) if test -n "$ac_ct_DLLTOOL"; then
8807: ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
8808: else
8809: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8810: for as_dir in $PATH
8811: do
8812: IFS=$as_save_IFS
8813: case $as_dir in #(((
8814: '') as_dir=./ ;;
8815: */) ;;
8816: *) as_dir=$as_dir/ ;;
8817: esac
8818: for ac_exec_ext in '' $ac_executable_extensions; do
8819: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8820: ac_cv_prog_ac_ct_DLLTOOL="dlltool"
8821: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8822: break 2
8823: fi
1.128 moko 8824: done
1.243 moko 8825: done
8826: IFS=$as_save_IFS
8827:
8828: fi ;;
8829: esac
8830: fi
8831: ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
8832: if test -n "$ac_ct_DLLTOOL"; then
8833: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
8834: printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
8835: else
8836: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8837: printf "%s\n" "no" >&6; }
8838: fi
1.128 moko 8839:
1.243 moko 8840: if test "x$ac_ct_DLLTOOL" = x; then
8841: DLLTOOL="false"
1.150 moko 8842: else
8843: case $cross_compiling:$ac_tool_warned in
8844: yes:)
1.237 moko 8845: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8846: printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
1.150 moko 8847: ac_tool_warned=yes ;;
8848: esac
1.243 moko 8849: DLLTOOL=$ac_ct_DLLTOOL
1.150 moko 8850: fi
1.243 moko 8851: else
8852: DLLTOOL="$ac_cv_prog_DLLTOOL"
1.128 moko 8853: fi
8854:
1.243 moko 8855: test -z "$DLLTOOL" && DLLTOOL=dlltool
1.128 moko 8856:
8857:
8858:
8859:
8860:
8861:
1.237 moko 8862:
1.243 moko 8863: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
8864: printf %s "checking how to associate runtime and link libraries... " >&6; }
8865: if test ${lt_cv_sharedlib_from_linklib_cmd+y}
8866: then :
8867: printf %s "(cached) " >&6
8868: else case e in #(
8869: e) lt_cv_sharedlib_from_linklib_cmd='unknown'
1.237 moko 8870:
1.243 moko 8871: case $host_os in
8872: cygwin* | mingw* | windows* | pw32* | cegcc*)
8873: # two different shell functions defined in ltmain.sh;
8874: # decide which one to use based on capabilities of $DLLTOOL
8875: case `$DLLTOOL --help 2>&1` in
8876: *--identify-strict*)
8877: lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
8878: ;;
8879: *)
8880: lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
8881: ;;
8882: esac
8883: ;;
8884: *)
8885: # fallback: assume linklib IS sharedlib
8886: lt_cv_sharedlib_from_linklib_cmd=$ECHO
8887: ;;
8888: esac
8889: ;;
8890: esac
8891: fi
8892: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
8893: printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
8894: sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
8895: test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
1.237 moko 8896:
8897:
8898:
8899:
8900:
1.128 moko 8901:
8902:
1.243 moko 8903: if test -n "$ac_tool_prefix"; then
8904: # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8905: set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8906: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8907: printf %s "checking for $ac_word... " >&6; }
8908: if test ${ac_cv_prog_RANLIB+y}
8909: then :
8910: printf %s "(cached) " >&6
8911: else case e in #(
8912: e) if test -n "$RANLIB"; then
8913: ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8914: else
8915: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8916: for as_dir in $PATH
8917: do
8918: IFS=$as_save_IFS
8919: case $as_dir in #(((
8920: '') as_dir=./ ;;
8921: */) ;;
8922: *) as_dir=$as_dir/ ;;
8923: esac
8924: for ac_exec_ext in '' $ac_executable_extensions; do
8925: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8926: ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8927: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8928: break 2
8929: fi
8930: done
8931: done
8932: IFS=$as_save_IFS
1.128 moko 8933:
1.243 moko 8934: fi ;;
8935: esac
8936: fi
8937: RANLIB=$ac_cv_prog_RANLIB
8938: if test -n "$RANLIB"; then
8939: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8940: printf "%s\n" "$RANLIB" >&6; }
8941: else
8942: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8943: printf "%s\n" "no" >&6; }
8944: fi
1.128 moko 8945:
8946:
1.243 moko 8947: fi
8948: if test -z "$ac_cv_prog_RANLIB"; then
8949: ac_ct_RANLIB=$RANLIB
8950: # Extract the first word of "ranlib", so it can be a program name with args.
8951: set dummy ranlib; ac_word=$2
8952: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8953: printf %s "checking for $ac_word... " >&6; }
8954: if test ${ac_cv_prog_ac_ct_RANLIB+y}
1.237 moko 8955: then :
8956: printf %s "(cached) " >&6
8957: else case e in #(
1.243 moko 8958: e) if test -n "$ac_ct_RANLIB"; then
8959: ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8960: else
8961: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8962: for as_dir in $PATH
8963: do
8964: IFS=$as_save_IFS
8965: case $as_dir in #(((
8966: '') as_dir=./ ;;
8967: */) ;;
8968: *) as_dir=$as_dir/ ;;
8969: esac
8970: for ac_exec_ext in '' $ac_executable_extensions; do
8971: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8972: ac_cv_prog_ac_ct_RANLIB="ranlib"
8973: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8974: break 2
8975: fi
8976: done
8977: done
8978: IFS=$as_save_IFS
1.128 moko 8979:
1.243 moko 8980: fi ;;
8981: esac
1.128 moko 8982: fi
1.243 moko 8983: ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8984: if test -n "$ac_ct_RANLIB"; then
8985: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8986: printf "%s\n" "$ac_ct_RANLIB" >&6; }
8987: else
8988: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8989: printf "%s\n" "no" >&6; }
1.128 moko 8990: fi
8991:
1.243 moko 8992: if test "x$ac_ct_RANLIB" = x; then
8993: RANLIB=":"
8994: else
8995: case $cross_compiling:$ac_tool_warned in
8996: yes:)
8997: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8998: printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8999: ac_tool_warned=yes ;;
9000: esac
9001: RANLIB=$ac_ct_RANLIB
9002: fi
1.128 moko 9003: else
1.243 moko 9004: RANLIB="$ac_cv_prog_RANLIB"
1.128 moko 9005: fi
9006:
9007: if test -n "$ac_tool_prefix"; then
1.243 moko 9008: for ac_prog in ar
9009: do
9010: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9011: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1.237 moko 9012: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9013: printf %s "checking for $ac_word... " >&6; }
1.243 moko 9014: if test ${ac_cv_prog_AR+y}
1.237 moko 9015: then :
9016: printf %s "(cached) " >&6
9017: else case e in #(
1.243 moko 9018: e) if test -n "$AR"; then
9019: ac_cv_prog_AR="$AR" # Let the user override the test.
1.128 moko 9020: else
9021: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9022: for as_dir in $PATH
9023: do
9024: IFS=$as_save_IFS
1.237 moko 9025: case $as_dir in #(((
9026: '') as_dir=./ ;;
9027: */) ;;
9028: *) as_dir=$as_dir/ ;;
9029: esac
1.150 moko 9030: for ac_exec_ext in '' $ac_executable_extensions; do
1.237 moko 9031: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.243 moko 9032: ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
1.237 moko 9033: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.128 moko 9034: break 2
9035: fi
9036: done
1.150 moko 9037: done
9038: IFS=$as_save_IFS
1.128 moko 9039:
1.237 moko 9040: fi ;;
9041: esac
1.128 moko 9042: fi
1.243 moko 9043: AR=$ac_cv_prog_AR
9044: if test -n "$AR"; then
9045: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
9046: printf "%s\n" "$AR" >&6; }
1.128 moko 9047: else
1.237 moko 9048: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9049: printf "%s\n" "no" >&6; }
1.128 moko 9050: fi
9051:
1.150 moko 9052:
1.243 moko 9053: test -n "$AR" && break
9054: done
1.128 moko 9055: fi
1.243 moko 9056: if test -z "$AR"; then
9057: ac_ct_AR=$AR
9058: for ac_prog in ar
9059: do
9060: # Extract the first word of "$ac_prog", so it can be a program name with args.
9061: set dummy $ac_prog; ac_word=$2
1.237 moko 9062: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9063: printf %s "checking for $ac_word... " >&6; }
1.243 moko 9064: if test ${ac_cv_prog_ac_ct_AR+y}
1.237 moko 9065: then :
9066: printf %s "(cached) " >&6
9067: else case e in #(
1.243 moko 9068: e) if test -n "$ac_ct_AR"; then
9069: ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
1.128 moko 9070: else
9071: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9072: for as_dir in $PATH
9073: do
9074: IFS=$as_save_IFS
1.237 moko 9075: case $as_dir in #(((
9076: '') as_dir=./ ;;
9077: */) ;;
9078: *) as_dir=$as_dir/ ;;
9079: esac
1.150 moko 9080: for ac_exec_ext in '' $ac_executable_extensions; do
1.237 moko 9081: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.243 moko 9082: ac_cv_prog_ac_ct_AR="$ac_prog"
1.237 moko 9083: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.128 moko 9084: break 2
9085: fi
9086: done
1.150 moko 9087: done
9088: IFS=$as_save_IFS
1.128 moko 9089:
1.237 moko 9090: fi ;;
9091: esac
1.128 moko 9092: fi
1.243 moko 9093: ac_ct_AR=$ac_cv_prog_ac_ct_AR
9094: if test -n "$ac_ct_AR"; then
9095: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
9096: printf "%s\n" "$ac_ct_AR" >&6; }
1.128 moko 9097: else
1.237 moko 9098: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9099: printf "%s\n" "no" >&6; }
1.128 moko 9100: fi
9101:
1.243 moko 9102:
9103: test -n "$ac_ct_AR" && break
9104: done
9105:
9106: if test "x$ac_ct_AR" = x; then
9107: AR="false"
1.150 moko 9108: else
9109: case $cross_compiling:$ac_tool_warned in
9110: yes:)
1.237 moko 9111: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9112: printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
1.150 moko 9113: ac_tool_warned=yes ;;
9114: esac
1.243 moko 9115: AR=$ac_ct_AR
1.150 moko 9116: fi
1.128 moko 9117: fi
9118:
1.243 moko 9119: : ${AR=ar}
9120:
9121:
9122:
9123:
9124:
9125:
9126: # Use ARFLAGS variable as AR's operation code to sync the variable naming with
9127: # Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
9128: # higher priority because that's what people were doing historically (setting
9129: # ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS
9130: # variable obsoleted/removed.
9131:
9132: test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
9133: lt_ar_flags=$AR_FLAGS
9134:
9135:
9136:
9137:
9138:
9139:
9140: # Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override
9141: # by AR_FLAGS because that was never working and AR_FLAGS is about to die.
9142:
9143:
9144:
9145:
9146:
9147:
9148: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
9149: printf %s "checking for archiver @FILE support... " >&6; }
9150: if test ${lt_cv_ar_at_file+y}
9151: then :
9152: printf %s "(cached) " >&6
9153: else case e in #(
9154: e) lt_cv_ar_at_file=no
9155: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9156: /* end confdefs.h. */
9157:
9158: int
9159: main (void)
9160: {
9161:
9162: ;
9163: return 0;
9164: }
9165: _ACEOF
9166: if ac_fn_c_try_compile "$LINENO"
9167: then :
9168: echo conftest.$ac_objext > conftest.lst
9169: lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
9170: { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
9171: (eval $lt_ar_try) 2>&5
9172: ac_status=$?
9173: printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9174: test $ac_status = 0; }
9175: if test 0 -eq "$ac_status"; then
9176: # Ensure the archiver fails upon bogus file names.
9177: rm -f conftest.$ac_objext libconftest.a
9178: { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
9179: (eval $lt_ar_try) 2>&5
9180: ac_status=$?
9181: printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9182: test $ac_status = 0; }
9183: if test 0 -ne "$ac_status"; then
9184: lt_cv_ar_at_file=@
9185: fi
9186: fi
9187: rm -f conftest.* libconftest.a
9188:
9189: fi
9190: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9191: ;;
9192: esac
9193: fi
9194: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
9195: printf "%s\n" "$lt_cv_ar_at_file" >&6; }
9196:
9197: if test no = "$lt_cv_ar_at_file"; then
9198: archiver_list_spec=
9199: else
9200: archiver_list_spec=$lt_cv_ar_at_file
9201: fi
9202:
9203:
9204:
9205:
9206:
9207:
9208:
9209: if test -n "$ac_tool_prefix"; then
9210: # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
9211: set dummy ${ac_tool_prefix}strip; ac_word=$2
9212: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9213: printf %s "checking for $ac_word... " >&6; }
9214: if test ${ac_cv_prog_STRIP+y}
9215: then :
9216: printf %s "(cached) " >&6
9217: else case e in #(
9218: e) if test -n "$STRIP"; then
9219: ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9220: else
9221: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9222: for as_dir in $PATH
9223: do
9224: IFS=$as_save_IFS
9225: case $as_dir in #(((
9226: '') as_dir=./ ;;
9227: */) ;;
9228: *) as_dir=$as_dir/ ;;
9229: esac
9230: for ac_exec_ext in '' $ac_executable_extensions; do
9231: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9232: ac_cv_prog_STRIP="${ac_tool_prefix}strip"
9233: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9234: break 2
9235: fi
9236: done
9237: done
9238: IFS=$as_save_IFS
9239:
9240: fi ;;
9241: esac
9242: fi
9243: STRIP=$ac_cv_prog_STRIP
9244: if test -n "$STRIP"; then
9245: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9246: printf "%s\n" "$STRIP" >&6; }
9247: else
9248: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9249: printf "%s\n" "no" >&6; }
9250: fi
9251:
9252:
9253: fi
9254: if test -z "$ac_cv_prog_STRIP"; then
9255: ac_ct_STRIP=$STRIP
9256: # Extract the first word of "strip", so it can be a program name with args.
9257: set dummy strip; ac_word=$2
9258: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9259: printf %s "checking for $ac_word... " >&6; }
9260: if test ${ac_cv_prog_ac_ct_STRIP+y}
9261: then :
9262: printf %s "(cached) " >&6
9263: else case e in #(
9264: e) if test -n "$ac_ct_STRIP"; then
9265: ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
9266: else
9267: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9268: for as_dir in $PATH
9269: do
9270: IFS=$as_save_IFS
9271: case $as_dir in #(((
9272: '') as_dir=./ ;;
9273: */) ;;
9274: *) as_dir=$as_dir/ ;;
9275: esac
9276: for ac_exec_ext in '' $ac_executable_extensions; do
9277: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9278: ac_cv_prog_ac_ct_STRIP="strip"
9279: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9280: break 2
9281: fi
9282: done
9283: done
9284: IFS=$as_save_IFS
9285:
9286: fi ;;
9287: esac
9288: fi
9289: ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
9290: if test -n "$ac_ct_STRIP"; then
9291: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
9292: printf "%s\n" "$ac_ct_STRIP" >&6; }
9293: else
9294: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9295: printf "%s\n" "no" >&6; }
9296: fi
9297:
9298: if test "x$ac_ct_STRIP" = x; then
9299: STRIP=":"
9300: else
9301: case $cross_compiling:$ac_tool_warned in
9302: yes:)
9303: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9304: printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9305: ac_tool_warned=yes ;;
9306: esac
9307: STRIP=$ac_ct_STRIP
9308: fi
9309: else
9310: STRIP="$ac_cv_prog_STRIP"
9311: fi
9312:
9313: test -z "$STRIP" && STRIP=:
1.128 moko 9314:
9315:
9316:
9317:
9318:
9319:
9320:
9321: test -z "$RANLIB" && RANLIB=:
9322:
9323:
9324:
9325:
9326:
9327:
9328: # Determine commands to create old-style static archives.
9329: old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
9330: old_postinstall_cmds='chmod 644 $oldlib'
9331: old_postuninstall_cmds=
9332:
9333: if test -n "$RANLIB"; then
9334: old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
1.237 moko 9335: old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
1.128 moko 9336: fi
9337:
9338: case $host_os in
9339: darwin*)
9340: lock_old_archive_extraction=yes ;;
9341: *)
9342: lock_old_archive_extraction=no ;;
9343: esac
9344:
9345:
9346:
9347:
9348:
9349:
9350:
9351:
9352:
9353:
9354:
9355:
9356:
9357:
9358:
9359:
9360:
9361:
9362:
9363:
9364:
9365:
9366:
9367:
9368:
9369:
9370:
9371:
9372:
9373:
9374:
9375:
9376:
9377:
9378:
9379:
9380:
9381:
9382:
9383: # If no C compiler was specified, use CC.
9384: LTCC=${LTCC-"$CC"}
9385:
9386: # If no C compiler flags were specified, use CFLAGS.
9387: LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9388:
9389: # Allow CC to be a program name with arguments.
9390: compiler=$CC
9391:
9392:
9393: # Check for command to grab the raw symbol name followed by C symbol from nm.
1.237 moko 9394: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
9395: printf %s "checking command to parse $NM output from $compiler object... " >&6; }
9396: if test ${lt_cv_sys_global_symbol_pipe+y}
9397: then :
9398: printf %s "(cached) " >&6
9399: else case e in #(
9400: e)
1.128 moko 9401: # These are sane defaults that work on at least a few old systems.
9402: # [They come from Ultrix. What could be older than Ultrix?!! ;)]
9403:
9404: # Character class describing NM global symbol codes.
9405: symcode='[BCDEGRST]'
9406:
9407: # Regexp to match symbols that can be accessed directly from C.
9408: sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9409:
9410: # Define system-specific variables.
9411: case $host_os in
9412: aix*)
9413: symcode='[BCDT]'
9414: ;;
1.237 moko 9415: cygwin* | mingw* | windows* | pw32* | cegcc*)
1.128 moko 9416: symcode='[ABCDGISTW]'
9417: ;;
9418: hpux*)
1.237 moko 9419: if test ia64 = "$host_cpu"; then
1.128 moko 9420: symcode='[ABCDEGRST]'
9421: fi
9422: ;;
9423: irix* | nonstopux*)
9424: symcode='[BCDEGRST]'
9425: ;;
9426: osf*)
9427: symcode='[BCDEGQRST]'
9428: ;;
9429: solaris*)
1.237 moko 9430: symcode='[BCDRT]'
1.128 moko 9431: ;;
9432: sco3.2v5*)
9433: symcode='[DT]'
9434: ;;
9435: sysv4.2uw2*)
9436: symcode='[DT]'
9437: ;;
9438: sysv5* | sco5v6* | unixware* | OpenUNIX*)
9439: symcode='[ABDT]'
9440: ;;
9441: sysv4)
9442: symcode='[DFNSTU]'
9443: ;;
9444: esac
9445:
9446: # If we're using GNU nm, then use its standard symbol codes.
9447: case `$NM -V 2>&1` in
9448: *GNU* | *'with BFD'*)
9449: symcode='[ABCDGIRSTW]' ;;
9450: esac
9451:
1.237 moko 9452: if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9453: # Gets list of data symbols to import.
9454: lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
9455: # Adjust the below global symbol transforms to fixup imported variables.
9456: lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
9457: lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
9458: lt_c_name_lib_hook="\
9459: -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
9460: -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
9461: else
9462: # Disable hooks by default.
9463: lt_cv_sys_global_symbol_to_import=
9464: lt_cdecl_hook=
9465: lt_c_name_hook=
9466: lt_c_name_lib_hook=
9467: fi
9468:
1.128 moko 9469: # Transform an extracted symbol line into a proper C declaration.
9470: # Some systems (esp. on ia64) link data and code symbols differently,
9471: # so use this general approach.
1.237 moko 9472: lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
9473: $lt_cdecl_hook\
9474: " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
9475: " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
1.128 moko 9476:
9477: # Transform an extracted symbol line into symbol name and symbol address
1.237 moko 9478: lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
9479: $lt_c_name_hook\
9480: " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
9481: " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
9482:
9483: # Transform an extracted symbol line into symbol name with lib prefix and
9484: # symbol address.
9485: lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
9486: $lt_c_name_lib_hook\
9487: " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
9488: " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
9489: " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
1.128 moko 9490:
9491: # Handle CRLF in mingw tool chain
9492: opt_cr=
9493: case $build_os in
1.237 moko 9494: mingw* | windows*)
1.128 moko 9495: opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9496: ;;
9497: esac
9498:
9499: # Try without a prefix underscore, then with it.
9500: for ac_symprfx in "" "_"; do
9501:
9502: # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9503: symxfrm="\\1 $ac_symprfx\\2 \\2"
9504:
9505: # Write the raw and C identifiers.
9506: if test "$lt_cv_nm_interface" = "MS dumpbin"; then
1.237 moko 9507: # Fake it for dumpbin and say T for any non-static function,
9508: # D for any global variable and I for any imported variable.
9509: # Also find C++ and __fastcall symbols from MSVC++ or ICC,
1.128 moko 9510: # which start with @ or ?.
9511: lt_cv_sys_global_symbol_pipe="$AWK '"\
9512: " {last_section=section; section=\$ 3};"\
9513: " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
9514: " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
1.237 moko 9515: " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
9516: " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
9517: " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
1.128 moko 9518: " \$ 0!~/External *\|/{next};"\
9519: " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
9520: " {if(hide[section]) next};"\
1.237 moko 9521: " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
9522: " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
9523: " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
9524: " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
1.128 moko 9525: " ' prfx=^$ac_symprfx"
9526: else
1.237 moko 9527: lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
1.128 moko 9528: fi
1.237 moko 9529: lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
1.128 moko 9530:
9531: # Check to see that the pipe works correctly.
9532: pipe_works=no
9533:
9534: rm -f conftest*
9535: cat > conftest.$ac_ext <<_LT_EOF
9536: #ifdef __cplusplus
9537: extern "C" {
9538: #endif
9539: char nm_test_var;
9540: void nm_test_func(void);
9541: void nm_test_func(void){}
9542: #ifdef __cplusplus
9543: }
9544: #endif
1.237 moko 9545: int main(void){nm_test_var='a';nm_test_func();return(0);}
1.128 moko 9546: _LT_EOF
9547:
1.150 moko 9548: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1.128 moko 9549: (eval $ac_compile) 2>&5
9550: ac_status=$?
1.237 moko 9551: printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1.150 moko 9552: test $ac_status = 0; }; then
1.128 moko 9553: # Now try to grab the symbols.
9554: nlist=conftest.nm
1.237 moko 9555: $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
9556: if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
1.128 moko 9557: # Try sorting and uniquifying the output.
9558: if sort "$nlist" | uniq > "$nlist"T; then
9559: mv -f "$nlist"T "$nlist"
9560: else
9561: rm -f "$nlist"T
9562: fi
9563:
9564: # Make sure that we snagged all the symbols we need.
9565: if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
9566: if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
9567: cat <<_LT_EOF > conftest.$ac_ext
9568: /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
1.237 moko 9569: #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
9570: /* DATA imports from DLLs on WIN32 can't be const, because runtime
1.128 moko 9571: relocations are performed -- see ld's documentation on pseudo-relocs. */
9572: # define LT_DLSYM_CONST
1.237 moko 9573: #elif defined __osf__
1.128 moko 9574: /* This system does not cope well with relocations in const data. */
9575: # define LT_DLSYM_CONST
9576: #else
9577: # define LT_DLSYM_CONST const
9578: #endif
9579:
9580: #ifdef __cplusplus
9581: extern "C" {
9582: #endif
9583:
9584: _LT_EOF
9585: # Now generate the symbol file.
9586: eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
9587:
9588: cat <<_LT_EOF >> conftest.$ac_ext
9589:
9590: /* The mapping between symbol names and symbols. */
9591: LT_DLSYM_CONST struct {
9592: const char *name;
9593: void *address;
9594: }
9595: lt__PROGRAM__LTX_preloaded_symbols[] =
9596: {
9597: { "@PROGRAM@", (void *) 0 },
9598: _LT_EOF
1.237 moko 9599: $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
1.128 moko 9600: cat <<\_LT_EOF >> conftest.$ac_ext
9601: {0, (void *) 0}
9602: };
9603:
9604: /* This works around a problem in FreeBSD linker */
9605: #ifdef FREEBSD_WORKAROUND
9606: static const void *lt_preloaded_setup() {
9607: return lt__PROGRAM__LTX_preloaded_symbols;
9608: }
9609: #endif
9610:
9611: #ifdef __cplusplus
9612: }
9613: #endif
9614: _LT_EOF
9615: # Now try linking the two files.
9616: mv conftest.$ac_objext conftstm.$ac_objext
9617: lt_globsym_save_LIBS=$LIBS
9618: lt_globsym_save_CFLAGS=$CFLAGS
1.237 moko 9619: LIBS=conftstm.$ac_objext
1.128 moko 9620: CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
1.150 moko 9621: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
1.128 moko 9622: (eval $ac_link) 2>&5
9623: ac_status=$?
1.237 moko 9624: printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9625: test $ac_status = 0; } && test -s conftest$ac_exeext; then
1.128 moko 9626: pipe_works=yes
9627: fi
9628: LIBS=$lt_globsym_save_LIBS
9629: CFLAGS=$lt_globsym_save_CFLAGS
9630: else
9631: echo "cannot find nm_test_func in $nlist" >&5
9632: fi
9633: else
9634: echo "cannot find nm_test_var in $nlist" >&5
9635: fi
9636: else
9637: echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9638: fi
9639: else
9640: echo "$progname: failed program was:" >&5
9641: cat conftest.$ac_ext >&5
9642: fi
9643: rm -rf conftest* conftst*
9644:
9645: # Do not use the global_symbol_pipe unless it works.
1.237 moko 9646: if test yes = "$pipe_works"; then
1.128 moko 9647: break
9648: else
9649: lt_cv_sys_global_symbol_pipe=
9650: fi
9651: done
1.237 moko 9652: ;;
9653: esac
1.128 moko 9654: fi
9655:
9656: if test -z "$lt_cv_sys_global_symbol_pipe"; then
9657: lt_cv_sys_global_symbol_to_cdecl=
9658: fi
9659: if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
1.237 moko 9660: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
9661: printf "%s\n" "failed" >&6; }
1.128 moko 9662: else
1.237 moko 9663: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9664: printf "%s\n" "ok" >&6; }
1.128 moko 9665: fi
9666:
9667: # Response file support.
9668: if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9669: nm_file_list_spec='@'
9670: elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
9671: nm_file_list_spec='@'
9672: fi
9673:
9674:
9675:
9676:
9677:
9678:
9679:
9680:
9681:
9682:
9683:
9684:
9685:
9686:
9687:
9688:
9689:
9690:
9691:
9692:
9693:
9694:
9695:
9696:
9697:
9698:
9699:
1.237 moko 9700:
9701:
9702:
9703:
9704:
9705:
9706:
9707:
9708:
9709:
9710: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
9711: printf %s "checking for sysroot... " >&6; }
1.128 moko 9712:
1.150 moko 9713: # Check whether --with-sysroot was given.
1.237 moko 9714: if test ${with_sysroot+y}
9715: then :
1.150 moko 9716: withval=$with_sysroot;
1.237 moko 9717: else case e in #(
9718: e) with_sysroot=no ;;
9719: esac
1.150 moko 9720: fi
9721:
1.128 moko 9722:
9723: lt_sysroot=
1.237 moko 9724: case $with_sysroot in #(
1.128 moko 9725: yes)
1.237 moko 9726: if test yes = "$GCC"; then
9727: # Trim trailing / since we'll always append absolute paths and we want
9728: # to avoid //, if only for less confusing output for the user.
9729: lt_sysroot=`$CC --print-sysroot 2>/dev/null | $SED 's:/\+$::'`
1.128 moko 9730: fi
9731: ;; #(
9732: /*)
1.237 moko 9733: lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
1.128 moko 9734: ;; #(
9735: no|'')
9736: ;; #(
9737: *)
1.237 moko 9738: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
9739: printf "%s\n" "$with_sysroot" >&6; }
1.150 moko 9740: as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
1.128 moko 9741: ;;
9742: esac
9743:
1.237 moko 9744: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
9745: printf "%s\n" "${lt_sysroot:-no}" >&6; }
1.128 moko 9746:
9747:
9748:
9749:
9750:
1.237 moko 9751: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
9752: printf %s "checking for a working dd... " >&6; }
9753: if test ${ac_cv_path_lt_DD+y}
9754: then :
9755: printf %s "(cached) " >&6
9756: else case e in #(
9757: e) printf 0123456789abcdef0123456789abcdef >conftest.i
9758: cat conftest.i conftest.i >conftest2.i
9759: : ${lt_DD:=$DD}
9760: if test -z "$lt_DD"; then
9761: ac_path_lt_DD_found=false
9762: # Loop through the user's path and test for each of PROGNAME-LIST
9763: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9764: for as_dir in $PATH
9765: do
9766: IFS=$as_save_IFS
9767: case $as_dir in #(((
9768: '') as_dir=./ ;;
9769: */) ;;
9770: *) as_dir=$as_dir/ ;;
9771: esac
9772: for ac_prog in dd
9773: do
9774: for ac_exec_ext in '' $ac_executable_extensions; do
9775: ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
9776: as_fn_executable_p "$ac_path_lt_DD" || continue
9777: if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
9778: cmp -s conftest.i conftest.out \
9779: && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
9780: fi
9781: $ac_path_lt_DD_found && break 3
9782: done
9783: done
9784: done
9785: IFS=$as_save_IFS
9786: if test -z "$ac_cv_path_lt_DD"; then
9787: :
9788: fi
9789: else
9790: ac_cv_path_lt_DD=$lt_DD
9791: fi
9792:
9793: rm -f conftest.i conftest2.i conftest.out ;;
9794: esac
9795: fi
9796: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
9797: printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
9798:
9799:
9800: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
9801: printf %s "checking how to truncate binary pipes... " >&6; }
9802: if test ${lt_cv_truncate_bin+y}
9803: then :
9804: printf %s "(cached) " >&6
9805: else case e in #(
9806: e) printf 0123456789abcdef0123456789abcdef >conftest.i
9807: cat conftest.i conftest.i >conftest2.i
9808: lt_cv_truncate_bin=
9809: if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
9810: cmp -s conftest.i conftest.out \
9811: && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
9812: fi
9813: rm -f conftest.i conftest2.i conftest.out
9814: test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" ;;
9815: esac
9816: fi
9817: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
9818: printf "%s\n" "$lt_cv_truncate_bin" >&6; }
9819:
9820:
9821:
9822:
9823:
9824:
9825:
9826: # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
9827: func_cc_basename ()
9828: {
9829: for cc_temp in $*""; do
9830: case $cc_temp in
9831: compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9832: distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9833: \-*) ;;
9834: *) break;;
9835: esac
9836: done
9837: func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9838: }
9839:
1.150 moko 9840: # Check whether --enable-libtool-lock was given.
1.237 moko 9841: if test ${enable_libtool_lock+y}
9842: then :
1.150 moko 9843: enableval=$enable_libtool_lock;
9844: fi
1.128 moko 9845:
1.237 moko 9846: test no = "$enable_libtool_lock" || enable_libtool_lock=yes
1.128 moko 9847:
9848: # Some flags need to be propagated to the compiler or linker for good
9849: # libtool support.
9850: case $host in
9851: ia64-*-hpux*)
1.237 moko 9852: # Find out what ABI is being produced by ac_compile, and set mode
9853: # options accordingly.
1.128 moko 9854: echo 'int i;' > conftest.$ac_ext
1.150 moko 9855: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1.128 moko 9856: (eval $ac_compile) 2>&5
9857: ac_status=$?
1.237 moko 9858: printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1.150 moko 9859: test $ac_status = 0; }; then
1.237 moko 9860: case `$FILECMD conftest.$ac_objext` in
1.128 moko 9861: *ELF-32*)
1.237 moko 9862: HPUX_IA64_MODE=32
1.128 moko 9863: ;;
9864: *ELF-64*)
1.237 moko 9865: HPUX_IA64_MODE=64
1.128 moko 9866: ;;
9867: esac
9868: fi
9869: rm -rf conftest*
9870: ;;
9871: *-*-irix6*)
1.237 moko 9872: # Find out what ABI is being produced by ac_compile, and set linker
9873: # options accordingly.
1.128 moko 9874: echo '#line '$LINENO' "configure"' > conftest.$ac_ext
1.150 moko 9875: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1.128 moko 9876: (eval $ac_compile) 2>&5
9877: ac_status=$?
1.237 moko 9878: printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1.150 moko 9879: test $ac_status = 0; }; then
1.237 moko 9880: if test yes = "$lt_cv_prog_gnu_ld"; then
9881: case `$FILECMD conftest.$ac_objext` in
1.128 moko 9882: *32-bit*)
9883: LD="${LD-ld} -melf32bsmip"
9884: ;;
9885: *N32*)
9886: LD="${LD-ld} -melf32bmipn32"
9887: ;;
9888: *64-bit*)
9889: LD="${LD-ld} -melf64bmip"
9890: ;;
9891: esac
9892: else
1.237 moko 9893: case `$FILECMD conftest.$ac_objext` in
1.128 moko 9894: *32-bit*)
9895: LD="${LD-ld} -32"
9896: ;;
9897: *N32*)
9898: LD="${LD-ld} -n32"
9899: ;;
9900: *64-bit*)
9901: LD="${LD-ld} -64"
9902: ;;
9903: esac
9904: fi
9905: fi
9906: rm -rf conftest*
9907: ;;
9908:
1.237 moko 9909: mips64*-*linux*)
9910: # Find out what ABI is being produced by ac_compile, and set linker
9911: # options accordingly.
9912: echo '#line '$LINENO' "configure"' > conftest.$ac_ext
9913: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9914: (eval $ac_compile) 2>&5
9915: ac_status=$?
9916: printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9917: test $ac_status = 0; }; then
9918: emul=elf
9919: case `$FILECMD conftest.$ac_objext` in
9920: *32-bit*)
9921: emul="${emul}32"
9922: ;;
9923: *64-bit*)
9924: emul="${emul}64"
9925: ;;
9926: esac
9927: case `$FILECMD conftest.$ac_objext` in
9928: *MSB*)
9929: emul="${emul}btsmip"
9930: ;;
9931: *LSB*)
9932: emul="${emul}ltsmip"
9933: ;;
9934: esac
9935: case `$FILECMD conftest.$ac_objext` in
9936: *N32*)
9937: emul="${emul}n32"
9938: ;;
9939: esac
9940: LD="${LD-ld} -m $emul"
9941: fi
9942: rm -rf conftest*
9943: ;;
9944:
9945: x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
9946: s390*-*linux*|s390*-*tpf*|sparc*-*linux*|x86_64-gnu*)
9947: # Find out what ABI is being produced by ac_compile, and set linker
9948: # options accordingly. Note that the listed cases only cover the
9949: # situations where additional linker options are needed (such as when
9950: # doing 32-bit compilation for a host where ld defaults to 64-bit, or
9951: # vice versa); the common cases where no linker options are needed do
9952: # not appear in the list.
1.128 moko 9953: echo 'int i;' > conftest.$ac_ext
1.150 moko 9954: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1.128 moko 9955: (eval $ac_compile) 2>&5
9956: ac_status=$?
1.237 moko 9957: printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1.150 moko 9958: test $ac_status = 0; }; then
1.237 moko 9959: case `$FILECMD conftest.o` in
1.128 moko 9960: *32-bit*)
9961: case $host in
9962: x86_64-*kfreebsd*-gnu)
9963: LD="${LD-ld} -m elf_i386_fbsd"
9964: ;;
1.237 moko 9965: x86_64-*linux*|x86_64-gnu*)
9966: case `$FILECMD conftest.o` in
9967: *x86-64*)
9968: LD="${LD-ld} -m elf32_x86_64"
9969: ;;
9970: *)
9971: LD="${LD-ld} -m elf_i386"
9972: ;;
9973: esac
1.128 moko 9974: ;;
1.237 moko 9975: powerpc64le-*linux*)
9976: LD="${LD-ld} -m elf32lppclinux"
9977: ;;
9978: powerpc64-*linux*)
1.128 moko 9979: LD="${LD-ld} -m elf32ppclinux"
9980: ;;
9981: s390x-*linux*)
9982: LD="${LD-ld} -m elf_s390"
9983: ;;
9984: sparc64-*linux*)
9985: LD="${LD-ld} -m elf32_sparc"
9986: ;;
9987: esac
9988: ;;
9989: *64-bit*)
9990: case $host in
9991: x86_64-*kfreebsd*-gnu)
9992: LD="${LD-ld} -m elf_x86_64_fbsd"
9993: ;;
1.237 moko 9994: x86_64-*linux*|x86_64-gnu*)
1.128 moko 9995: LD="${LD-ld} -m elf_x86_64"
9996: ;;
1.237 moko 9997: powerpcle-*linux*)
9998: LD="${LD-ld} -m elf64lppc"
9999: ;;
10000: powerpc-*linux*)
1.128 moko 10001: LD="${LD-ld} -m elf64ppc"
10002: ;;
10003: s390*-*linux*|s390*-*tpf*)
10004: LD="${LD-ld} -m elf64_s390"
10005: ;;
10006: sparc*-*linux*)
10007: LD="${LD-ld} -m elf64_sparc"
10008: ;;
10009: esac
10010: ;;
10011: esac
10012: fi
10013: rm -rf conftest*
10014: ;;
10015:
10016: *-*-sco3.2v5*)
10017: # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1.237 moko 10018: SAVE_CFLAGS=$CFLAGS
1.128 moko 10019: CFLAGS="$CFLAGS -belf"
1.237 moko 10020: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
10021: printf %s "checking whether the C compiler needs -belf... " >&6; }
10022: if test ${lt_cv_cc_needs_belf+y}
10023: then :
10024: printf %s "(cached) " >&6
10025: else case e in #(
10026: e) ac_ext=c
1.128 moko 10027: ac_cpp='$CPP $CPPFLAGS'
10028: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10029: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10030: ac_compiler_gnu=$ac_cv_c_compiler_gnu
10031:
1.150 moko 10032: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 10033: /* end confdefs.h. */
10034:
10035: int
1.237 moko 10036: main (void)
1.128 moko 10037: {
10038:
10039: ;
10040: return 0;
10041: }
10042: _ACEOF
1.237 moko 10043: if ac_fn_c_try_link "$LINENO"
10044: then :
1.128 moko 10045: lt_cv_cc_needs_belf=yes
1.237 moko 10046: else case e in #(
10047: e) lt_cv_cc_needs_belf=no ;;
10048: esac
1.128 moko 10049: fi
1.237 moko 10050: rm -f core conftest.err conftest.$ac_objext conftest.beam \
1.150 moko 10051: conftest$ac_exeext conftest.$ac_ext
1.128 moko 10052: ac_ext=c
10053: ac_cpp='$CPP $CPPFLAGS'
10054: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10055: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10056: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.237 moko 10057: ;;
10058: esac
1.128 moko 10059: fi
1.237 moko 10060: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
10061: printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
10062: if test yes != "$lt_cv_cc_needs_belf"; then
1.128 moko 10063: # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
1.237 moko 10064: CFLAGS=$SAVE_CFLAGS
1.128 moko 10065: fi
10066: ;;
10067: *-*solaris*)
1.237 moko 10068: # Find out what ABI is being produced by ac_compile, and set linker
10069: # options accordingly.
1.128 moko 10070: echo 'int i;' > conftest.$ac_ext
1.150 moko 10071: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1.128 moko 10072: (eval $ac_compile) 2>&5
10073: ac_status=$?
1.237 moko 10074: printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1.150 moko 10075: test $ac_status = 0; }; then
1.237 moko 10076: case `$FILECMD conftest.o` in
1.128 moko 10077: *64-bit*)
10078: case $lt_cv_prog_gnu_ld in
10079: yes*)
10080: case $host in
1.237 moko 10081: i?86-*-solaris*|x86_64-*-solaris*)
1.128 moko 10082: LD="${LD-ld} -m elf_x86_64"
10083: ;;
10084: sparc*-*-solaris*)
10085: LD="${LD-ld} -m elf64_sparc"
10086: ;;
10087: esac
10088: # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
10089: if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
1.237 moko 10090: LD=${LD-ld}_sol2
1.128 moko 10091: fi
10092: ;;
10093: *)
10094: if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
10095: LD="${LD-ld} -64"
10096: fi
10097: ;;
10098: esac
10099: ;;
10100: esac
10101: fi
10102: rm -rf conftest*
10103: ;;
10104: esac
10105:
1.237 moko 10106: need_locks=$enable_libtool_lock
1.128 moko 10107:
10108: if test -n "$ac_tool_prefix"; then
10109: # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
10110: set dummy ${ac_tool_prefix}mt; ac_word=$2
1.237 moko 10111: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10112: printf %s "checking for $ac_word... " >&6; }
10113: if test ${ac_cv_prog_MANIFEST_TOOL+y}
10114: then :
10115: printf %s "(cached) " >&6
10116: else case e in #(
10117: e) if test -n "$MANIFEST_TOOL"; then
1.128 moko 10118: ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
10119: else
10120: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10121: for as_dir in $PATH
10122: do
10123: IFS=$as_save_IFS
1.237 moko 10124: case $as_dir in #(((
10125: '') as_dir=./ ;;
10126: */) ;;
10127: *) as_dir=$as_dir/ ;;
10128: esac
1.150 moko 10129: for ac_exec_ext in '' $ac_executable_extensions; do
1.237 moko 10130: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.128 moko 10131: ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
1.237 moko 10132: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.128 moko 10133: break 2
10134: fi
10135: done
1.150 moko 10136: done
10137: IFS=$as_save_IFS
1.128 moko 10138:
1.237 moko 10139: fi ;;
10140: esac
1.128 moko 10141: fi
10142: MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
10143: if test -n "$MANIFEST_TOOL"; then
1.237 moko 10144: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
10145: printf "%s\n" "$MANIFEST_TOOL" >&6; }
1.128 moko 10146: else
1.237 moko 10147: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10148: printf "%s\n" "no" >&6; }
1.128 moko 10149: fi
10150:
1.150 moko 10151:
1.128 moko 10152: fi
10153: if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
10154: ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
10155: # Extract the first word of "mt", so it can be a program name with args.
10156: set dummy mt; ac_word=$2
1.237 moko 10157: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10158: printf %s "checking for $ac_word... " >&6; }
10159: if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
10160: then :
10161: printf %s "(cached) " >&6
10162: else case e in #(
10163: e) if test -n "$ac_ct_MANIFEST_TOOL"; then
1.128 moko 10164: ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
10165: else
10166: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10167: for as_dir in $PATH
10168: do
10169: IFS=$as_save_IFS
1.237 moko 10170: case $as_dir in #(((
10171: '') as_dir=./ ;;
10172: */) ;;
10173: *) as_dir=$as_dir/ ;;
10174: esac
1.150 moko 10175: for ac_exec_ext in '' $ac_executable_extensions; do
1.237 moko 10176: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.128 moko 10177: ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
1.237 moko 10178: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.128 moko 10179: break 2
10180: fi
10181: done
1.150 moko 10182: done
10183: IFS=$as_save_IFS
1.128 moko 10184:
1.237 moko 10185: fi ;;
10186: esac
1.128 moko 10187: fi
10188: ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
10189: if test -n "$ac_ct_MANIFEST_TOOL"; then
1.237 moko 10190: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
10191: printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
1.128 moko 10192: else
1.237 moko 10193: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10194: printf "%s\n" "no" >&6; }
1.128 moko 10195: fi
10196:
1.150 moko 10197: if test "x$ac_ct_MANIFEST_TOOL" = x; then
10198: MANIFEST_TOOL=":"
10199: else
10200: case $cross_compiling:$ac_tool_warned in
10201: yes:)
1.237 moko 10202: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10203: printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
1.150 moko 10204: ac_tool_warned=yes ;;
10205: esac
10206: MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
10207: fi
1.128 moko 10208: else
10209: MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
10210: fi
10211:
10212: test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
1.237 moko 10213: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
10214: printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
10215: if test ${lt_cv_path_manifest_tool+y}
10216: then :
10217: printf %s "(cached) " >&6
10218: else case e in #(
10219: e) lt_cv_path_manifest_tool=no
1.128 moko 10220: echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
10221: $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
10222: cat conftest.err >&5
10223: if $GREP 'Manifest Tool' conftest.out > /dev/null; then
1.237 moko 10224: lt_cv_path_manifest_tool=yes
1.128 moko 10225: fi
1.237 moko 10226: rm -f conftest* ;;
10227: esac
1.128 moko 10228: fi
1.237 moko 10229: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_manifest_tool" >&5
10230: printf "%s\n" "$lt_cv_path_manifest_tool" >&6; }
10231: if test yes != "$lt_cv_path_manifest_tool"; then
1.128 moko 10232: MANIFEST_TOOL=:
10233: fi
10234:
10235:
10236:
10237:
10238:
10239:
10240: case $host_os in
10241: rhapsody* | darwin*)
10242: if test -n "$ac_tool_prefix"; then
10243: # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
10244: set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
1.237 moko 10245: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10246: printf %s "checking for $ac_word... " >&6; }
10247: if test ${ac_cv_prog_DSYMUTIL+y}
10248: then :
10249: printf %s "(cached) " >&6
10250: else case e in #(
10251: e) if test -n "$DSYMUTIL"; then
1.128 moko 10252: ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
10253: else
10254: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10255: for as_dir in $PATH
10256: do
10257: IFS=$as_save_IFS
1.237 moko 10258: case $as_dir in #(((
10259: '') as_dir=./ ;;
10260: */) ;;
10261: *) as_dir=$as_dir/ ;;
10262: esac
1.150 moko 10263: for ac_exec_ext in '' $ac_executable_extensions; do
1.237 moko 10264: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.128 moko 10265: ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
1.237 moko 10266: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.128 moko 10267: break 2
10268: fi
10269: done
1.150 moko 10270: done
10271: IFS=$as_save_IFS
1.128 moko 10272:
1.237 moko 10273: fi ;;
10274: esac
1.128 moko 10275: fi
10276: DSYMUTIL=$ac_cv_prog_DSYMUTIL
10277: if test -n "$DSYMUTIL"; then
1.237 moko 10278: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
10279: printf "%s\n" "$DSYMUTIL" >&6; }
1.128 moko 10280: else
1.237 moko 10281: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10282: printf "%s\n" "no" >&6; }
1.128 moko 10283: fi
10284:
1.150 moko 10285:
1.128 moko 10286: fi
10287: if test -z "$ac_cv_prog_DSYMUTIL"; then
10288: ac_ct_DSYMUTIL=$DSYMUTIL
10289: # Extract the first word of "dsymutil", so it can be a program name with args.
10290: set dummy dsymutil; ac_word=$2
1.237 moko 10291: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10292: printf %s "checking for $ac_word... " >&6; }
10293: if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
10294: then :
10295: printf %s "(cached) " >&6
10296: else case e in #(
10297: e) if test -n "$ac_ct_DSYMUTIL"; then
1.128 moko 10298: ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
10299: else
10300: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10301: for as_dir in $PATH
10302: do
10303: IFS=$as_save_IFS
1.237 moko 10304: case $as_dir in #(((
10305: '') as_dir=./ ;;
10306: */) ;;
10307: *) as_dir=$as_dir/ ;;
10308: esac
1.150 moko 10309: for ac_exec_ext in '' $ac_executable_extensions; do
1.237 moko 10310: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.128 moko 10311: ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
1.237 moko 10312: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.128 moko 10313: break 2
10314: fi
10315: done
1.150 moko 10316: done
10317: IFS=$as_save_IFS
1.128 moko 10318:
1.237 moko 10319: fi ;;
10320: esac
1.128 moko 10321: fi
10322: ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
10323: if test -n "$ac_ct_DSYMUTIL"; then
1.237 moko 10324: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
10325: printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
1.128 moko 10326: else
1.237 moko 10327: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10328: printf "%s\n" "no" >&6; }
1.128 moko 10329: fi
10330:
1.150 moko 10331: if test "x$ac_ct_DSYMUTIL" = x; then
10332: DSYMUTIL=":"
10333: else
10334: case $cross_compiling:$ac_tool_warned in
10335: yes:)
1.237 moko 10336: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10337: printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
1.150 moko 10338: ac_tool_warned=yes ;;
10339: esac
10340: DSYMUTIL=$ac_ct_DSYMUTIL
10341: fi
1.128 moko 10342: else
10343: DSYMUTIL="$ac_cv_prog_DSYMUTIL"
10344: fi
10345:
10346: if test -n "$ac_tool_prefix"; then
10347: # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
10348: set dummy ${ac_tool_prefix}nmedit; ac_word=$2
1.237 moko 10349: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10350: printf %s "checking for $ac_word... " >&6; }
10351: if test ${ac_cv_prog_NMEDIT+y}
10352: then :
10353: printf %s "(cached) " >&6
10354: else case e in #(
10355: e) if test -n "$NMEDIT"; then
1.128 moko 10356: ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
10357: else
10358: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10359: for as_dir in $PATH
10360: do
10361: IFS=$as_save_IFS
1.237 moko 10362: case $as_dir in #(((
10363: '') as_dir=./ ;;
10364: */) ;;
10365: *) as_dir=$as_dir/ ;;
10366: esac
1.150 moko 10367: for ac_exec_ext in '' $ac_executable_extensions; do
1.237 moko 10368: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.128 moko 10369: ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
1.237 moko 10370: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.128 moko 10371: break 2
10372: fi
10373: done
1.150 moko 10374: done
10375: IFS=$as_save_IFS
1.128 moko 10376:
1.237 moko 10377: fi ;;
10378: esac
1.128 moko 10379: fi
10380: NMEDIT=$ac_cv_prog_NMEDIT
10381: if test -n "$NMEDIT"; then
1.237 moko 10382: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
10383: printf "%s\n" "$NMEDIT" >&6; }
1.128 moko 10384: else
1.237 moko 10385: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10386: printf "%s\n" "no" >&6; }
1.128 moko 10387: fi
10388:
1.150 moko 10389:
1.128 moko 10390: fi
10391: if test -z "$ac_cv_prog_NMEDIT"; then
10392: ac_ct_NMEDIT=$NMEDIT
10393: # Extract the first word of "nmedit", so it can be a program name with args.
10394: set dummy nmedit; ac_word=$2
1.237 moko 10395: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10396: printf %s "checking for $ac_word... " >&6; }
10397: if test ${ac_cv_prog_ac_ct_NMEDIT+y}
10398: then :
10399: printf %s "(cached) " >&6
10400: else case e in #(
10401: e) if test -n "$ac_ct_NMEDIT"; then
1.128 moko 10402: ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
10403: else
10404: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10405: for as_dir in $PATH
10406: do
10407: IFS=$as_save_IFS
1.237 moko 10408: case $as_dir in #(((
10409: '') as_dir=./ ;;
10410: */) ;;
10411: *) as_dir=$as_dir/ ;;
10412: esac
1.150 moko 10413: for ac_exec_ext in '' $ac_executable_extensions; do
1.237 moko 10414: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.128 moko 10415: ac_cv_prog_ac_ct_NMEDIT="nmedit"
1.237 moko 10416: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.128 moko 10417: break 2
10418: fi
10419: done
1.150 moko 10420: done
10421: IFS=$as_save_IFS
1.128 moko 10422:
1.237 moko 10423: fi ;;
10424: esac
1.128 moko 10425: fi
10426: ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
10427: if test -n "$ac_ct_NMEDIT"; then
1.237 moko 10428: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
10429: printf "%s\n" "$ac_ct_NMEDIT" >&6; }
1.128 moko 10430: else
1.237 moko 10431: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10432: printf "%s\n" "no" >&6; }
1.128 moko 10433: fi
10434:
1.150 moko 10435: if test "x$ac_ct_NMEDIT" = x; then
10436: NMEDIT=":"
10437: else
10438: case $cross_compiling:$ac_tool_warned in
10439: yes:)
1.237 moko 10440: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10441: printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
1.150 moko 10442: ac_tool_warned=yes ;;
10443: esac
10444: NMEDIT=$ac_ct_NMEDIT
10445: fi
1.128 moko 10446: else
10447: NMEDIT="$ac_cv_prog_NMEDIT"
10448: fi
10449:
10450: if test -n "$ac_tool_prefix"; then
10451: # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
10452: set dummy ${ac_tool_prefix}lipo; ac_word=$2
1.237 moko 10453: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10454: printf %s "checking for $ac_word... " >&6; }
10455: if test ${ac_cv_prog_LIPO+y}
10456: then :
10457: printf %s "(cached) " >&6
10458: else case e in #(
10459: e) if test -n "$LIPO"; then
1.128 moko 10460: ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
10461: else
10462: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10463: for as_dir in $PATH
10464: do
10465: IFS=$as_save_IFS
1.237 moko 10466: case $as_dir in #(((
10467: '') as_dir=./ ;;
10468: */) ;;
10469: *) as_dir=$as_dir/ ;;
10470: esac
1.150 moko 10471: for ac_exec_ext in '' $ac_executable_extensions; do
1.237 moko 10472: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.128 moko 10473: ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
1.237 moko 10474: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.128 moko 10475: break 2
10476: fi
10477: done
1.150 moko 10478: done
10479: IFS=$as_save_IFS
1.128 moko 10480:
1.237 moko 10481: fi ;;
10482: esac
1.128 moko 10483: fi
10484: LIPO=$ac_cv_prog_LIPO
10485: if test -n "$LIPO"; then
1.237 moko 10486: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
10487: printf "%s\n" "$LIPO" >&6; }
1.128 moko 10488: else
1.237 moko 10489: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10490: printf "%s\n" "no" >&6; }
1.128 moko 10491: fi
10492:
1.150 moko 10493:
1.128 moko 10494: fi
10495: if test -z "$ac_cv_prog_LIPO"; then
10496: ac_ct_LIPO=$LIPO
10497: # Extract the first word of "lipo", so it can be a program name with args.
10498: set dummy lipo; ac_word=$2
1.237 moko 10499: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10500: printf %s "checking for $ac_word... " >&6; }
10501: if test ${ac_cv_prog_ac_ct_LIPO+y}
10502: then :
10503: printf %s "(cached) " >&6
10504: else case e in #(
10505: e) if test -n "$ac_ct_LIPO"; then
1.128 moko 10506: ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
10507: else
10508: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10509: for as_dir in $PATH
10510: do
10511: IFS=$as_save_IFS
1.237 moko 10512: case $as_dir in #(((
10513: '') as_dir=./ ;;
10514: */) ;;
10515: *) as_dir=$as_dir/ ;;
10516: esac
1.150 moko 10517: for ac_exec_ext in '' $ac_executable_extensions; do
1.237 moko 10518: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.128 moko 10519: ac_cv_prog_ac_ct_LIPO="lipo"
1.237 moko 10520: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.128 moko 10521: break 2
10522: fi
10523: done
1.150 moko 10524: done
10525: IFS=$as_save_IFS
1.128 moko 10526:
1.237 moko 10527: fi ;;
10528: esac
1.128 moko 10529: fi
10530: ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
10531: if test -n "$ac_ct_LIPO"; then
1.237 moko 10532: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
10533: printf "%s\n" "$ac_ct_LIPO" >&6; }
1.128 moko 10534: else
1.237 moko 10535: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10536: printf "%s\n" "no" >&6; }
1.128 moko 10537: fi
10538:
1.150 moko 10539: if test "x$ac_ct_LIPO" = x; then
10540: LIPO=":"
10541: else
10542: case $cross_compiling:$ac_tool_warned in
10543: yes:)
1.237 moko 10544: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10545: printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
1.150 moko 10546: ac_tool_warned=yes ;;
10547: esac
10548: LIPO=$ac_ct_LIPO
10549: fi
1.128 moko 10550: else
10551: LIPO="$ac_cv_prog_LIPO"
10552: fi
10553:
10554: if test -n "$ac_tool_prefix"; then
10555: # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
10556: set dummy ${ac_tool_prefix}otool; ac_word=$2
1.237 moko 10557: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10558: printf %s "checking for $ac_word... " >&6; }
10559: if test ${ac_cv_prog_OTOOL+y}
10560: then :
10561: printf %s "(cached) " >&6
10562: else case e in #(
10563: e) if test -n "$OTOOL"; then
1.128 moko 10564: ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
10565: else
10566: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10567: for as_dir in $PATH
10568: do
10569: IFS=$as_save_IFS
1.237 moko 10570: case $as_dir in #(((
10571: '') as_dir=./ ;;
10572: */) ;;
10573: *) as_dir=$as_dir/ ;;
10574: esac
1.150 moko 10575: for ac_exec_ext in '' $ac_executable_extensions; do
1.237 moko 10576: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.128 moko 10577: ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
1.237 moko 10578: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.128 moko 10579: break 2
10580: fi
10581: done
1.150 moko 10582: done
10583: IFS=$as_save_IFS
1.128 moko 10584:
1.237 moko 10585: fi ;;
10586: esac
1.128 moko 10587: fi
10588: OTOOL=$ac_cv_prog_OTOOL
10589: if test -n "$OTOOL"; then
1.237 moko 10590: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
10591: printf "%s\n" "$OTOOL" >&6; }
1.128 moko 10592: else
1.237 moko 10593: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10594: printf "%s\n" "no" >&6; }
1.128 moko 10595: fi
10596:
1.150 moko 10597:
1.128 moko 10598: fi
10599: if test -z "$ac_cv_prog_OTOOL"; then
10600: ac_ct_OTOOL=$OTOOL
10601: # Extract the first word of "otool", so it can be a program name with args.
10602: set dummy otool; ac_word=$2
1.237 moko 10603: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10604: printf %s "checking for $ac_word... " >&6; }
10605: if test ${ac_cv_prog_ac_ct_OTOOL+y}
10606: then :
10607: printf %s "(cached) " >&6
10608: else case e in #(
10609: e) if test -n "$ac_ct_OTOOL"; then
1.128 moko 10610: ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
10611: else
10612: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10613: for as_dir in $PATH
10614: do
10615: IFS=$as_save_IFS
1.237 moko 10616: case $as_dir in #(((
10617: '') as_dir=./ ;;
10618: */) ;;
10619: *) as_dir=$as_dir/ ;;
10620: esac
1.150 moko 10621: for ac_exec_ext in '' $ac_executable_extensions; do
1.237 moko 10622: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.128 moko 10623: ac_cv_prog_ac_ct_OTOOL="otool"
1.237 moko 10624: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.128 moko 10625: break 2
10626: fi
10627: done
1.150 moko 10628: done
10629: IFS=$as_save_IFS
1.128 moko 10630:
1.237 moko 10631: fi ;;
10632: esac
1.128 moko 10633: fi
10634: ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
10635: if test -n "$ac_ct_OTOOL"; then
1.237 moko 10636: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
10637: printf "%s\n" "$ac_ct_OTOOL" >&6; }
1.128 moko 10638: else
1.237 moko 10639: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10640: printf "%s\n" "no" >&6; }
1.128 moko 10641: fi
10642:
1.150 moko 10643: if test "x$ac_ct_OTOOL" = x; then
10644: OTOOL=":"
10645: else
10646: case $cross_compiling:$ac_tool_warned in
10647: yes:)
1.237 moko 10648: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10649: printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
1.150 moko 10650: ac_tool_warned=yes ;;
10651: esac
10652: OTOOL=$ac_ct_OTOOL
10653: fi
1.128 moko 10654: else
10655: OTOOL="$ac_cv_prog_OTOOL"
10656: fi
10657:
10658: if test -n "$ac_tool_prefix"; then
10659: # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
10660: set dummy ${ac_tool_prefix}otool64; ac_word=$2
1.237 moko 10661: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10662: printf %s "checking for $ac_word... " >&6; }
10663: if test ${ac_cv_prog_OTOOL64+y}
10664: then :
10665: printf %s "(cached) " >&6
10666: else case e in #(
10667: e) if test -n "$OTOOL64"; then
1.128 moko 10668: ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
10669: else
10670: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10671: for as_dir in $PATH
10672: do
10673: IFS=$as_save_IFS
1.237 moko 10674: case $as_dir in #(((
10675: '') as_dir=./ ;;
10676: */) ;;
10677: *) as_dir=$as_dir/ ;;
10678: esac
1.150 moko 10679: for ac_exec_ext in '' $ac_executable_extensions; do
1.237 moko 10680: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.128 moko 10681: ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
1.237 moko 10682: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.128 moko 10683: break 2
10684: fi
10685: done
1.150 moko 10686: done
10687: IFS=$as_save_IFS
1.128 moko 10688:
1.237 moko 10689: fi ;;
10690: esac
1.128 moko 10691: fi
10692: OTOOL64=$ac_cv_prog_OTOOL64
10693: if test -n "$OTOOL64"; then
1.237 moko 10694: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
10695: printf "%s\n" "$OTOOL64" >&6; }
1.128 moko 10696: else
1.237 moko 10697: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10698: printf "%s\n" "no" >&6; }
1.128 moko 10699: fi
10700:
1.150 moko 10701:
1.128 moko 10702: fi
10703: if test -z "$ac_cv_prog_OTOOL64"; then
10704: ac_ct_OTOOL64=$OTOOL64
10705: # Extract the first word of "otool64", so it can be a program name with args.
10706: set dummy otool64; ac_word=$2
1.237 moko 10707: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10708: printf %s "checking for $ac_word... " >&6; }
10709: if test ${ac_cv_prog_ac_ct_OTOOL64+y}
10710: then :
10711: printf %s "(cached) " >&6
10712: else case e in #(
10713: e) if test -n "$ac_ct_OTOOL64"; then
1.128 moko 10714: ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
10715: else
10716: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10717: for as_dir in $PATH
10718: do
10719: IFS=$as_save_IFS
1.237 moko 10720: case $as_dir in #(((
10721: '') as_dir=./ ;;
10722: */) ;;
10723: *) as_dir=$as_dir/ ;;
10724: esac
1.150 moko 10725: for ac_exec_ext in '' $ac_executable_extensions; do
1.237 moko 10726: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.128 moko 10727: ac_cv_prog_ac_ct_OTOOL64="otool64"
1.237 moko 10728: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.128 moko 10729: break 2
10730: fi
10731: done
1.150 moko 10732: done
10733: IFS=$as_save_IFS
1.128 moko 10734:
1.237 moko 10735: fi ;;
10736: esac
1.128 moko 10737: fi
10738: ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
10739: if test -n "$ac_ct_OTOOL64"; then
1.237 moko 10740: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
10741: printf "%s\n" "$ac_ct_OTOOL64" >&6; }
1.128 moko 10742: else
1.237 moko 10743: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10744: printf "%s\n" "no" >&6; }
1.128 moko 10745: fi
10746:
1.150 moko 10747: if test "x$ac_ct_OTOOL64" = x; then
10748: OTOOL64=":"
10749: else
10750: case $cross_compiling:$ac_tool_warned in
10751: yes:)
1.237 moko 10752: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10753: printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
1.150 moko 10754: ac_tool_warned=yes ;;
10755: esac
10756: OTOOL64=$ac_ct_OTOOL64
10757: fi
1.128 moko 10758: else
10759: OTOOL64="$ac_cv_prog_OTOOL64"
10760: fi
10761:
10762:
10763:
10764:
10765:
10766:
10767:
10768:
10769:
10770:
10771:
10772:
10773:
10774:
10775:
10776:
10777:
10778:
10779:
10780:
10781:
10782:
10783:
10784:
10785:
10786:
10787:
1.237 moko 10788: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
10789: printf %s "checking for -single_module linker flag... " >&6; }
10790: if test ${lt_cv_apple_cc_single_mod+y}
10791: then :
10792: printf %s "(cached) " >&6
10793: else case e in #(
10794: e) lt_cv_apple_cc_single_mod=no
10795: if test -z "$LT_MULTI_MODULE"; then
1.128 moko 10796: # By default we will add the -single_module flag. You can override
10797: # by either setting the environment variable LT_MULTI_MODULE
10798: # non-empty at configure time, or by adding -multi_module to the
10799: # link flags.
10800: rm -rf libconftest.dylib*
10801: echo "int foo(void){return 1;}" > conftest.c
10802: echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10803: -dynamiclib -Wl,-single_module conftest.c" >&5
10804: $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10805: -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
10806: _lt_result=$?
10807: # If there is a non-empty error log, and "single_module"
10808: # appears in it, assume the flag caused a linker warning
10809: if test -s conftest.err && $GREP single_module conftest.err; then
10810: cat conftest.err >&5
10811: # Otherwise, if the output was created with a 0 exit code from
10812: # the compiler, it worked.
1.237 moko 10813: elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
1.128 moko 10814: lt_cv_apple_cc_single_mod=yes
10815: else
10816: cat conftest.err >&5
10817: fi
10818: rm -rf libconftest.dylib*
10819: rm -f conftest.*
1.237 moko 10820: fi ;;
10821: esac
10822: fi
10823: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
10824: printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
10825:
10826: # Feature test to disable chained fixups since it is not
10827: # compatible with '-undefined dynamic_lookup'
10828: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -no_fixup_chains linker flag" >&5
10829: printf %s "checking for -no_fixup_chains linker flag... " >&6; }
10830: if test ${lt_cv_support_no_fixup_chains+y}
10831: then :
10832: printf %s "(cached) " >&6
10833: else case e in #(
10834: e) save_LDFLAGS=$LDFLAGS
10835: LDFLAGS="$LDFLAGS -Wl,-no_fixup_chains"
10836: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10837: /* end confdefs.h. */
10838:
10839: int
10840: main (void)
10841: {
10842:
10843: ;
10844: return 0;
10845: }
10846: _ACEOF
10847: if ac_fn_c_try_link "$LINENO"
10848: then :
10849: lt_cv_support_no_fixup_chains=yes
10850: else case e in #(
10851: e) lt_cv_support_no_fixup_chains=no
10852: ;;
10853: esac
10854: fi
10855: rm -f core conftest.err conftest.$ac_objext conftest.beam \
10856: conftest$ac_exeext conftest.$ac_ext
10857: LDFLAGS=$save_LDFLAGS
10858:
10859: ;;
10860: esac
1.128 moko 10861: fi
1.237 moko 10862: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_support_no_fixup_chains" >&5
10863: printf "%s\n" "$lt_cv_support_no_fixup_chains" >&6; }
1.128 moko 10864:
1.237 moko 10865: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
10866: printf %s "checking for -exported_symbols_list linker flag... " >&6; }
10867: if test ${lt_cv_ld_exported_symbols_list+y}
10868: then :
10869: printf %s "(cached) " >&6
10870: else case e in #(
10871: e) lt_cv_ld_exported_symbols_list=no
1.128 moko 10872: save_LDFLAGS=$LDFLAGS
10873: echo "_main" > conftest.sym
10874: LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
1.150 moko 10875: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 10876: /* end confdefs.h. */
10877:
10878: int
1.237 moko 10879: main (void)
1.128 moko 10880: {
10881:
10882: ;
10883: return 0;
10884: }
10885: _ACEOF
1.237 moko 10886: if ac_fn_c_try_link "$LINENO"
10887: then :
1.128 moko 10888: lt_cv_ld_exported_symbols_list=yes
1.237 moko 10889: else case e in #(
10890: e) lt_cv_ld_exported_symbols_list=no ;;
10891: esac
1.128 moko 10892: fi
1.237 moko 10893: rm -f core conftest.err conftest.$ac_objext conftest.beam \
1.150 moko 10894: conftest$ac_exeext conftest.$ac_ext
1.237 moko 10895: LDFLAGS=$save_LDFLAGS
10896: ;;
10897: esac
1.128 moko 10898: fi
1.237 moko 10899: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
10900: printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
1.128 moko 10901:
1.237 moko 10902: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
10903: printf %s "checking for -force_load linker flag... " >&6; }
10904: if test ${lt_cv_ld_force_load+y}
10905: then :
10906: printf %s "(cached) " >&6
10907: else case e in #(
10908: e) lt_cv_ld_force_load=no
1.128 moko 10909: cat > conftest.c << _LT_EOF
10910: int forced_loaded() { return 2;}
10911: _LT_EOF
10912: echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
10913: $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
1.237 moko 10914: echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
10915: $AR $AR_FLAGS libconftest.a conftest.o 2>&5
1.128 moko 10916: echo "$RANLIB libconftest.a" >&5
10917: $RANLIB libconftest.a 2>&5
10918: cat > conftest.c << _LT_EOF
1.237 moko 10919: int main(void) { return 0;}
1.128 moko 10920: _LT_EOF
10921: echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
10922: $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
10923: _lt_result=$?
10924: if test -s conftest.err && $GREP force_load conftest.err; then
10925: cat conftest.err >&5
1.237 moko 10926: elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
1.128 moko 10927: lt_cv_ld_force_load=yes
10928: else
10929: cat conftest.err >&5
10930: fi
10931: rm -f conftest.err libconftest.a conftest conftest.c
10932: rm -rf conftest.dSYM
1.237 moko 10933: ;;
10934: esac
1.128 moko 10935: fi
1.237 moko 10936: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
10937: printf "%s\n" "$lt_cv_ld_force_load" >&6; }
1.128 moko 10938: case $host_os in
10939: rhapsody* | darwin1.[012])
1.237 moko 10940: _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
1.128 moko 10941: darwin1.*)
1.237 moko 10942: _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
10943: darwin*)
10944: case $MACOSX_DEPLOYMENT_TARGET,$host in
10945: 10.[012],*|,*powerpc*-darwin[5-8]*)
10946: _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
10947: *)
10948: _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup'
10949: if test yes = "$lt_cv_support_no_fixup_chains"; then
10950: as_fn_append _lt_dar_allow_undefined ' $wl-no_fixup_chains'
10951: fi
10952: ;;
1.128 moko 10953: esac
10954: ;;
10955: esac
1.237 moko 10956: if test yes = "$lt_cv_apple_cc_single_mod"; then
1.128 moko 10957: _lt_dar_single_mod='$single_module'
10958: fi
1.237 moko 10959: _lt_dar_needs_single_mod=no
10960: case $host_os in
10961: rhapsody* | darwin1.*)
10962: _lt_dar_needs_single_mod=yes ;;
10963: darwin*)
10964: # When targeting Mac OS X 10.4 (darwin 8) or later,
10965: # -single_module is the default and -multi_module is unsupported.
10966: # The toolchain on macOS 10.14 (darwin 18) and later cannot
10967: # target any OS version that needs -single_module.
10968: case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
10969: 10.0,*-darwin[567].*|10.[0-3],*-darwin[5-9].*|10.[0-3],*-darwin1[0-7].*)
10970: _lt_dar_needs_single_mod=yes ;;
10971: esac
10972: ;;
10973: esac
10974: if test yes = "$lt_cv_ld_exported_symbols_list"; then
10975: _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
1.128 moko 10976: else
1.237 moko 10977: _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
1.128 moko 10978: fi
1.237 moko 10979: if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
1.128 moko 10980: _lt_dsymutil='~$DSYMUTIL $lib || :'
10981: else
10982: _lt_dsymutil=
10983: fi
10984: ;;
10985: esac
10986:
1.237 moko 10987: # func_munge_path_list VARIABLE PATH
10988: # -----------------------------------
10989: # VARIABLE is name of variable containing _space_ separated list of
10990: # directories to be munged by the contents of PATH, which is string
10991: # having a format:
10992: # "DIR[:DIR]:"
10993: # string "DIR[ DIR]" will be prepended to VARIABLE
10994: # ":DIR[:DIR]"
10995: # string "DIR[ DIR]" will be appended to VARIABLE
10996: # "DIRP[:DIRP]::[DIRA:]DIRA"
10997: # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
10998: # "DIRA[ DIRA]" will be appended to VARIABLE
10999: # "DIR[:DIR]"
11000: # VARIABLE will be replaced by "DIR[ DIR]"
11001: func_munge_path_list ()
11002: {
11003: case x$2 in
11004: x)
11005: ;;
11006: *:)
11007: eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
11008: ;;
11009: x:*)
11010: eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
11011: ;;
11012: *::*)
11013: eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
11014: eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
11015: ;;
11016: *)
11017: eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
11018: ;;
11019: esac
11020: }
11021:
11022: ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
11023: "
11024: if test "x$ac_cv_header_dlfcn_h" = xyes
11025: then :
11026: printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
1.150 moko 11027:
1.128 moko 11028: fi
11029:
11030:
11031:
11032:
1.237 moko 11033: func_stripname_cnf ()
1.128 moko 11034: {
1.237 moko 11035: case $2 in
11036: .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
11037: *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
1.150 moko 11038: esac
11039: } # func_stripname_cnf
1.128 moko 11040:
11041:
11042:
11043:
11044:
11045: # Set options
11046: enable_dlopen=yes
11047: enable_win32_dll=yes
11048:
11049: case $host in
1.237 moko 11050: *-*-cygwin* | *-*-mingw* | *-*-windows* | *-*-pw32* | *-*-cegcc*)
1.128 moko 11051: if test -n "$ac_tool_prefix"; then
11052: # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
11053: set dummy ${ac_tool_prefix}as; ac_word=$2
1.237 moko 11054: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11055: printf %s "checking for $ac_word... " >&6; }
11056: if test ${ac_cv_prog_AS+y}
11057: then :
11058: printf %s "(cached) " >&6
11059: else case e in #(
11060: e) if test -n "$AS"; then
1.128 moko 11061: ac_cv_prog_AS="$AS" # Let the user override the test.
11062: else
11063: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11064: for as_dir in $PATH
11065: do
11066: IFS=$as_save_IFS
1.237 moko 11067: case $as_dir in #(((
11068: '') as_dir=./ ;;
11069: */) ;;
11070: *) as_dir=$as_dir/ ;;
11071: esac
1.150 moko 11072: for ac_exec_ext in '' $ac_executable_extensions; do
1.237 moko 11073: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.128 moko 11074: ac_cv_prog_AS="${ac_tool_prefix}as"
1.237 moko 11075: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.128 moko 11076: break 2
11077: fi
11078: done
1.150 moko 11079: done
11080: IFS=$as_save_IFS
1.128 moko 11081:
1.237 moko 11082: fi ;;
11083: esac
1.128 moko 11084: fi
11085: AS=$ac_cv_prog_AS
11086: if test -n "$AS"; then
1.237 moko 11087: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
11088: printf "%s\n" "$AS" >&6; }
1.128 moko 11089: else
1.237 moko 11090: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11091: printf "%s\n" "no" >&6; }
1.128 moko 11092: fi
11093:
1.150 moko 11094:
1.128 moko 11095: fi
11096: if test -z "$ac_cv_prog_AS"; then
11097: ac_ct_AS=$AS
11098: # Extract the first word of "as", so it can be a program name with args.
11099: set dummy as; ac_word=$2
1.237 moko 11100: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11101: printf %s "checking for $ac_word... " >&6; }
11102: if test ${ac_cv_prog_ac_ct_AS+y}
11103: then :
11104: printf %s "(cached) " >&6
11105: else case e in #(
11106: e) if test -n "$ac_ct_AS"; then
1.128 moko 11107: ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
11108: else
11109: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11110: for as_dir in $PATH
11111: do
11112: IFS=$as_save_IFS
1.237 moko 11113: case $as_dir in #(((
11114: '') as_dir=./ ;;
11115: */) ;;
11116: *) as_dir=$as_dir/ ;;
11117: esac
1.150 moko 11118: for ac_exec_ext in '' $ac_executable_extensions; do
1.237 moko 11119: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.128 moko 11120: ac_cv_prog_ac_ct_AS="as"
1.237 moko 11121: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.128 moko 11122: break 2
11123: fi
11124: done
1.150 moko 11125: done
11126: IFS=$as_save_IFS
1.128 moko 11127:
1.237 moko 11128: fi ;;
11129: esac
1.128 moko 11130: fi
11131: ac_ct_AS=$ac_cv_prog_ac_ct_AS
11132: if test -n "$ac_ct_AS"; then
1.237 moko 11133: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
11134: printf "%s\n" "$ac_ct_AS" >&6; }
1.128 moko 11135: else
1.237 moko 11136: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11137: printf "%s\n" "no" >&6; }
1.128 moko 11138: fi
11139:
1.150 moko 11140: if test "x$ac_ct_AS" = x; then
11141: AS="false"
11142: else
11143: case $cross_compiling:$ac_tool_warned in
11144: yes:)
1.237 moko 11145: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11146: printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
1.150 moko 11147: ac_tool_warned=yes ;;
11148: esac
11149: AS=$ac_ct_AS
11150: fi
1.128 moko 11151: else
11152: AS="$ac_cv_prog_AS"
11153: fi
11154:
11155: if test -n "$ac_tool_prefix"; then
11156: # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
11157: set dummy ${ac_tool_prefix}dlltool; ac_word=$2
1.237 moko 11158: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11159: printf %s "checking for $ac_word... " >&6; }
11160: if test ${ac_cv_prog_DLLTOOL+y}
11161: then :
11162: printf %s "(cached) " >&6
11163: else case e in #(
11164: e) if test -n "$DLLTOOL"; then
1.128 moko 11165: ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11166: else
11167: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11168: for as_dir in $PATH
11169: do
11170: IFS=$as_save_IFS
1.237 moko 11171: case $as_dir in #(((
11172: '') as_dir=./ ;;
11173: */) ;;
11174: *) as_dir=$as_dir/ ;;
11175: esac
1.150 moko 11176: for ac_exec_ext in '' $ac_executable_extensions; do
1.237 moko 11177: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.128 moko 11178: ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
1.237 moko 11179: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.128 moko 11180: break 2
11181: fi
11182: done
1.150 moko 11183: done
11184: IFS=$as_save_IFS
1.128 moko 11185:
1.237 moko 11186: fi ;;
11187: esac
1.128 moko 11188: fi
11189: DLLTOOL=$ac_cv_prog_DLLTOOL
11190: if test -n "$DLLTOOL"; then
1.237 moko 11191: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11192: printf "%s\n" "$DLLTOOL" >&6; }
1.128 moko 11193: else
1.237 moko 11194: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11195: printf "%s\n" "no" >&6; }
1.128 moko 11196: fi
11197:
1.150 moko 11198:
1.128 moko 11199: fi
11200: if test -z "$ac_cv_prog_DLLTOOL"; then
11201: ac_ct_DLLTOOL=$DLLTOOL
11202: # Extract the first word of "dlltool", so it can be a program name with args.
11203: set dummy dlltool; ac_word=$2
1.237 moko 11204: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11205: printf %s "checking for $ac_word... " >&6; }
11206: if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
11207: then :
11208: printf %s "(cached) " >&6
11209: else case e in #(
11210: e) if test -n "$ac_ct_DLLTOOL"; then
1.128 moko 11211: ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
11212: else
11213: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11214: for as_dir in $PATH
11215: do
11216: IFS=$as_save_IFS
1.237 moko 11217: case $as_dir in #(((
11218: '') as_dir=./ ;;
11219: */) ;;
11220: *) as_dir=$as_dir/ ;;
11221: esac
1.150 moko 11222: for ac_exec_ext in '' $ac_executable_extensions; do
1.237 moko 11223: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.128 moko 11224: ac_cv_prog_ac_ct_DLLTOOL="dlltool"
1.237 moko 11225: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.128 moko 11226: break 2
11227: fi
11228: done
1.150 moko 11229: done
11230: IFS=$as_save_IFS
1.128 moko 11231:
1.237 moko 11232: fi ;;
11233: esac
1.128 moko 11234: fi
11235: ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
11236: if test -n "$ac_ct_DLLTOOL"; then
1.237 moko 11237: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
11238: printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
1.128 moko 11239: else
1.237 moko 11240: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11241: printf "%s\n" "no" >&6; }
1.128 moko 11242: fi
11243:
1.150 moko 11244: if test "x$ac_ct_DLLTOOL" = x; then
11245: DLLTOOL="false"
11246: else
11247: case $cross_compiling:$ac_tool_warned in
11248: yes:)
1.237 moko 11249: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11250: printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
1.150 moko 11251: ac_tool_warned=yes ;;
11252: esac
11253: DLLTOOL=$ac_ct_DLLTOOL
11254: fi
1.128 moko 11255: else
11256: DLLTOOL="$ac_cv_prog_DLLTOOL"
11257: fi
11258:
11259: if test -n "$ac_tool_prefix"; then
11260: # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
11261: set dummy ${ac_tool_prefix}objdump; ac_word=$2
1.237 moko 11262: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11263: printf %s "checking for $ac_word... " >&6; }
11264: if test ${ac_cv_prog_OBJDUMP+y}
11265: then :
11266: printf %s "(cached) " >&6
11267: else case e in #(
11268: e) if test -n "$OBJDUMP"; then
1.128 moko 11269: ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
11270: else
11271: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11272: for as_dir in $PATH
11273: do
11274: IFS=$as_save_IFS
1.237 moko 11275: case $as_dir in #(((
11276: '') as_dir=./ ;;
11277: */) ;;
11278: *) as_dir=$as_dir/ ;;
11279: esac
1.150 moko 11280: for ac_exec_ext in '' $ac_executable_extensions; do
1.237 moko 11281: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.128 moko 11282: ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
1.237 moko 11283: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.128 moko 11284: break 2
11285: fi
11286: done
1.150 moko 11287: done
11288: IFS=$as_save_IFS
1.128 moko 11289:
1.237 moko 11290: fi ;;
11291: esac
1.128 moko 11292: fi
11293: OBJDUMP=$ac_cv_prog_OBJDUMP
11294: if test -n "$OBJDUMP"; then
1.237 moko 11295: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
11296: printf "%s\n" "$OBJDUMP" >&6; }
1.128 moko 11297: else
1.237 moko 11298: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11299: printf "%s\n" "no" >&6; }
1.128 moko 11300: fi
11301:
1.150 moko 11302:
1.128 moko 11303: fi
11304: if test -z "$ac_cv_prog_OBJDUMP"; then
11305: ac_ct_OBJDUMP=$OBJDUMP
11306: # Extract the first word of "objdump", so it can be a program name with args.
11307: set dummy objdump; ac_word=$2
1.237 moko 11308: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11309: printf %s "checking for $ac_word... " >&6; }
11310: if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
11311: then :
11312: printf %s "(cached) " >&6
11313: else case e in #(
11314: e) if test -n "$ac_ct_OBJDUMP"; then
1.128 moko 11315: ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
11316: else
11317: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11318: for as_dir in $PATH
11319: do
11320: IFS=$as_save_IFS
1.237 moko 11321: case $as_dir in #(((
11322: '') as_dir=./ ;;
11323: */) ;;
11324: *) as_dir=$as_dir/ ;;
11325: esac
1.150 moko 11326: for ac_exec_ext in '' $ac_executable_extensions; do
1.237 moko 11327: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.128 moko 11328: ac_cv_prog_ac_ct_OBJDUMP="objdump"
1.237 moko 11329: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.128 moko 11330: break 2
11331: fi
11332: done
1.150 moko 11333: done
11334: IFS=$as_save_IFS
1.128 moko 11335:
1.237 moko 11336: fi ;;
11337: esac
1.128 moko 11338: fi
11339: ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
11340: if test -n "$ac_ct_OBJDUMP"; then
1.237 moko 11341: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
11342: printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
1.128 moko 11343: else
1.237 moko 11344: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11345: printf "%s\n" "no" >&6; }
1.128 moko 11346: fi
11347:
1.150 moko 11348: if test "x$ac_ct_OBJDUMP" = x; then
11349: OBJDUMP="false"
11350: else
11351: case $cross_compiling:$ac_tool_warned in
11352: yes:)
1.237 moko 11353: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11354: printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
1.150 moko 11355: ac_tool_warned=yes ;;
11356: esac
11357: OBJDUMP=$ac_ct_OBJDUMP
11358: fi
1.128 moko 11359: else
11360: OBJDUMP="$ac_cv_prog_OBJDUMP"
11361: fi
11362:
11363: ;;
11364: esac
11365:
11366: test -z "$AS" && AS=as
11367:
11368:
11369:
11370:
11371:
11372: test -z "$DLLTOOL" && DLLTOOL=dlltool
11373:
11374:
11375:
11376:
11377:
11378: test -z "$OBJDUMP" && OBJDUMP=objdump
11379:
11380:
11381:
11382:
1.237 moko 11383: # Check whether --enable-pic was given.
11384: if test ${enable_pic+y}
11385: then :
11386: enableval=$enable_pic; lt_p=${PACKAGE-default}
11387: case $enableval in
11388: yes|no) pic_mode=$enableval ;;
11389: *)
11390: pic_mode=default
11391: # Look at the argument we got. We use all the common list separators.
11392: lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11393: for lt_pkg in $enableval; do
11394: IFS=$lt_save_ifs
11395: if test "X$lt_pkg" = "X$lt_p"; then
11396: pic_mode=yes
11397: fi
11398: done
11399: IFS=$lt_save_ifs
11400: ;;
11401: esac
11402: else case e in #(
11403: e) # Check whether --with-pic was given.
11404: if test ${with_pic+y}
11405: then :
1.150 moko 11406: withval=$with_pic; lt_p=${PACKAGE-default}
1.237 moko 11407: case $withval in
11408: yes|no) pic_mode=$withval ;;
11409: *)
11410: pic_mode=default
11411: # Look at the argument we got. We use all the common list separators.
11412: lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11413: for lt_pkg in $withval; do
11414: IFS=$lt_save_ifs
11415: if test "X$lt_pkg" = "X$lt_p"; then
11416: pic_mode=yes
11417: fi
11418: done
11419: IFS=$lt_save_ifs
11420: ;;
11421: esac
11422: else case e in #(
11423: e) pic_mode=no ;;
11424: esac
1.150 moko 11425: fi
11426:
1.237 moko 11427: ;;
11428: esac
11429: fi
1.145 moko 11430:
11431:
11432:
11433:
11434:
11435:
11436:
1.128 moko 11437:
11438:
11439:
11440:
1.150 moko 11441: # Check whether --enable-shared was given.
1.237 moko 11442: if test ${enable_shared+y}
11443: then :
1.150 moko 11444: enableval=$enable_shared; p=${PACKAGE-default}
1.128 moko 11445: case $enableval in
11446: yes) enable_shared=yes ;;
11447: no) enable_shared=no ;;
11448: *)
11449: enable_shared=no
11450: # Look at the argument we got. We use all the common list separators.
1.237 moko 11451: lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
1.128 moko 11452: for pkg in $enableval; do
1.237 moko 11453: IFS=$lt_save_ifs
1.128 moko 11454: if test "X$pkg" = "X$p"; then
11455: enable_shared=yes
11456: fi
11457: done
1.237 moko 11458: IFS=$lt_save_ifs
1.128 moko 11459: ;;
11460: esac
1.237 moko 11461: else case e in #(
11462: e) enable_shared=yes ;;
11463: esac
1.150 moko 11464: fi
11465:
1.128 moko 11466:
11467:
11468:
11469:
11470:
11471:
11472:
11473:
1.150 moko 11474: # Check whether --enable-static was given.
1.237 moko 11475: if test ${enable_static+y}
11476: then :
1.150 moko 11477: enableval=$enable_static; p=${PACKAGE-default}
1.138 moko 11478: case $enableval in
11479: yes) enable_static=yes ;;
11480: no) enable_static=no ;;
11481: *)
11482: enable_static=no
11483: # Look at the argument we got. We use all the common list separators.
1.237 moko 11484: lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
1.138 moko 11485: for pkg in $enableval; do
1.237 moko 11486: IFS=$lt_save_ifs
1.138 moko 11487: if test "X$pkg" = "X$p"; then
11488: enable_static=yes
11489: fi
11490: done
1.237 moko 11491: IFS=$lt_save_ifs
1.138 moko 11492: ;;
11493: esac
1.237 moko 11494: else case e in #(
11495: e) enable_static=yes ;;
11496: esac
1.150 moko 11497: fi
11498:
1.138 moko 11499:
11500:
11501:
11502:
11503:
11504:
11505:
1.128 moko 11506:
11507:
1.150 moko 11508: # Check whether --enable-fast-install was given.
1.237 moko 11509: if test ${enable_fast_install+y}
11510: then :
1.150 moko 11511: enableval=$enable_fast_install; p=${PACKAGE-default}
1.128 moko 11512: case $enableval in
11513: yes) enable_fast_install=yes ;;
11514: no) enable_fast_install=no ;;
11515: *)
11516: enable_fast_install=no
11517: # Look at the argument we got. We use all the common list separators.
1.237 moko 11518: lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
1.128 moko 11519: for pkg in $enableval; do
1.237 moko 11520: IFS=$lt_save_ifs
1.128 moko 11521: if test "X$pkg" = "X$p"; then
11522: enable_fast_install=yes
11523: fi
11524: done
1.237 moko 11525: IFS=$lt_save_ifs
1.128 moko 11526: ;;
11527: esac
1.237 moko 11528: else case e in #(
11529: e) enable_fast_install=yes ;;
11530: esac
11531: fi
11532:
11533:
11534:
11535:
11536:
11537:
11538:
11539:
11540: shared_archive_member_spec=
11541: case $host,$enable_shared in
11542: power*-*-aix[5-9]*,yes)
11543: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
11544: printf %s "checking which variant of shared library versioning to provide... " >&6; }
11545: # Check whether --enable-aix-soname was given.
11546: if test ${enable_aix_soname+y}
11547: then :
11548: enableval=$enable_aix_soname; case $enableval in
11549: aix|svr4|both)
11550: ;;
11551: *)
11552: as_fn_error $? "Unknown argument to --enable-aix-soname" "$LINENO" 5
11553: ;;
11554: esac
11555: lt_cv_with_aix_soname=$enable_aix_soname
11556: else case e in #(
11557: e) # Check whether --with-aix-soname was given.
11558: if test ${with_aix_soname+y}
11559: then :
11560: withval=$with_aix_soname; case $withval in
11561: aix|svr4|both)
11562: ;;
11563: *)
11564: as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
11565: ;;
11566: esac
11567: lt_cv_with_aix_soname=$with_aix_soname
11568: else case e in #(
11569: e) if test ${lt_cv_with_aix_soname+y}
11570: then :
11571: printf %s "(cached) " >&6
11572: else case e in #(
11573: e) lt_cv_with_aix_soname=aix ;;
11574: esac
11575: fi
11576: ;;
11577: esac
11578: fi
11579:
11580: enable_aix_soname=$lt_cv_with_aix_soname ;;
11581: esac
1.150 moko 11582: fi
11583:
1.237 moko 11584: with_aix_soname=$enable_aix_soname
11585: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
11586: printf "%s\n" "$with_aix_soname" >&6; }
11587: if test aix != "$with_aix_soname"; then
11588: # For the AIX way of multilib, we name the shared archive member
11589: # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
11590: # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
11591: # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
11592: # the AIX toolchain works better with OBJECT_MODE set (default 32).
11593: if test 64 = "${OBJECT_MODE-32}"; then
11594: shared_archive_member_spec=shr_64
11595: else
11596: shared_archive_member_spec=shr
11597: fi
11598: fi
11599: ;;
11600: *)
11601: with_aix_soname=aix
11602: ;;
11603: esac
1.128 moko 11604:
11605:
11606:
11607:
11608:
11609:
11610:
11611:
11612:
11613:
11614: # This can be used to rebuild libtool when needed
1.237 moko 11615: LIBTOOL_DEPS=$ltmain
1.128 moko 11616:
11617: # Always use our own libtool.
11618: LIBTOOL='$(SHELL) $(top_builddir)/libtool'
11619:
11620:
11621:
11622:
11623:
11624:
11625:
11626:
11627:
11628:
11629:
11630:
11631:
11632:
11633:
11634:
11635:
11636:
11637:
11638:
11639:
11640:
11641:
11642:
11643:
11644:
11645:
11646:
11647:
11648:
11649: test -z "$LN_S" && LN_S="ln -s"
11650:
11651:
11652:
11653:
11654:
11655:
11656:
11657:
11658:
11659:
11660:
11661:
11662:
11663:
1.237 moko 11664: if test -n "${ZSH_VERSION+set}"; then
1.128 moko 11665: setopt NO_GLOB_SUBST
11666: fi
11667:
1.237 moko 11668: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
11669: printf %s "checking for objdir... " >&6; }
11670: if test ${lt_cv_objdir+y}
11671: then :
11672: printf %s "(cached) " >&6
11673: else case e in #(
11674: e) rm -f .libs 2>/dev/null
1.128 moko 11675: mkdir .libs 2>/dev/null
11676: if test -d .libs; then
11677: lt_cv_objdir=.libs
11678: else
11679: # MS-DOS does not allow filenames that begin with a dot.
11680: lt_cv_objdir=_libs
11681: fi
1.237 moko 11682: rmdir .libs 2>/dev/null ;;
11683: esac
1.128 moko 11684: fi
1.237 moko 11685: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
11686: printf "%s\n" "$lt_cv_objdir" >&6; }
1.128 moko 11687: objdir=$lt_cv_objdir
11688:
11689:
11690:
11691:
11692:
1.237 moko 11693: printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
1.128 moko 11694:
11695:
11696:
11697:
11698: case $host_os in
11699: aix3*)
11700: # AIX sometimes has problems with the GCC collect2 program. For some
11701: # reason, if we set the COLLECT_NAMES environment variable, the problems
11702: # vanish in a puff of smoke.
1.237 moko 11703: if test set != "${COLLECT_NAMES+set}"; then
1.128 moko 11704: COLLECT_NAMES=
11705: export COLLECT_NAMES
11706: fi
11707: ;;
11708: esac
11709:
11710: # Global variables:
11711: ofile=libtool
11712: can_build_shared=yes
11713:
1.237 moko 11714: # All known linkers require a '.a' archive for static linking (except MSVC and
11715: # ICC, which need '.lib').
1.128 moko 11716: libext=a
11717:
1.237 moko 11718: with_gnu_ld=$lt_cv_prog_gnu_ld
1.128 moko 11719:
1.237 moko 11720: old_CC=$CC
11721: old_CFLAGS=$CFLAGS
1.128 moko 11722:
11723: # Set sane defaults for various variables
11724: test -z "$CC" && CC=cc
11725: test -z "$LTCC" && LTCC=$CC
11726: test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
11727: test -z "$LD" && LD=ld
11728: test -z "$ac_objext" && ac_objext=o
11729:
1.237 moko 11730: func_cc_basename $compiler
11731: cc_basename=$func_cc_basename_result
1.128 moko 11732:
11733:
11734: # Only perform the check for file, if the check method requires it
11735: test -z "$MAGIC_CMD" && MAGIC_CMD=file
11736: case $deplibs_check_method in
11737: file_magic*)
11738: if test "$file_magic_cmd" = '$MAGIC_CMD'; then
1.237 moko 11739: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
11740: printf %s "checking for ${ac_tool_prefix}file... " >&6; }
11741: if test ${lt_cv_path_MAGIC_CMD+y}
11742: then :
11743: printf %s "(cached) " >&6
11744: else case e in #(
11745: e) case $MAGIC_CMD in
1.128 moko 11746: [\\/*] | ?:[\\/]*)
1.237 moko 11747: lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
1.128 moko 11748: ;;
11749: *)
1.237 moko 11750: lt_save_MAGIC_CMD=$MAGIC_CMD
11751: lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
1.128 moko 11752: ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11753: for ac_dir in $ac_dummy; do
1.237 moko 11754: IFS=$lt_save_ifs
1.128 moko 11755: test -z "$ac_dir" && ac_dir=.
1.237 moko 11756: if test -f "$ac_dir/${ac_tool_prefix}file"; then
11757: lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
1.128 moko 11758: if test -n "$file_magic_test_file"; then
11759: case $deplibs_check_method in
11760: "file_magic "*)
11761: file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
1.237 moko 11762: MAGIC_CMD=$lt_cv_path_MAGIC_CMD
1.128 moko 11763: if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11764: $EGREP "$file_magic_regex" > /dev/null; then
11765: :
11766: else
11767: cat <<_LT_EOF 1>&2
11768:
11769: *** Warning: the command libtool uses to detect shared libraries,
11770: *** $file_magic_cmd, produces output that libtool cannot recognize.
11771: *** The result is that libtool may fail to recognize shared libraries
11772: *** as such. This will affect the creation of libtool libraries that
11773: *** depend on shared libraries, but programs linked with such libtool
11774: *** libraries will work regardless of this problem. Nevertheless, you
11775: *** may want to report the problem to your system manager and/or to
11776: *** bug-libtool@gnu.org
11777:
11778: _LT_EOF
11779: fi ;;
11780: esac
11781: fi
11782: break
11783: fi
11784: done
1.237 moko 11785: IFS=$lt_save_ifs
11786: MAGIC_CMD=$lt_save_MAGIC_CMD
1.128 moko 11787: ;;
1.237 moko 11788: esac ;;
1.128 moko 11789: esac
11790: fi
11791:
1.237 moko 11792: MAGIC_CMD=$lt_cv_path_MAGIC_CMD
1.128 moko 11793: if test -n "$MAGIC_CMD"; then
1.237 moko 11794: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
11795: printf "%s\n" "$MAGIC_CMD" >&6; }
1.128 moko 11796: else
1.237 moko 11797: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11798: printf "%s\n" "no" >&6; }
1.128 moko 11799: fi
11800:
11801:
11802:
11803:
11804:
11805: if test -z "$lt_cv_path_MAGIC_CMD"; then
11806: if test -n "$ac_tool_prefix"; then
1.237 moko 11807: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
11808: printf %s "checking for file... " >&6; }
11809: if test ${lt_cv_path_MAGIC_CMD+y}
11810: then :
11811: printf %s "(cached) " >&6
11812: else case e in #(
11813: e) case $MAGIC_CMD in
1.128 moko 11814: [\\/*] | ?:[\\/]*)
1.237 moko 11815: lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
1.128 moko 11816: ;;
11817: *)
1.237 moko 11818: lt_save_MAGIC_CMD=$MAGIC_CMD
11819: lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
1.128 moko 11820: ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11821: for ac_dir in $ac_dummy; do
1.237 moko 11822: IFS=$lt_save_ifs
1.128 moko 11823: test -z "$ac_dir" && ac_dir=.
1.237 moko 11824: if test -f "$ac_dir/file"; then
11825: lt_cv_path_MAGIC_CMD=$ac_dir/"file"
1.128 moko 11826: if test -n "$file_magic_test_file"; then
11827: case $deplibs_check_method in
11828: "file_magic "*)
11829: file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
1.237 moko 11830: MAGIC_CMD=$lt_cv_path_MAGIC_CMD
1.128 moko 11831: if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11832: $EGREP "$file_magic_regex" > /dev/null; then
11833: :
11834: else
11835: cat <<_LT_EOF 1>&2
11836:
11837: *** Warning: the command libtool uses to detect shared libraries,
11838: *** $file_magic_cmd, produces output that libtool cannot recognize.
11839: *** The result is that libtool may fail to recognize shared libraries
11840: *** as such. This will affect the creation of libtool libraries that
11841: *** depend on shared libraries, but programs linked with such libtool
11842: *** libraries will work regardless of this problem. Nevertheless, you
11843: *** may want to report the problem to your system manager and/or to
11844: *** bug-libtool@gnu.org
11845:
11846: _LT_EOF
11847: fi ;;
11848: esac
11849: fi
11850: break
11851: fi
11852: done
1.237 moko 11853: IFS=$lt_save_ifs
11854: MAGIC_CMD=$lt_save_MAGIC_CMD
1.128 moko 11855: ;;
1.237 moko 11856: esac ;;
1.128 moko 11857: esac
11858: fi
11859:
1.237 moko 11860: MAGIC_CMD=$lt_cv_path_MAGIC_CMD
1.128 moko 11861: if test -n "$MAGIC_CMD"; then
1.237 moko 11862: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
11863: printf "%s\n" "$MAGIC_CMD" >&6; }
1.128 moko 11864: else
1.237 moko 11865: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11866: printf "%s\n" "no" >&6; }
1.128 moko 11867: fi
11868:
11869:
11870: else
11871: MAGIC_CMD=:
11872: fi
11873: fi
11874:
11875: fi
11876: ;;
11877: esac
11878:
11879: # Use C for the default configuration in the libtool script
11880:
1.237 moko 11881: lt_save_CC=$CC
1.128 moko 11882: ac_ext=c
11883: ac_cpp='$CPP $CPPFLAGS'
11884: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11885: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11886: ac_compiler_gnu=$ac_cv_c_compiler_gnu
11887:
11888:
11889: # Source file extension for C test sources.
11890: ac_ext=c
11891:
11892: # Object file extension for compiled C test sources.
11893: objext=o
11894: objext=$objext
11895:
11896: # Code to be used in simple compile tests
11897: lt_simple_compile_test_code="int some_variable = 0;"
11898:
11899: # Code to be used in simple link tests
1.237 moko 11900: lt_simple_link_test_code='int main(void){return(0);}'
1.128 moko 11901:
11902:
11903:
11904:
11905:
11906:
11907:
11908: # If no C compiler was specified, use CC.
11909: LTCC=${LTCC-"$CC"}
11910:
11911: # If no C compiler flags were specified, use CFLAGS.
11912: LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11913:
11914: # Allow CC to be a program name with arguments.
11915: compiler=$CC
11916:
11917: # Save the default compiler, since it gets overwritten when the other
11918: # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
11919: compiler_DEFAULT=$CC
11920:
11921: # save warnings/boilerplate of simple test code
11922: ac_outfile=conftest.$ac_objext
11923: echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11924: eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11925: _lt_compiler_boilerplate=`cat conftest.err`
11926: $RM conftest*
11927:
11928: ac_outfile=conftest.$ac_objext
11929: echo "$lt_simple_link_test_code" >conftest.$ac_ext
11930: eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11931: _lt_linker_boilerplate=`cat conftest.err`
11932: $RM -r conftest*
11933:
11934:
11935: ## CAVEAT EMPTOR:
11936: ## There is no encapsulation within the following macros, do not change
11937: ## the running order or otherwise move them around unless you know exactly
11938: ## what you are doing...
11939: if test -n "$compiler"; then
11940:
11941: lt_prog_compiler_no_builtin_flag=
11942:
1.237 moko 11943: if test yes = "$GCC"; then
1.128 moko 11944: case $cc_basename in
11945: nvcc*)
11946: lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
11947: *)
11948: lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
11949: esac
11950:
1.237 moko 11951: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11952: printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
11953: if test ${lt_cv_prog_compiler_rtti_exceptions+y}
11954: then :
11955: printf %s "(cached) " >&6
11956: else case e in #(
11957: e) lt_cv_prog_compiler_rtti_exceptions=no
1.128 moko 11958: ac_outfile=conftest.$ac_objext
11959: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1.237 moko 11960: lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
1.128 moko 11961: # Insert the option either (1) after the last *FLAGS variable, or
11962: # (2) before a word containing "conftest.", or (3) at the end.
11963: # Note that $ac_compile itself does not contain backslashes and begins
11964: # with a dollar sign (not a hyphen), so the echo should work correctly.
11965: # The option is referenced via a variable to avoid confusing sed.
11966: lt_compile=`echo "$ac_compile" | $SED \
11967: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11968: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11969: -e 's:$: $lt_compiler_flag:'`
11970: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11971: (eval "$lt_compile" 2>conftest.err)
11972: ac_status=$?
11973: cat conftest.err >&5
11974: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11975: if (exit $ac_status) && test -s "$ac_outfile"; then
11976: # The compiler can only warn and ignore the option if not recognized
11977: # So say no if there are warnings other than the usual output.
11978: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11979: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11980: if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11981: lt_cv_prog_compiler_rtti_exceptions=yes
11982: fi
11983: fi
11984: $RM conftest*
1.237 moko 11985: ;;
11986: esac
1.128 moko 11987: fi
1.237 moko 11988: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11989: printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
1.128 moko 11990:
1.237 moko 11991: if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
1.128 moko 11992: lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
11993: else
11994: :
11995: fi
11996:
11997: fi
11998:
11999:
12000:
12001:
12002:
12003:
12004: lt_prog_compiler_wl=
12005: lt_prog_compiler_pic=
12006: lt_prog_compiler_static=
12007:
12008:
1.237 moko 12009: if test yes = "$GCC"; then
1.128 moko 12010: lt_prog_compiler_wl='-Wl,'
12011: lt_prog_compiler_static='-static'
12012:
12013: case $host_os in
12014: aix*)
12015: # All AIX code is PIC.
1.237 moko 12016: if test ia64 = "$host_cpu"; then
1.128 moko 12017: # AIX 5 now supports IA64 processor
12018: lt_prog_compiler_static='-Bstatic'
12019: fi
1.237 moko 12020: lt_prog_compiler_pic='-fPIC'
1.128 moko 12021: ;;
12022:
12023: amigaos*)
12024: case $host_cpu in
12025: powerpc)
12026: # see comment about AmigaOS4 .so support
12027: lt_prog_compiler_pic='-fPIC'
12028: ;;
12029: m68k)
12030: # FIXME: we need at least 68020 code to build shared libraries, but
1.237 moko 12031: # adding the '-m68020' flag to GCC prevents building anything better,
12032: # like '-m68040'.
1.128 moko 12033: lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
12034: ;;
12035: esac
12036: ;;
12037:
12038: beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12039: # PIC is the default for these OSes.
12040: ;;
12041:
1.237 moko 12042: mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
1.128 moko 12043: # This hack is so that the source file can tell whether it is being
12044: # built for inclusion in a dll (and should export symbols for example).
12045: # Although the cygwin gcc ignores -fPIC, still need this for old-style
12046: # (--disable-auto-import) libraries
12047: lt_prog_compiler_pic='-DDLL_EXPORT'
1.237 moko 12048: case $host_os in
12049: os2*)
12050: lt_prog_compiler_static='$wl-static'
12051: ;;
12052: esac
1.128 moko 12053: ;;
12054:
12055: darwin* | rhapsody*)
12056: # PIC is the default on this platform
12057: # Common symbols not allowed in MH_DYLIB files
12058: lt_prog_compiler_pic='-fno-common'
12059: ;;
12060:
12061: haiku*)
12062: # PIC is the default for Haiku.
12063: # The "-static" flag exists, but is broken.
12064: lt_prog_compiler_static=
12065: ;;
12066:
12067: hpux*)
12068: # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12069: # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
12070: # sets the default TLS model and affects inlining.
12071: case $host_cpu in
12072: hppa*64*)
12073: # +Z the default
12074: ;;
12075: *)
12076: lt_prog_compiler_pic='-fPIC'
12077: ;;
12078: esac
12079: ;;
12080:
12081: interix[3-9]*)
12082: # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12083: # Instead, we relocate shared libraries at runtime.
12084: ;;
12085:
12086: msdosdjgpp*)
12087: # Just because we use GCC doesn't mean we suddenly get shared libraries
12088: # on systems that don't support them.
12089: lt_prog_compiler_can_build_shared=no
12090: enable_shared=no
12091: ;;
12092:
12093: *nto* | *qnx*)
12094: # QNX uses GNU C++, but need to define -shared option too, otherwise
12095: # it will coredump.
12096: lt_prog_compiler_pic='-fPIC -shared'
12097: ;;
12098:
12099: sysv4*MP*)
12100: if test -d /usr/nec; then
12101: lt_prog_compiler_pic=-Kconform_pic
12102: fi
12103: ;;
12104:
12105: *)
12106: lt_prog_compiler_pic='-fPIC'
12107: ;;
12108: esac
12109:
12110: case $cc_basename in
12111: nvcc*) # Cuda Compiler Driver 2.2
12112: lt_prog_compiler_wl='-Xlinker '
12113: if test -n "$lt_prog_compiler_pic"; then
12114: lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
12115: fi
12116: ;;
12117: esac
12118: else
12119: # PORTME Check for flag to pass linker flags through the system compiler.
12120: case $host_os in
12121: aix*)
12122: lt_prog_compiler_wl='-Wl,'
1.237 moko 12123: if test ia64 = "$host_cpu"; then
1.128 moko 12124: # AIX 5 now supports IA64 processor
12125: lt_prog_compiler_static='-Bstatic'
12126: else
12127: lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
12128: fi
12129: ;;
12130:
1.237 moko 12131: darwin* | rhapsody*)
12132: # PIC is the default on this platform
12133: # Common symbols not allowed in MH_DYLIB files
12134: lt_prog_compiler_pic='-fno-common'
12135: case $cc_basename in
12136: nagfor*)
12137: # NAG Fortran compiler
12138: lt_prog_compiler_wl='-Wl,-Wl,,'
12139: lt_prog_compiler_pic='-PIC'
12140: lt_prog_compiler_static='-Bstatic'
12141: ;;
12142: esac
12143: ;;
12144:
12145: mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
1.128 moko 12146: # This hack is so that the source file can tell whether it is being
12147: # built for inclusion in a dll (and should export symbols for example).
12148: lt_prog_compiler_pic='-DDLL_EXPORT'
1.237 moko 12149: case $host_os in
12150: os2*)
12151: lt_prog_compiler_static='$wl-static'
12152: ;;
12153: esac
1.128 moko 12154: ;;
12155:
12156: hpux9* | hpux10* | hpux11*)
12157: lt_prog_compiler_wl='-Wl,'
12158: # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12159: # not for PA HP-UX.
12160: case $host_cpu in
12161: hppa*64*|ia64*)
12162: # +Z the default
12163: ;;
12164: *)
12165: lt_prog_compiler_pic='+Z'
12166: ;;
12167: esac
12168: # Is there a better lt_prog_compiler_static that works with the bundled CC?
1.237 moko 12169: lt_prog_compiler_static='$wl-a ${wl}archive'
1.128 moko 12170: ;;
12171:
12172: irix5* | irix6* | nonstopux*)
12173: lt_prog_compiler_wl='-Wl,'
12174: # PIC (with -KPIC) is the default.
12175: lt_prog_compiler_static='-non_shared'
12176: ;;
12177:
1.237 moko 12178: linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
1.128 moko 12179: case $cc_basename in
1.237 moko 12180: # old Intel for x86_64, which still supported -KPIC.
1.128 moko 12181: ecc*)
12182: lt_prog_compiler_wl='-Wl,'
12183: lt_prog_compiler_pic='-KPIC'
12184: lt_prog_compiler_static='-static'
12185: ;;
1.237 moko 12186: *flang* | ftn | f18* | f95*)
12187: # Flang compiler.
12188: lt_prog_compiler_wl='-Wl,'
12189: lt_prog_compiler_pic='-fPIC'
12190: lt_prog_compiler_static='-static'
12191: ;;
12192: # flang / f18. f95 an alias for gfortran or flang on Debian
12193: flang* | f18* | f95*)
12194: lt_prog_compiler_wl='-Wl,'
12195: lt_prog_compiler_pic='-fPIC'
12196: lt_prog_compiler_static='-static'
12197: ;;
1.128 moko 12198: # icc used to be incompatible with GCC.
12199: # ICC 10 doesn't accept -KPIC any more.
12200: icc* | ifort*)
12201: lt_prog_compiler_wl='-Wl,'
12202: lt_prog_compiler_pic='-fPIC'
12203: lt_prog_compiler_static='-static'
12204: ;;
12205: # Lahey Fortran 8.1.
12206: lf95*)
12207: lt_prog_compiler_wl='-Wl,'
12208: lt_prog_compiler_pic='--shared'
12209: lt_prog_compiler_static='--static'
12210: ;;
12211: nagfor*)
12212: # NAG Fortran compiler
12213: lt_prog_compiler_wl='-Wl,-Wl,,'
12214: lt_prog_compiler_pic='-PIC'
12215: lt_prog_compiler_static='-Bstatic'
12216: ;;
1.237 moko 12217: tcc*)
12218: # Fabrice Bellard et al's Tiny C Compiler
12219: lt_prog_compiler_wl='-Wl,'
12220: lt_prog_compiler_pic='-fPIC'
12221: lt_prog_compiler_static='-static'
12222: ;;
1.128 moko 12223: pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
12224: # Portland Group compilers (*not* the Pentium gcc compiler,
12225: # which looks to be a dead project)
12226: lt_prog_compiler_wl='-Wl,'
12227: lt_prog_compiler_pic='-fpic'
12228: lt_prog_compiler_static='-Bstatic'
12229: ;;
12230: ccc*)
12231: lt_prog_compiler_wl='-Wl,'
12232: # All Alpha code is PIC.
12233: lt_prog_compiler_static='-non_shared'
12234: ;;
12235: xl* | bgxl* | bgf* | mpixl*)
12236: # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
12237: lt_prog_compiler_wl='-Wl,'
12238: lt_prog_compiler_pic='-qpic'
12239: lt_prog_compiler_static='-qstaticlink'
12240: ;;
12241: *)
1.237 moko 12242: case `$CC -V 2>&1 | $SED 5q` in
1.128 moko 12243: *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
12244: # Sun Fortran 8.3 passes all unrecognized flags to the linker
12245: lt_prog_compiler_pic='-KPIC'
12246: lt_prog_compiler_static='-Bstatic'
12247: lt_prog_compiler_wl=''
12248: ;;
12249: *Sun\ F* | *Sun*Fortran*)
12250: lt_prog_compiler_pic='-KPIC'
12251: lt_prog_compiler_static='-Bstatic'
12252: lt_prog_compiler_wl='-Qoption ld '
12253: ;;
12254: *Sun\ C*)
12255: # Sun C 5.9
12256: lt_prog_compiler_pic='-KPIC'
12257: lt_prog_compiler_static='-Bstatic'
12258: lt_prog_compiler_wl='-Wl,'
12259: ;;
12260: *Intel*\ [CF]*Compiler*)
12261: lt_prog_compiler_wl='-Wl,'
12262: lt_prog_compiler_pic='-fPIC'
12263: lt_prog_compiler_static='-static'
12264: ;;
12265: *Portland\ Group*)
12266: lt_prog_compiler_wl='-Wl,'
12267: lt_prog_compiler_pic='-fpic'
12268: lt_prog_compiler_static='-Bstatic'
12269: ;;
12270: esac
12271: ;;
12272: esac
12273: ;;
12274:
12275: newsos6)
12276: lt_prog_compiler_pic='-KPIC'
12277: lt_prog_compiler_static='-Bstatic'
12278: ;;
12279:
1.237 moko 12280: *-mlibc)
12281: lt_prog_compiler_wl='-Wl,'
12282: lt_prog_compiler_pic='-fPIC'
12283: lt_prog_compiler_static='-static'
12284: ;;
12285:
1.128 moko 12286: *nto* | *qnx*)
12287: # QNX uses GNU C++, but need to define -shared option too, otherwise
12288: # it will coredump.
12289: lt_prog_compiler_pic='-fPIC -shared'
12290: ;;
12291:
12292: osf3* | osf4* | osf5*)
12293: lt_prog_compiler_wl='-Wl,'
12294: # All OSF/1 code is PIC.
12295: lt_prog_compiler_static='-non_shared'
12296: ;;
12297:
12298: rdos*)
12299: lt_prog_compiler_static='-non_shared'
12300: ;;
12301:
1.237 moko 12302: serenity*)
12303: ;;
12304:
1.128 moko 12305: solaris*)
12306: lt_prog_compiler_pic='-KPIC'
12307: lt_prog_compiler_static='-Bstatic'
12308: case $cc_basename in
12309: f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
12310: lt_prog_compiler_wl='-Qoption ld ';;
12311: *)
12312: lt_prog_compiler_wl='-Wl,';;
12313: esac
12314: ;;
12315:
12316: sunos4*)
12317: lt_prog_compiler_wl='-Qoption ld '
12318: lt_prog_compiler_pic='-PIC'
12319: lt_prog_compiler_static='-Bstatic'
12320: ;;
12321:
12322: sysv4 | sysv4.2uw2* | sysv4.3*)
12323: lt_prog_compiler_wl='-Wl,'
12324: lt_prog_compiler_pic='-KPIC'
12325: lt_prog_compiler_static='-Bstatic'
12326: ;;
12327:
12328: sysv4*MP*)
1.237 moko 12329: if test -d /usr/nec; then
1.128 moko 12330: lt_prog_compiler_pic='-Kconform_pic'
12331: lt_prog_compiler_static='-Bstatic'
12332: fi
12333: ;;
12334:
12335: sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12336: lt_prog_compiler_wl='-Wl,'
12337: lt_prog_compiler_pic='-KPIC'
12338: lt_prog_compiler_static='-Bstatic'
12339: ;;
12340:
12341: unicos*)
12342: lt_prog_compiler_wl='-Wl,'
12343: lt_prog_compiler_can_build_shared=no
12344: ;;
12345:
12346: uts4*)
12347: lt_prog_compiler_pic='-pic'
12348: lt_prog_compiler_static='-Bstatic'
12349: ;;
12350:
12351: *)
12352: lt_prog_compiler_can_build_shared=no
12353: ;;
12354: esac
12355: fi
12356:
12357: case $host_os in
1.237 moko 12358: # For platforms that do not support PIC, -DPIC is meaningless:
1.128 moko 12359: *djgpp*)
12360: lt_prog_compiler_pic=
12361: ;;
12362: *)
12363: lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
12364: ;;
12365: esac
12366:
1.237 moko 12367: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12368: printf %s "checking for $compiler option to produce PIC... " >&6; }
12369: if test ${lt_cv_prog_compiler_pic+y}
12370: then :
12371: printf %s "(cached) " >&6
12372: else case e in #(
12373: e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;;
12374: esac
1.128 moko 12375: fi
1.237 moko 12376: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
12377: printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
1.128 moko 12378: lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
12379:
12380: #
12381: # Check to make sure the PIC flag actually works.
12382: #
12383: if test -n "$lt_prog_compiler_pic"; then
1.237 moko 12384: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
12385: printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
12386: if test ${lt_cv_prog_compiler_pic_works+y}
12387: then :
12388: printf %s "(cached) " >&6
12389: else case e in #(
12390: e) lt_cv_prog_compiler_pic_works=no
1.128 moko 12391: ac_outfile=conftest.$ac_objext
12392: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1.237 moko 12393: lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
1.128 moko 12394: # Insert the option either (1) after the last *FLAGS variable, or
12395: # (2) before a word containing "conftest.", or (3) at the end.
12396: # Note that $ac_compile itself does not contain backslashes and begins
12397: # with a dollar sign (not a hyphen), so the echo should work correctly.
12398: # The option is referenced via a variable to avoid confusing sed.
12399: lt_compile=`echo "$ac_compile" | $SED \
12400: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12401: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12402: -e 's:$: $lt_compiler_flag:'`
12403: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12404: (eval "$lt_compile" 2>conftest.err)
12405: ac_status=$?
12406: cat conftest.err >&5
12407: echo "$as_me:$LINENO: \$? = $ac_status" >&5
12408: if (exit $ac_status) && test -s "$ac_outfile"; then
12409: # The compiler can only warn and ignore the option if not recognized
12410: # So say no if there are warnings other than the usual output.
12411: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
12412: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12413: if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12414: lt_cv_prog_compiler_pic_works=yes
12415: fi
12416: fi
12417: $RM conftest*
1.237 moko 12418: ;;
12419: esac
1.128 moko 12420: fi
1.237 moko 12421: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
12422: printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
1.128 moko 12423:
1.237 moko 12424: if test yes = "$lt_cv_prog_compiler_pic_works"; then
1.128 moko 12425: case $lt_prog_compiler_pic in
12426: "" | " "*) ;;
12427: *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
12428: esac
12429: else
12430: lt_prog_compiler_pic=
12431: lt_prog_compiler_can_build_shared=no
12432: fi
12433:
12434: fi
12435:
12436:
12437:
12438:
12439:
12440:
12441:
12442:
12443:
12444:
12445:
12446: #
12447: # Check to make sure the static flag actually works.
12448: #
12449: wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
1.237 moko 12450: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12451: printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12452: if test ${lt_cv_prog_compiler_static_works+y}
12453: then :
12454: printf %s "(cached) " >&6
12455: else case e in #(
12456: e) lt_cv_prog_compiler_static_works=no
12457: save_LDFLAGS=$LDFLAGS
1.128 moko 12458: LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12459: echo "$lt_simple_link_test_code" > conftest.$ac_ext
12460: if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12461: # The linker can only warn and ignore the option if not recognized
12462: # So say no if there are warnings
12463: if test -s conftest.err; then
12464: # Append any errors to the config.log.
12465: cat conftest.err 1>&5
12466: $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12467: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12468: if diff conftest.exp conftest.er2 >/dev/null; then
12469: lt_cv_prog_compiler_static_works=yes
12470: fi
12471: else
12472: lt_cv_prog_compiler_static_works=yes
12473: fi
12474: fi
12475: $RM -r conftest*
1.237 moko 12476: LDFLAGS=$save_LDFLAGS
12477: ;;
12478: esac
1.128 moko 12479: fi
1.237 moko 12480: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
12481: printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
1.128 moko 12482:
1.237 moko 12483: if test yes = "$lt_cv_prog_compiler_static_works"; then
1.128 moko 12484: :
12485: else
12486: lt_prog_compiler_static=
12487: fi
12488:
12489:
12490:
12491:
12492:
12493:
12494:
1.237 moko 12495: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12496: printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12497: if test ${lt_cv_prog_compiler_c_o+y}
12498: then :
12499: printf %s "(cached) " >&6
12500: else case e in #(
12501: e) lt_cv_prog_compiler_c_o=no
1.128 moko 12502: $RM -r conftest 2>/dev/null
12503: mkdir conftest
12504: cd conftest
12505: mkdir out
12506: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12507:
12508: lt_compiler_flag="-o out/conftest2.$ac_objext"
12509: # Insert the option either (1) after the last *FLAGS variable, or
12510: # (2) before a word containing "conftest.", or (3) at the end.
12511: # Note that $ac_compile itself does not contain backslashes and begins
12512: # with a dollar sign (not a hyphen), so the echo should work correctly.
12513: lt_compile=`echo "$ac_compile" | $SED \
12514: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12515: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12516: -e 's:$: $lt_compiler_flag:'`
12517: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12518: (eval "$lt_compile" 2>out/conftest.err)
12519: ac_status=$?
12520: cat out/conftest.err >&5
12521: echo "$as_me:$LINENO: \$? = $ac_status" >&5
12522: if (exit $ac_status) && test -s out/conftest2.$ac_objext
12523: then
12524: # The compiler can only warn and ignore the option if not recognized
12525: # So say no if there are warnings
12526: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12527: $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12528: if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12529: lt_cv_prog_compiler_c_o=yes
12530: fi
12531: fi
12532: chmod u+w . 2>&5
12533: $RM conftest*
12534: # SGI C++ compiler will create directory out/ii_files/ for
12535: # template instantiation
12536: test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12537: $RM out/* && rmdir out
12538: cd ..
12539: $RM -r conftest
12540: $RM conftest*
1.237 moko 12541: ;;
12542: esac
1.128 moko 12543: fi
1.237 moko 12544: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
12545: printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
1.128 moko 12546:
12547:
12548:
12549:
12550:
12551:
1.237 moko 12552: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12553: printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12554: if test ${lt_cv_prog_compiler_c_o+y}
12555: then :
12556: printf %s "(cached) " >&6
12557: else case e in #(
12558: e) lt_cv_prog_compiler_c_o=no
1.128 moko 12559: $RM -r conftest 2>/dev/null
12560: mkdir conftest
12561: cd conftest
12562: mkdir out
12563: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12564:
12565: lt_compiler_flag="-o out/conftest2.$ac_objext"
12566: # Insert the option either (1) after the last *FLAGS variable, or
12567: # (2) before a word containing "conftest.", or (3) at the end.
12568: # Note that $ac_compile itself does not contain backslashes and begins
12569: # with a dollar sign (not a hyphen), so the echo should work correctly.
12570: lt_compile=`echo "$ac_compile" | $SED \
12571: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12572: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12573: -e 's:$: $lt_compiler_flag:'`
12574: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12575: (eval "$lt_compile" 2>out/conftest.err)
12576: ac_status=$?
12577: cat out/conftest.err >&5
12578: echo "$as_me:$LINENO: \$? = $ac_status" >&5
12579: if (exit $ac_status) && test -s out/conftest2.$ac_objext
12580: then
12581: # The compiler can only warn and ignore the option if not recognized
12582: # So say no if there are warnings
12583: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12584: $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12585: if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12586: lt_cv_prog_compiler_c_o=yes
12587: fi
12588: fi
12589: chmod u+w . 2>&5
12590: $RM conftest*
12591: # SGI C++ compiler will create directory out/ii_files/ for
12592: # template instantiation
12593: test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12594: $RM out/* && rmdir out
12595: cd ..
12596: $RM -r conftest
12597: $RM conftest*
1.237 moko 12598: ;;
12599: esac
1.128 moko 12600: fi
1.237 moko 12601: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
12602: printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
1.128 moko 12603:
12604:
12605:
12606:
1.237 moko 12607: hard_links=nottested
12608: if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
1.128 moko 12609: # do not overwrite the value of need_locks provided by the user
1.237 moko 12610: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12611: printf %s "checking if we can lock with hard links... " >&6; }
1.128 moko 12612: hard_links=yes
12613: $RM conftest*
12614: ln conftest.a conftest.b 2>/dev/null && hard_links=no
12615: touch conftest.a
12616: ln conftest.a conftest.b 2>&5 || hard_links=no
12617: ln conftest.a conftest.b 2>/dev/null && hard_links=no
1.237 moko 12618: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12619: printf "%s\n" "$hard_links" >&6; }
12620: if test no = "$hard_links"; then
12621: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
12622: printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
1.128 moko 12623: need_locks=warn
12624: fi
12625: else
12626: need_locks=no
12627: fi
12628:
12629:
12630:
12631:
12632:
12633:
1.237 moko 12634: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12635: printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
1.128 moko 12636:
12637: runpath_var=
12638: allow_undefined_flag=
12639: always_export_symbols=no
12640: archive_cmds=
12641: archive_expsym_cmds=
12642: compiler_needs_object=no
12643: enable_shared_with_static_runtimes=no
12644: export_dynamic_flag_spec=
12645: export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12646: hardcode_automatic=no
12647: hardcode_direct=no
12648: hardcode_direct_absolute=no
12649: hardcode_libdir_flag_spec=
12650: hardcode_libdir_separator=
12651: hardcode_minus_L=no
12652: hardcode_shlibpath_var=unsupported
12653: inherit_rpath=no
12654: link_all_deplibs=unknown
12655: module_cmds=
12656: module_expsym_cmds=
12657: old_archive_from_new_cmds=
12658: old_archive_from_expsyms_cmds=
12659: thread_safe_flag_spec=
12660: whole_archive_flag_spec=
12661: # include_expsyms should be a list of space-separated symbols to be *always*
12662: # included in the symbol list
12663: include_expsyms=
12664: # exclude_expsyms can be an extended regexp of symbols to exclude
1.237 moko 12665: # it will be wrapped by ' (' and ')$', so one must not match beginning or
12666: # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
12667: # as well as any symbol that contains 'd'.
1.128 moko 12668: exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12669: # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12670: # platforms (ab)use it in PIC code, but their linkers get confused if
12671: # the symbol is explicitly referenced. Since portable code cannot
12672: # rely on this symbol name, it's probably fine to never include it in
12673: # preloaded symbol tables.
12674: # Exclude shared library initialization/finalization symbols.
12675: extract_expsyms_cmds=
12676:
12677: case $host_os in
1.237 moko 12678: cygwin* | mingw* | windows* | pw32* | cegcc*)
12679: # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
1.128 moko 12680: # When not using gcc, we currently assume that we are using
1.237 moko 12681: # Microsoft Visual C++ or Intel C++ Compiler.
12682: if test yes != "$GCC"; then
1.128 moko 12683: with_gnu_ld=no
12684: fi
12685: ;;
12686: interix*)
1.237 moko 12687: # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
1.128 moko 12688: with_gnu_ld=yes
12689: ;;
1.237 moko 12690: linux* | k*bsd*-gnu | gnu*)
12691: link_all_deplibs=no
1.128 moko 12692: ;;
12693: esac
12694:
12695: ld_shlibs=yes
12696:
12697: # On some targets, GNU ld is compatible enough with the native linker
12698: # that we're better off using the native interface for both.
12699: lt_use_gnu_ld_interface=no
1.237 moko 12700: if test yes = "$with_gnu_ld"; then
1.128 moko 12701: case $host_os in
12702: aix*)
12703: # The AIX port of GNU ld has always aspired to compatibility
12704: # with the native linker. However, as the warning in the GNU ld
12705: # block says, versions before 2.19.5* couldn't really create working
12706: # shared libraries, regardless of the interface used.
12707: case `$LD -v 2>&1` in
12708: *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
12709: *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
12710: *\ \(GNU\ Binutils\)\ [3-9]*) ;;
12711: *)
12712: lt_use_gnu_ld_interface=yes
12713: ;;
12714: esac
12715: ;;
12716: *)
12717: lt_use_gnu_ld_interface=yes
12718: ;;
12719: esac
12720: fi
12721:
1.237 moko 12722: if test yes = "$lt_use_gnu_ld_interface"; then
1.128 moko 12723: # If archive_cmds runs LD, not CC, wlarc should be empty
1.237 moko 12724: wlarc='$wl'
1.128 moko 12725:
12726: # Set some defaults for GNU ld with shared library support. These
12727: # are reset later if shared libraries are not supported. Putting them
12728: # here allows them to be overridden if necessary.
12729: runpath_var=LD_RUN_PATH
1.237 moko 12730: hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12731: export_dynamic_flag_spec='$wl--export-dynamic'
1.128 moko 12732: # ancient GNU ld didn't support --whole-archive et. al.
12733: if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
1.237 moko 12734: whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
1.128 moko 12735: else
12736: whole_archive_flag_spec=
12737: fi
12738: supports_anon_versioning=no
1.237 moko 12739: case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
1.128 moko 12740: *GNU\ gold*) supports_anon_versioning=yes ;;
12741: *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12742: *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12743: *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12744: *\ 2.11.*) ;; # other 2.11 versions
12745: *) supports_anon_versioning=yes ;;
12746: esac
12747:
12748: # See if GNU ld supports shared libraries.
12749: case $host_os in
12750: aix[3-9]*)
12751: # On AIX/PPC, the GNU linker is very broken
1.237 moko 12752: if test ia64 != "$host_cpu"; then
1.128 moko 12753: ld_shlibs=no
12754: cat <<_LT_EOF 1>&2
12755:
12756: *** Warning: the GNU linker, at least up to release 2.19, is reported
12757: *** to be unable to reliably create shared libraries on AIX.
12758: *** Therefore, libtool is disabling shared libraries support. If you
12759: *** really care for shared libraries, you may want to install binutils
12760: *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
12761: *** You will then need to restart the configuration process.
12762:
12763: _LT_EOF
12764: fi
12765: ;;
12766:
12767: amigaos*)
12768: case $host_cpu in
12769: powerpc)
12770: # see comment about AmigaOS4 .so support
1.237 moko 12771: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
1.128 moko 12772: archive_expsym_cmds=''
12773: ;;
12774: m68k)
12775: 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)'
12776: hardcode_libdir_flag_spec='-L$libdir'
12777: hardcode_minus_L=yes
12778: ;;
12779: esac
12780: ;;
12781:
12782: beos*)
12783: if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12784: allow_undefined_flag=unsupported
12785: # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12786: # support --undefined. This deserves some investigation. FIXME
1.237 moko 12787: archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
1.128 moko 12788: else
12789: ld_shlibs=no
12790: fi
12791: ;;
12792:
1.237 moko 12793: cygwin* | mingw* | windows* | pw32* | cegcc*)
1.128 moko 12794: # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
12795: # as there is no search path for DLLs.
12796: hardcode_libdir_flag_spec='-L$libdir'
1.237 moko 12797: export_dynamic_flag_spec='$wl--export-all-symbols'
1.128 moko 12798: allow_undefined_flag=unsupported
12799: always_export_symbols=no
12800: enable_shared_with_static_runtimes=yes
12801: 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'
12802: exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
1.237 moko 12803: file_list_spec='@'
1.128 moko 12804:
12805: if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
1.237 moko 12806: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12807: # If the export-symbols file already is a .def file, use it as
12808: # is; otherwise, prepend EXPORTS...
12809: archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
12810: cp $export_symbols $output_objdir/$soname.def;
12811: else
12812: echo EXPORTS > $output_objdir/$soname.def;
12813: cat $export_symbols >> $output_objdir/$soname.def;
12814: fi~
12815: $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
1.128 moko 12816: else
12817: ld_shlibs=no
12818: fi
12819: ;;
12820:
12821: haiku*)
1.237 moko 12822: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12823: link_all_deplibs=no
12824: ;;
12825:
12826: os2*)
12827: hardcode_libdir_flag_spec='-L$libdir'
12828: hardcode_minus_L=yes
12829: allow_undefined_flag=unsupported
12830: shrext_cmds=.dll
12831: archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12832: $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12833: $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12834: $ECHO EXPORTS >> $output_objdir/$libname.def~
12835: emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
12836: $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12837: emximp -o $lib $output_objdir/$libname.def'
12838: archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12839: $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12840: $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12841: $ECHO EXPORTS >> $output_objdir/$libname.def~
12842: prefix_cmds="$SED"~
12843: if test EXPORTS = "`$SED 1q $export_symbols`"; then
12844: prefix_cmds="$prefix_cmds -e 1d";
12845: fi~
12846: prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
12847: cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
12848: $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12849: emximp -o $lib $output_objdir/$libname.def'
12850: old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
12851: enable_shared_with_static_runtimes=yes
12852: file_list_spec='@'
1.128 moko 12853: ;;
12854:
12855: interix[3-9]*)
12856: hardcode_direct=no
12857: hardcode_shlibpath_var=no
1.237 moko 12858: hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12859: export_dynamic_flag_spec='$wl-E'
1.128 moko 12860: # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12861: # Instead, shared libraries are loaded at an image base (0x10000000 by
12862: # default) and relocated if they conflict, which is a slow very memory
12863: # consuming and fragmenting process. To avoid this, we pick a random,
12864: # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12865: # time. Moving up from 0x10000000 also allows more sbrk(2) space.
1.237 moko 12866: archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12867: 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'
1.128 moko 12868: ;;
12869:
12870: gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
12871: tmp_diet=no
1.237 moko 12872: if test linux-dietlibc = "$host_os"; then
1.128 moko 12873: case $cc_basename in
12874: diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
12875: esac
12876: fi
12877: if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
1.237 moko 12878: && test no = "$tmp_diet"
1.128 moko 12879: then
12880: tmp_addflag=' $pic_flag'
12881: tmp_sharedflag='-shared'
12882: case $cc_basename,$host_cpu in
12883: pgcc*) # Portland Group C compiler
1.237 moko 12884: 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'
1.128 moko 12885: tmp_addflag=' $pic_flag'
12886: ;;
12887: pgf77* | pgf90* | pgf95* | pgfortran*)
12888: # Portland Group f77 and f90 compilers
1.237 moko 12889: 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'
1.128 moko 12890: tmp_addflag=' $pic_flag -Mnomain' ;;
12891: ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
12892: tmp_addflag=' -i_dynamic' ;;
12893: efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
12894: tmp_addflag=' -i_dynamic -nofor_main' ;;
12895: ifc* | ifort*) # Intel Fortran compiler
12896: tmp_addflag=' -nofor_main' ;;
12897: lf95*) # Lahey Fortran 8.1
12898: whole_archive_flag_spec=
12899: tmp_sharedflag='--shared' ;;
1.237 moko 12900: nagfor*) # NAGFOR 5.3
12901: tmp_sharedflag='-Wl,-shared' ;;
1.128 moko 12902: xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
12903: tmp_sharedflag='-qmkshrobj'
12904: tmp_addflag= ;;
12905: nvcc*) # Cuda Compiler Driver 2.2
1.237 moko 12906: 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'
1.128 moko 12907: compiler_needs_object=yes
12908: ;;
12909: esac
1.237 moko 12910: case `$CC -V 2>&1 | $SED 5q` in
1.128 moko 12911: *Sun\ C*) # Sun C 5.9
1.237 moko 12912: 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'
1.128 moko 12913: compiler_needs_object=yes
12914: tmp_sharedflag='-G' ;;
12915: *Sun\ F*) # Sun Fortran 8.3
12916: tmp_sharedflag='-G' ;;
12917: esac
1.237 moko 12918: archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
1.128 moko 12919:
1.237 moko 12920: if test yes = "$supports_anon_versioning"; then
1.128 moko 12921: archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
1.237 moko 12922: cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12923: echo "local: *; };" >> $output_objdir/$libname.ver~
12924: $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
1.128 moko 12925: fi
12926:
12927: case $cc_basename in
1.237 moko 12928: tcc*)
12929: hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12930: export_dynamic_flag_spec='-rdynamic'
12931: ;;
1.128 moko 12932: xlf* | bgf* | bgxlf* | mpixlf*)
12933: # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
12934: whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
1.237 moko 12935: hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
1.128 moko 12936: archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
1.237 moko 12937: if test yes = "$supports_anon_versioning"; then
1.128 moko 12938: archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
1.237 moko 12939: cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12940: echo "local: *; };" >> $output_objdir/$libname.ver~
12941: $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
1.128 moko 12942: fi
12943: ;;
12944: esac
12945: else
12946: ld_shlibs=no
12947: fi
12948: ;;
12949:
1.237 moko 12950: *-mlibc)
12951: archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12952: archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12953: ;;
12954:
12955: netbsd* | netbsdelf*-gnu)
1.128 moko 12956: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12957: archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12958: wlarc=
12959: else
1.237 moko 12960: archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12961: archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
1.128 moko 12962: fi
12963: ;;
12964:
12965: solaris*)
12966: if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
12967: ld_shlibs=no
12968: cat <<_LT_EOF 1>&2
12969:
12970: *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12971: *** create shared libraries on Solaris systems. Therefore, libtool
12972: *** is disabling shared libraries support. We urge you to upgrade GNU
12973: *** binutils to release 2.9.1 or newer. Another option is to modify
12974: *** your PATH or compiler configuration so that the native linker is
12975: *** used, and then restart.
12976:
12977: _LT_EOF
12978: elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
1.237 moko 12979: archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12980: archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
1.128 moko 12981: else
12982: ld_shlibs=no
12983: fi
12984: ;;
12985:
12986: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
12987: case `$LD -v 2>&1` in
12988: *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
12989: ld_shlibs=no
12990: cat <<_LT_EOF 1>&2
12991:
1.237 moko 12992: *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
1.128 moko 12993: *** reliably create shared libraries on SCO systems. Therefore, libtool
12994: *** is disabling shared libraries support. We urge you to upgrade GNU
12995: *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
12996: *** your PATH or compiler configuration so that the native linker is
12997: *** used, and then restart.
12998:
12999: _LT_EOF
13000: ;;
13001: *)
13002: # For security reasons, it is highly recommended that you always
13003: # use absolute paths for naming shared libraries, and exclude the
13004: # DT_RUNPATH tag from executables and libraries. But doing so
13005: # requires that you compile everything twice, which is a pain.
13006: if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
1.237 moko 13007: hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13008: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13009: archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
1.128 moko 13010: else
13011: ld_shlibs=no
13012: fi
13013: ;;
13014: esac
13015: ;;
13016:
13017: sunos4*)
13018: archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13019: wlarc=
13020: hardcode_direct=yes
13021: hardcode_shlibpath_var=no
13022: ;;
13023:
13024: *)
13025: if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
1.237 moko 13026: archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13027: archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
1.128 moko 13028: else
13029: ld_shlibs=no
13030: fi
13031: ;;
13032: esac
13033:
1.237 moko 13034: if test no = "$ld_shlibs"; then
1.128 moko 13035: runpath_var=
13036: hardcode_libdir_flag_spec=
13037: export_dynamic_flag_spec=
13038: whole_archive_flag_spec=
13039: fi
13040: else
13041: # PORTME fill in a description of your system's linker (not GNU ld)
13042: case $host_os in
13043: aix3*)
13044: allow_undefined_flag=unsupported
13045: always_export_symbols=yes
13046: 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'
13047: # Note: this linker hardcodes the directories in LIBPATH if there
13048: # are no directories specified by -L.
13049: hardcode_minus_L=yes
1.237 moko 13050: if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
1.128 moko 13051: # Neither direct hardcoding nor static linking is supported with a
13052: # broken collect2.
13053: hardcode_direct=unsupported
13054: fi
13055: ;;
13056:
13057: aix[4-9]*)
1.237 moko 13058: if test ia64 = "$host_cpu"; then
1.128 moko 13059: # On IA64, the linker does run time linking by default, so we don't
13060: # have to do anything special.
13061: aix_use_runtimelinking=no
13062: exp_sym_flag='-Bexport'
1.237 moko 13063: no_entry_flag=
1.128 moko 13064: else
13065: # If we're using GNU nm, then we don't want the "-C" option.
1.237 moko 13066: # -C means demangle to GNU nm, but means don't demangle to AIX nm.
13067: # Without the "-l" option, or with the "-B" option, AIX nm treats
13068: # weak defined symbols like other global defined symbols, whereas
13069: # GNU nm marks them as "W".
13070: # While the 'weak' keyword is ignored in the Export File, we need
13071: # it in the Import File for the 'aix-soname' feature, so we have
13072: # to replace the "-B" option with "-P" for AIX nm.
1.128 moko 13073: if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
1.237 moko 13074: export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
1.128 moko 13075: else
1.237 moko 13076: export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
1.128 moko 13077: fi
13078: aix_use_runtimelinking=no
13079:
13080: # Test if we are trying to use run time linking or normal
13081: # AIX style linking. If -brtl is somewhere in LDFLAGS, we
1.237 moko 13082: # have runtime linking enabled, and use it for executables.
13083: # For shared libraries, we enable/disable runtime linking
13084: # depending on the kind of the shared library created -
13085: # when "with_aix_soname,aix_use_runtimelinking" is:
13086: # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
13087: # "aix,yes" lib.so shared, rtl:yes, for executables
13088: # lib.a static archive
13089: # "both,no" lib.so.V(shr.o) shared, rtl:yes
13090: # lib.a(lib.so.V) shared, rtl:no, for executables
13091: # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
13092: # lib.a(lib.so.V) shared, rtl:no
13093: # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
13094: # lib.a static archive
1.128 moko 13095: case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13096: for ld_flag in $LDFLAGS; do
1.237 moko 13097: if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
1.128 moko 13098: aix_use_runtimelinking=yes
13099: break
13100: fi
13101: done
1.237 moko 13102: if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
13103: # With aix-soname=svr4, we create the lib.so.V shared archives only,
13104: # so we don't have lib.a shared libs to link our executables.
13105: # We have to force runtime linking in this case.
13106: aix_use_runtimelinking=yes
13107: LDFLAGS="$LDFLAGS -Wl,-brtl"
13108: fi
1.128 moko 13109: ;;
13110: esac
13111:
13112: exp_sym_flag='-bexport'
13113: no_entry_flag='-bnoentry'
13114: fi
13115:
13116: # When large executables or shared objects are built, AIX ld can
13117: # have problems creating the table of contents. If linking a library
13118: # or program results in "error TOC overflow" add -mminimal-toc to
13119: # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13120: # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13121:
13122: archive_cmds=''
13123: hardcode_direct=yes
13124: hardcode_direct_absolute=yes
13125: hardcode_libdir_separator=':'
13126: link_all_deplibs=yes
1.237 moko 13127: file_list_spec='$wl-f,'
13128: case $with_aix_soname,$aix_use_runtimelinking in
13129: aix,*) ;; # traditional, no import file
13130: svr4,* | *,yes) # use import file
13131: # The Import File defines what to hardcode.
13132: hardcode_direct=no
13133: hardcode_direct_absolute=no
13134: ;;
13135: esac
1.128 moko 13136:
1.237 moko 13137: if test yes = "$GCC"; then
1.128 moko 13138: case $host_os in aix4.[012]|aix4.[012].*)
13139: # We only want to do this on AIX 4.2 and lower, the check
13140: # below for broken collect2 doesn't work under 4.3+
1.237 moko 13141: collect2name=`$CC -print-prog-name=collect2`
1.128 moko 13142: if test -f "$collect2name" &&
13143: strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13144: then
13145: # We have reworked collect2
13146: :
13147: else
13148: # We have old collect2
13149: hardcode_direct=unsupported
13150: # It fails to find uninstalled libraries when the uninstalled
13151: # path is not listed in the libpath. Setting hardcode_minus_L
13152: # to unsupported forces relinking
13153: hardcode_minus_L=yes
13154: hardcode_libdir_flag_spec='-L$libdir'
13155: hardcode_libdir_separator=
13156: fi
13157: ;;
13158: esac
13159: shared_flag='-shared'
1.237 moko 13160: if test yes = "$aix_use_runtimelinking"; then
13161: shared_flag="$shared_flag "'$wl-G'
1.128 moko 13162: fi
1.237 moko 13163: # Need to ensure runtime linking is disabled for the traditional
13164: # shared library, or the linker may eventually find shared libraries
13165: # /with/ Import File - we do not want to mix them.
13166: shared_flag_aix='-shared'
13167: shared_flag_svr4='-shared $wl-G'
1.128 moko 13168: else
13169: # not using gcc
1.237 moko 13170: if test ia64 = "$host_cpu"; then
1.128 moko 13171: # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13172: # chokes on -Wl,-G. The following line is correct:
13173: shared_flag='-G'
13174: else
1.237 moko 13175: if test yes = "$aix_use_runtimelinking"; then
13176: shared_flag='$wl-G'
1.128 moko 13177: else
1.237 moko 13178: shared_flag='$wl-bM:SRE'
1.128 moko 13179: fi
1.237 moko 13180: shared_flag_aix='$wl-bM:SRE'
13181: shared_flag_svr4='$wl-G'
1.128 moko 13182: fi
13183: fi
13184:
1.237 moko 13185: export_dynamic_flag_spec='$wl-bexpall'
1.128 moko 13186: # It seems that -bexpall does not export symbols beginning with
13187: # underscore (_), so it is better to generate a list of symbols to export.
13188: always_export_symbols=yes
1.237 moko 13189: if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
1.128 moko 13190: # Warning - without using the other runtime loading flags (-brtl),
13191: # -berok will link without error, but may produce a broken library.
13192: allow_undefined_flag='-berok'
13193: # Determine the default libpath from the value encoded in an
13194: # empty executable.
1.237 moko 13195: if test set = "${lt_cv_aix_libpath+set}"; then
1.128 moko 13196: aix_libpath=$lt_cv_aix_libpath
13197: else
1.237 moko 13198: if test ${lt_cv_aix_libpath_+y}
13199: then :
13200: printf %s "(cached) " >&6
13201: else case e in #(
13202: e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 13203: /* end confdefs.h. */
13204:
13205: int
1.237 moko 13206: main (void)
1.128 moko 13207: {
13208:
13209: ;
13210: return 0;
13211: }
13212: _ACEOF
1.237 moko 13213: if ac_fn_c_try_link "$LINENO"
13214: then :
1.128 moko 13215:
13216: lt_aix_libpath_sed='
13217: /Import File Strings/,/^$/ {
13218: /^0/ {
13219: s/^0 *\([^ ]*\) *$/\1/
13220: p
13221: }
13222: }'
13223: lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13224: # Check for a 64-bit object if we didn't find anything.
13225: if test -z "$lt_cv_aix_libpath_"; then
13226: lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13227: fi
13228: fi
1.237 moko 13229: rm -f core conftest.err conftest.$ac_objext conftest.beam \
1.150 moko 13230: conftest$ac_exeext conftest.$ac_ext
1.128 moko 13231: if test -z "$lt_cv_aix_libpath_"; then
1.237 moko 13232: lt_cv_aix_libpath_=/usr/lib:/lib
1.128 moko 13233: fi
1.237 moko 13234: ;;
13235: esac
1.128 moko 13236: fi
13237:
13238: aix_libpath=$lt_cv_aix_libpath_
13239: fi
13240:
1.237 moko 13241: hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
13242: archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
1.128 moko 13243: else
1.237 moko 13244: if test ia64 = "$host_cpu"; then
13245: hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
1.128 moko 13246: allow_undefined_flag="-z nodefs"
1.237 moko 13247: 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"
1.128 moko 13248: else
13249: # Determine the default libpath from the value encoded in an
13250: # empty executable.
1.237 moko 13251: if test set = "${lt_cv_aix_libpath+set}"; then
1.128 moko 13252: aix_libpath=$lt_cv_aix_libpath
13253: else
1.237 moko 13254: if test ${lt_cv_aix_libpath_+y}
13255: then :
13256: printf %s "(cached) " >&6
13257: else case e in #(
13258: e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 13259: /* end confdefs.h. */
13260:
13261: int
1.237 moko 13262: main (void)
1.128 moko 13263: {
13264:
13265: ;
13266: return 0;
13267: }
13268: _ACEOF
1.237 moko 13269: if ac_fn_c_try_link "$LINENO"
13270: then :
1.128 moko 13271:
13272: lt_aix_libpath_sed='
13273: /Import File Strings/,/^$/ {
13274: /^0/ {
13275: s/^0 *\([^ ]*\) *$/\1/
13276: p
13277: }
13278: }'
13279: lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13280: # Check for a 64-bit object if we didn't find anything.
13281: if test -z "$lt_cv_aix_libpath_"; then
13282: lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13283: fi
13284: fi
1.237 moko 13285: rm -f core conftest.err conftest.$ac_objext conftest.beam \
1.150 moko 13286: conftest$ac_exeext conftest.$ac_ext
1.128 moko 13287: if test -z "$lt_cv_aix_libpath_"; then
1.237 moko 13288: lt_cv_aix_libpath_=/usr/lib:/lib
1.128 moko 13289: fi
1.237 moko 13290: ;;
13291: esac
1.128 moko 13292: fi
13293:
13294: aix_libpath=$lt_cv_aix_libpath_
13295: fi
13296:
1.237 moko 13297: hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
1.128 moko 13298: # Warning - without using the other run time loading flags,
13299: # -berok will link without error, but may produce a broken library.
1.237 moko 13300: no_undefined_flag=' $wl-bernotok'
13301: allow_undefined_flag=' $wl-berok'
13302: if test yes = "$with_gnu_ld"; then
1.128 moko 13303: # We only use this code for GNU lds that support --whole-archive.
1.237 moko 13304: whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
1.128 moko 13305: else
13306: # Exported symbols can be pulled into shared objects from archives
13307: whole_archive_flag_spec='$convenience'
13308: fi
13309: archive_cmds_need_lc=yes
1.237 moko 13310: archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
13311: # -brtl affects multiple linker settings, -berok does not and is overridden later
13312: compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
13313: if test svr4 != "$with_aix_soname"; then
13314: # This is similar to how AIX traditionally builds its shared libraries.
13315: archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
13316: fi
13317: if test aix != "$with_aix_soname"; then
13318: archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
13319: else
13320: # used by -dlpreopen to get the symbols
13321: archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
13322: fi
13323: archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
1.128 moko 13324: fi
13325: fi
13326: ;;
13327:
13328: amigaos*)
13329: case $host_cpu in
13330: powerpc)
13331: # see comment about AmigaOS4 .so support
1.237 moko 13332: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
1.128 moko 13333: archive_expsym_cmds=''
13334: ;;
13335: m68k)
13336: 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)'
13337: hardcode_libdir_flag_spec='-L$libdir'
13338: hardcode_minus_L=yes
13339: ;;
13340: esac
13341: ;;
13342:
13343: bsdi[45]*)
13344: export_dynamic_flag_spec=-rdynamic
13345: ;;
13346:
1.237 moko 13347: cygwin* | mingw* | windows* | pw32* | cegcc*)
1.128 moko 13348: # When not using gcc, we currently assume that we are using
1.237 moko 13349: # Microsoft Visual C++ or Intel C++ Compiler.
1.128 moko 13350: # hardcode_libdir_flag_spec is actually meaningless, as there is
13351: # no search path for DLLs.
13352: case $cc_basename in
1.237 moko 13353: cl* | icl*)
13354: # Native MSVC or ICC
1.128 moko 13355: hardcode_libdir_flag_spec=' '
13356: allow_undefined_flag=unsupported
13357: always_export_symbols=yes
13358: file_list_spec='@'
13359: # Tell ltmain to make .lib files, not .a files.
13360: libext=lib
13361: # Tell ltmain to make .dll files, not .so files.
1.237 moko 13362: shrext_cmds=.dll
1.128 moko 13363: # FIXME: Setting linknames here is a bad hack.
1.237 moko 13364: archive_cmds='$CC -Fe$output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
13365: archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
13366: cp "$export_symbols" "$output_objdir/$soname.def";
13367: echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
13368: else
13369: $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
13370: fi~
13371: $CC -Fe$tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13372: linknames='
1.128 moko 13373: # The linker will not automatically build a static lib if we build a DLL.
13374: # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
13375: enable_shared_with_static_runtimes=yes
13376: exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
13377: export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
13378: # Don't use ranlib
13379: old_postinstall_cmds='chmod 644 $oldlib'
13380: postlink_cmds='lt_outputfile="@OUTPUT@"~
1.237 moko 13381: lt_tool_outputfile="@TOOL_OUTPUT@"~
13382: case $lt_outputfile in
13383: *.exe|*.EXE) ;;
13384: *)
13385: lt_outputfile=$lt_outputfile.exe
13386: lt_tool_outputfile=$lt_tool_outputfile.exe
13387: ;;
13388: esac~
13389: if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
13390: $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13391: $RM "$lt_outputfile.manifest";
13392: fi'
1.128 moko 13393: ;;
13394: *)
1.237 moko 13395: # Assume MSVC and ICC wrapper
1.128 moko 13396: hardcode_libdir_flag_spec=' '
13397: allow_undefined_flag=unsupported
13398: # Tell ltmain to make .lib files, not .a files.
13399: libext=lib
13400: # Tell ltmain to make .dll files, not .so files.
1.237 moko 13401: shrext_cmds=.dll
1.128 moko 13402: # FIXME: Setting linknames here is a bad hack.
13403: archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
13404: # The linker will automatically build a .lib file if we build a DLL.
13405: old_archive_from_new_cmds='true'
13406: # FIXME: Should let the user specify the lib program.
13407: old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
13408: enable_shared_with_static_runtimes=yes
13409: ;;
13410: esac
13411: ;;
13412:
13413: darwin* | rhapsody*)
13414:
13415:
13416: archive_cmds_need_lc=no
13417: hardcode_direct=no
13418: hardcode_automatic=yes
13419: hardcode_shlibpath_var=unsupported
1.237 moko 13420: if test yes = "$lt_cv_ld_force_load"; then
13421: 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\"`'
1.128 moko 13422:
13423: else
13424: whole_archive_flag_spec=''
13425: fi
13426: link_all_deplibs=yes
1.237 moko 13427: allow_undefined_flag=$_lt_dar_allow_undefined
1.128 moko 13428: case $cc_basename in
1.237 moko 13429: ifort*|nagfor*) _lt_dar_can_shared=yes ;;
1.128 moko 13430: *) _lt_dar_can_shared=$GCC ;;
13431: esac
1.237 moko 13432: if test yes = "$_lt_dar_can_shared"; then
1.128 moko 13433: output_verbose_link_cmd=func_echo_all
1.237 moko 13434: archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
13435: module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
13436: 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"
13437: 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"
1.128 moko 13438:
13439: else
13440: ld_shlibs=no
13441: fi
13442:
13443: ;;
13444:
13445: dgux*)
13446: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13447: hardcode_libdir_flag_spec='-L$libdir'
13448: hardcode_shlibpath_var=no
13449: ;;
13450:
13451: # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13452: # support. Future versions do this automatically, but an explicit c++rt0.o
13453: # does not break anything, and helps significantly (at the cost of a little
13454: # extra space).
13455: freebsd2.2*)
13456: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13457: hardcode_libdir_flag_spec='-R$libdir'
13458: hardcode_direct=yes
13459: hardcode_shlibpath_var=no
13460: ;;
13461:
13462: # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13463: freebsd2.*)
13464: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13465: hardcode_direct=yes
13466: hardcode_minus_L=yes
13467: hardcode_shlibpath_var=no
13468: ;;
13469:
13470: # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
1.237 moko 13471: freebsd* | dragonfly* | midnightbsd*)
1.128 moko 13472: archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13473: hardcode_libdir_flag_spec='-R$libdir'
13474: hardcode_direct=yes
13475: hardcode_shlibpath_var=no
13476: ;;
13477:
13478: hpux9*)
1.237 moko 13479: if test yes = "$GCC"; then
13480: archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
1.128 moko 13481: else
1.237 moko 13482: archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
1.128 moko 13483: fi
1.237 moko 13484: hardcode_libdir_flag_spec='$wl+b $wl$libdir'
1.128 moko 13485: hardcode_libdir_separator=:
13486: hardcode_direct=yes
13487:
13488: # hardcode_minus_L: Not really in the search PATH,
13489: # but as the default location of the library.
13490: hardcode_minus_L=yes
1.237 moko 13491: export_dynamic_flag_spec='$wl-E'
1.128 moko 13492: ;;
13493:
13494: hpux10*)
1.237 moko 13495: if test yes,no = "$GCC,$with_gnu_ld"; then
13496: archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
1.128 moko 13497: else
13498: archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13499: fi
1.237 moko 13500: if test no = "$with_gnu_ld"; then
13501: hardcode_libdir_flag_spec='$wl+b $wl$libdir'
1.128 moko 13502: hardcode_libdir_separator=:
13503: hardcode_direct=yes
13504: hardcode_direct_absolute=yes
1.237 moko 13505: export_dynamic_flag_spec='$wl-E'
1.128 moko 13506: # hardcode_minus_L: Not really in the search PATH,
13507: # but as the default location of the library.
13508: hardcode_minus_L=yes
13509: fi
13510: ;;
13511:
13512: hpux11*)
1.237 moko 13513: if test yes,no = "$GCC,$with_gnu_ld"; then
1.128 moko 13514: case $host_cpu in
13515: hppa*64*)
1.237 moko 13516: archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
1.128 moko 13517: ;;
13518: ia64*)
1.237 moko 13519: archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
1.128 moko 13520: ;;
13521: *)
1.237 moko 13522: archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
1.128 moko 13523: ;;
13524: esac
13525: else
13526: case $host_cpu in
13527: hppa*64*)
1.237 moko 13528: archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
1.128 moko 13529: ;;
13530: ia64*)
1.237 moko 13531: archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
1.128 moko 13532: ;;
13533: *)
13534:
13535: # Older versions of the 11.00 compiler do not understand -b yet
13536: # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
1.237 moko 13537: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
13538: printf %s "checking if $CC understands -b... " >&6; }
13539: if test ${lt_cv_prog_compiler__b+y}
13540: then :
13541: printf %s "(cached) " >&6
13542: else case e in #(
13543: e) lt_cv_prog_compiler__b=no
13544: save_LDFLAGS=$LDFLAGS
1.128 moko 13545: LDFLAGS="$LDFLAGS -b"
13546: echo "$lt_simple_link_test_code" > conftest.$ac_ext
13547: if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13548: # The linker can only warn and ignore the option if not recognized
13549: # So say no if there are warnings
13550: if test -s conftest.err; then
13551: # Append any errors to the config.log.
13552: cat conftest.err 1>&5
13553: $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13554: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13555: if diff conftest.exp conftest.er2 >/dev/null; then
13556: lt_cv_prog_compiler__b=yes
13557: fi
13558: else
13559: lt_cv_prog_compiler__b=yes
13560: fi
13561: fi
13562: $RM -r conftest*
1.237 moko 13563: LDFLAGS=$save_LDFLAGS
13564: ;;
13565: esac
1.128 moko 13566: fi
1.237 moko 13567: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
13568: printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
1.128 moko 13569:
1.237 moko 13570: if test yes = "$lt_cv_prog_compiler__b"; then
13571: archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
1.128 moko 13572: else
13573: archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13574: fi
13575:
13576: ;;
13577: esac
13578: fi
1.237 moko 13579: if test no = "$with_gnu_ld"; then
13580: hardcode_libdir_flag_spec='$wl+b $wl$libdir'
1.128 moko 13581: hardcode_libdir_separator=:
13582:
13583: case $host_cpu in
13584: hppa*64*|ia64*)
13585: hardcode_direct=no
13586: hardcode_shlibpath_var=no
13587: ;;
13588: *)
13589: hardcode_direct=yes
13590: hardcode_direct_absolute=yes
1.237 moko 13591: export_dynamic_flag_spec='$wl-E'
1.128 moko 13592:
13593: # hardcode_minus_L: Not really in the search PATH,
13594: # but as the default location of the library.
13595: hardcode_minus_L=yes
13596: ;;
13597: esac
13598: fi
13599: ;;
13600:
13601: irix5* | irix6* | nonstopux*)
1.237 moko 13602: if test yes = "$GCC"; then
13603: 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'
1.128 moko 13604: # Try to use the -exported_symbol ld option, if it does not
13605: # work, assume that -exports_file does not work either and
13606: # implicitly export all symbols.
13607: # This should be the same for all languages, so no per-tag cache variable.
1.237 moko 13608: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
13609: printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
13610: if test ${lt_cv_irix_exported_symbol+y}
13611: then :
13612: printf %s "(cached) " >&6
13613: else case e in #(
13614: e) save_LDFLAGS=$LDFLAGS
13615: LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
1.150 moko 13616: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 13617: /* end confdefs.h. */
13618: int foo (void) { return 0; }
13619: _ACEOF
1.237 moko 13620: if ac_fn_c_try_link "$LINENO"
13621: then :
1.128 moko 13622: lt_cv_irix_exported_symbol=yes
1.237 moko 13623: else case e in #(
13624: e) lt_cv_irix_exported_symbol=no ;;
13625: esac
1.128 moko 13626: fi
1.237 moko 13627: rm -f core conftest.err conftest.$ac_objext conftest.beam \
1.150 moko 13628: conftest$ac_exeext conftest.$ac_ext
1.237 moko 13629: LDFLAGS=$save_LDFLAGS ;;
13630: esac
1.128 moko 13631: fi
1.237 moko 13632: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
13633: printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
13634: if test yes = "$lt_cv_irix_exported_symbol"; then
13635: 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'
1.128 moko 13636: fi
1.237 moko 13637: link_all_deplibs=no
1.128 moko 13638: else
1.237 moko 13639: 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'
13640: 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'
1.128 moko 13641: fi
13642: archive_cmds_need_lc='no'
1.237 moko 13643: hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
1.128 moko 13644: hardcode_libdir_separator=:
13645: inherit_rpath=yes
13646: link_all_deplibs=yes
13647: ;;
13648:
1.237 moko 13649: linux*)
13650: case $cc_basename in
13651: tcc*)
13652: # Fabrice Bellard et al's Tiny C Compiler
13653: ld_shlibs=yes
13654: archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13655: hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13656: ;;
13657: esac
13658: ;;
13659:
13660: *-mlibc)
13661: ;;
13662:
13663: netbsd* | netbsdelf*-gnu)
1.128 moko 13664: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13665: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13666: else
13667: archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13668: fi
13669: hardcode_libdir_flag_spec='-R$libdir'
13670: hardcode_direct=yes
13671: hardcode_shlibpath_var=no
13672: ;;
13673:
13674: newsos6)
13675: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13676: hardcode_direct=yes
1.237 moko 13677: hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
1.128 moko 13678: hardcode_libdir_separator=:
13679: hardcode_shlibpath_var=no
13680: ;;
13681:
13682: *nto* | *qnx*)
13683: ;;
13684:
13685: openbsd*)
13686: if test -f /usr/libexec/ld.so; then
13687: hardcode_direct=yes
13688: hardcode_shlibpath_var=no
13689: hardcode_direct_absolute=yes
1.237 moko 13690: if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
1.128 moko 13691: archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
1.237 moko 13692: archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
13693: hardcode_libdir_flag_spec='$wl-rpath,$libdir'
13694: export_dynamic_flag_spec='$wl-E'
1.128 moko 13695: else
1.237 moko 13696: archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13697: hardcode_libdir_flag_spec='$wl-rpath,$libdir'
1.128 moko 13698: fi
13699: else
13700: ld_shlibs=no
13701: fi
13702: ;;
13703:
13704: os2*)
13705: hardcode_libdir_flag_spec='-L$libdir'
13706: hardcode_minus_L=yes
13707: allow_undefined_flag=unsupported
1.237 moko 13708: shrext_cmds=.dll
13709: archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13710: $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13711: $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13712: $ECHO EXPORTS >> $output_objdir/$libname.def~
13713: emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
13714: $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13715: emximp -o $lib $output_objdir/$libname.def'
13716: archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13717: $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13718: $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13719: $ECHO EXPORTS >> $output_objdir/$libname.def~
13720: prefix_cmds="$SED"~
13721: if test EXPORTS = "`$SED 1q $export_symbols`"; then
13722: prefix_cmds="$prefix_cmds -e 1d";
13723: fi~
13724: prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
13725: cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
13726: $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13727: emximp -o $lib $output_objdir/$libname.def'
13728: old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
13729: enable_shared_with_static_runtimes=yes
13730: file_list_spec='@'
1.128 moko 13731: ;;
13732:
13733: osf3*)
1.237 moko 13734: if test yes = "$GCC"; then
13735: allow_undefined_flag=' $wl-expect_unresolved $wl\*'
13736: 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'
1.128 moko 13737: else
13738: allow_undefined_flag=' -expect_unresolved \*'
1.237 moko 13739: 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'
1.128 moko 13740: fi
13741: archive_cmds_need_lc='no'
1.237 moko 13742: hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
1.128 moko 13743: hardcode_libdir_separator=:
13744: ;;
13745:
13746: osf4* | osf5*) # as osf3* with the addition of -msym flag
1.237 moko 13747: if test yes = "$GCC"; then
13748: allow_undefined_flag=' $wl-expect_unresolved $wl\*'
13749: 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'
13750: hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
1.128 moko 13751: else
13752: allow_undefined_flag=' -expect_unresolved \*'
1.237 moko 13753: 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'
1.128 moko 13754: 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~
1.237 moko 13755: $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'
1.128 moko 13756:
13757: # Both c and cxx compiler support -rpath directly
13758: hardcode_libdir_flag_spec='-rpath $libdir'
13759: fi
13760: archive_cmds_need_lc='no'
13761: hardcode_libdir_separator=:
13762: ;;
13763:
1.237 moko 13764: serenity*)
13765: ;;
13766:
1.128 moko 13767: solaris*)
13768: no_undefined_flag=' -z defs'
1.237 moko 13769: if test yes = "$GCC"; then
13770: wlarc='$wl'
13771: archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
1.128 moko 13772: archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
1.237 moko 13773: $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'
1.128 moko 13774: else
13775: case `$CC -V 2>&1` in
13776: *"Compilers 5.0"*)
13777: wlarc=''
1.237 moko 13778: archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
1.128 moko 13779: archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
1.237 moko 13780: $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
1.128 moko 13781: ;;
13782: *)
1.237 moko 13783: wlarc='$wl'
13784: archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
1.128 moko 13785: archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
1.237 moko 13786: $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
1.128 moko 13787: ;;
13788: esac
13789: fi
13790: hardcode_libdir_flag_spec='-R$libdir'
13791: hardcode_shlibpath_var=no
13792: case $host_os in
13793: solaris2.[0-5] | solaris2.[0-5].*) ;;
13794: *)
13795: # The compiler driver will combine and reorder linker options,
1.237 moko 13796: # but understands '-z linker_flag'. GCC discards it without '$wl',
1.128 moko 13797: # but is careful enough not to reorder.
13798: # Supported since Solaris 2.6 (maybe 2.5.1?)
1.237 moko 13799: if test yes = "$GCC"; then
13800: whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
1.128 moko 13801: else
13802: whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
13803: fi
13804: ;;
13805: esac
13806: link_all_deplibs=yes
13807: ;;
13808:
13809: sunos4*)
1.237 moko 13810: if test sequent = "$host_vendor"; then
1.128 moko 13811: # Use $CC to link under sequent, because it throws in some extra .o
13812: # files that make .init and .fini sections work.
1.237 moko 13813: archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
1.128 moko 13814: else
13815: archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13816: fi
13817: hardcode_libdir_flag_spec='-L$libdir'
13818: hardcode_direct=yes
13819: hardcode_minus_L=yes
13820: hardcode_shlibpath_var=no
13821: ;;
13822:
13823: sysv4)
13824: case $host_vendor in
13825: sni)
13826: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13827: hardcode_direct=yes # is this really true???
13828: ;;
13829: siemens)
13830: ## LD is ld it makes a PLAMLIB
13831: ## CC just makes a GrossModule.
13832: archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13833: reload_cmds='$CC -r -o $output$reload_objs'
13834: hardcode_direct=no
13835: ;;
13836: motorola)
13837: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13838: hardcode_direct=no #Motorola manual says yes, but my tests say they lie
13839: ;;
13840: esac
13841: runpath_var='LD_RUN_PATH'
13842: hardcode_shlibpath_var=no
13843: ;;
13844:
13845: sysv4.3*)
13846: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13847: hardcode_shlibpath_var=no
13848: export_dynamic_flag_spec='-Bexport'
13849: ;;
13850:
13851: sysv4*MP*)
13852: if test -d /usr/nec; then
13853: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13854: hardcode_shlibpath_var=no
13855: runpath_var=LD_RUN_PATH
13856: hardcode_runpath_var=yes
13857: ld_shlibs=yes
13858: fi
13859: ;;
13860:
13861: sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
1.237 moko 13862: no_undefined_flag='$wl-z,text'
1.128 moko 13863: archive_cmds_need_lc=no
13864: hardcode_shlibpath_var=no
13865: runpath_var='LD_RUN_PATH'
13866:
1.237 moko 13867: if test yes = "$GCC"; then
13868: archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13869: archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
1.128 moko 13870: else
1.237 moko 13871: archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13872: archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
1.128 moko 13873: fi
13874: ;;
13875:
13876: sysv5* | sco3.2v5* | sco5v6*)
1.237 moko 13877: # Note: We CANNOT use -z defs as we might desire, because we do not
1.128 moko 13878: # link with -lc, and that would cause any symbols used from libc to
13879: # always be unresolved, which means just about no library would
13880: # ever link correctly. If we're not using GNU ld we use -z text
13881: # though, which does catch some bad symbols but isn't as heavy-handed
13882: # as -z defs.
1.237 moko 13883: no_undefined_flag='$wl-z,text'
13884: allow_undefined_flag='$wl-z,nodefs'
1.128 moko 13885: archive_cmds_need_lc=no
13886: hardcode_shlibpath_var=no
1.237 moko 13887: hardcode_libdir_flag_spec='$wl-R,$libdir'
1.128 moko 13888: hardcode_libdir_separator=':'
13889: link_all_deplibs=yes
1.237 moko 13890: export_dynamic_flag_spec='$wl-Bexport'
1.128 moko 13891: runpath_var='LD_RUN_PATH'
13892:
1.237 moko 13893: if test yes = "$GCC"; then
13894: archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13895: archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
1.128 moko 13896: else
1.237 moko 13897: archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13898: archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
1.128 moko 13899: fi
13900: ;;
13901:
13902: uts4*)
13903: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13904: hardcode_libdir_flag_spec='-L$libdir'
13905: hardcode_shlibpath_var=no
13906: ;;
13907:
13908: *)
13909: ld_shlibs=no
13910: ;;
13911: esac
13912:
1.237 moko 13913: if test sni = "$host_vendor"; then
1.128 moko 13914: case $host in
13915: sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
1.237 moko 13916: export_dynamic_flag_spec='$wl-Blargedynsym'
1.128 moko 13917: ;;
13918: esac
13919: fi
13920: fi
13921:
1.237 moko 13922: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
13923: printf "%s\n" "$ld_shlibs" >&6; }
13924: test no = "$ld_shlibs" && can_build_shared=no
1.128 moko 13925:
13926: with_gnu_ld=$with_gnu_ld
13927:
13928:
13929:
13930:
13931:
13932:
13933:
13934:
13935:
13936:
13937:
13938:
13939:
13940:
13941:
13942: #
13943: # Do we need to explicitly link libc?
13944: #
13945: case "x$archive_cmds_need_lc" in
13946: x|xyes)
13947: # Assume -lc should be added
13948: archive_cmds_need_lc=yes
13949:
1.237 moko 13950: if test yes,yes = "$GCC,$enable_shared"; then
1.128 moko 13951: case $archive_cmds in
13952: *'~'*)
13953: # FIXME: we may have to deal with multi-command sequences.
13954: ;;
13955: '$CC '*)
13956: # Test whether the compiler implicitly links with -lc since on some
13957: # systems, -lgcc has to come before -lc. If gcc already passes -lc
13958: # to ld, don't add -lc before -lgcc.
1.237 moko 13959: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13960: printf %s "checking whether -lc should be explicitly linked in... " >&6; }
13961: if test ${lt_cv_archive_cmds_need_lc+y}
13962: then :
13963: printf %s "(cached) " >&6
13964: else case e in #(
13965: e) $RM conftest*
1.128 moko 13966: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13967:
1.150 moko 13968: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1.128 moko 13969: (eval $ac_compile) 2>&5
13970: ac_status=$?
1.237 moko 13971: printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1.150 moko 13972: test $ac_status = 0; } 2>conftest.err; then
1.128 moko 13973: soname=conftest
13974: lib=conftest
13975: libobjs=conftest.$ac_objext
13976: deplibs=
13977: wl=$lt_prog_compiler_wl
13978: pic_flag=$lt_prog_compiler_pic
13979: compiler_flags=-v
13980: linker_flags=-v
13981: verstring=
13982: output_objdir=.
13983: libname=conftest
13984: lt_save_allow_undefined_flag=$allow_undefined_flag
13985: allow_undefined_flag=
1.150 moko 13986: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
1.128 moko 13987: (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13988: ac_status=$?
1.237 moko 13989: printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1.150 moko 13990: test $ac_status = 0; }
1.128 moko 13991: then
13992: lt_cv_archive_cmds_need_lc=no
13993: else
13994: lt_cv_archive_cmds_need_lc=yes
13995: fi
13996: allow_undefined_flag=$lt_save_allow_undefined_flag
13997: else
13998: cat conftest.err 1>&5
13999: fi
14000: $RM conftest*
1.237 moko 14001: ;;
14002: esac
1.128 moko 14003: fi
1.237 moko 14004: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
14005: printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
1.128 moko 14006: archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
14007: ;;
14008: esac
14009: fi
14010: ;;
14011: esac
14012:
14013:
14014:
14015:
14016:
14017:
14018:
14019:
14020:
14021:
14022:
14023:
14024:
14025:
14026:
14027:
14028:
14029:
14030:
14031:
14032:
14033:
14034:
14035:
14036:
14037:
14038:
14039:
14040:
14041:
14042:
14043:
14044:
14045:
14046:
14047:
14048:
14049:
14050:
14051:
14052:
14053:
14054:
14055:
14056:
14057:
14058:
14059:
14060:
14061:
14062:
14063:
14064:
14065:
14066:
14067:
14068:
14069:
14070:
14071:
14072:
14073:
14074:
14075:
14076:
14077:
14078:
14079:
14080:
14081:
14082:
14083:
14084:
14085:
14086:
14087:
14088:
14089:
14090:
14091:
14092:
14093:
14094:
14095:
14096:
14097:
14098:
14099:
14100:
14101:
14102:
14103:
14104:
14105:
14106:
14107:
14108:
14109:
14110:
14111:
14112:
14113:
14114:
14115:
14116:
14117:
14118:
14119:
14120:
14121:
14122:
14123:
14124:
14125:
14126:
14127:
14128:
14129:
14130:
14131:
14132:
14133:
14134:
14135:
14136:
14137:
14138:
14139:
14140:
14141:
14142:
14143:
14144:
14145:
14146:
14147:
14148:
14149:
14150:
14151:
14152:
14153:
14154:
14155:
14156:
14157:
14158:
14159:
14160:
14161:
14162:
14163:
1.237 moko 14164: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14165: printf %s "checking dynamic linker characteristics... " >&6; }
1.128 moko 14166:
1.237 moko 14167: if test yes = "$GCC"; then
1.128 moko 14168: case $host_os in
1.237 moko 14169: darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
14170: *) lt_awk_arg='/^libraries:/' ;;
1.128 moko 14171: esac
14172: case $host_os in
1.237 moko 14173: mingw* | windows* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
14174: *) lt_sed_strip_eq='s|=/|/|g' ;;
1.128 moko 14175: esac
14176: lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
14177: case $lt_search_path_spec in
14178: *\;*)
14179: # if the path contains ";" then we assume it to be the separator
14180: # otherwise default to the standard path separator (i.e. ":") - it is
14181: # assumed that no part of a normal pathname contains ";" but that should
14182: # okay in the real world where ";" in dirpaths is itself problematic.
14183: lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
14184: ;;
14185: *)
14186: lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
14187: ;;
14188: esac
14189: # Ok, now we have the path, separated by spaces, we can step through it
1.237 moko 14190: # and add multilib dir if necessary...
1.128 moko 14191: lt_tmp_lt_search_path_spec=
1.237 moko 14192: lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
14193: # ...but if some path component already ends with the multilib dir we assume
14194: # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
14195: case "$lt_multi_os_dir; $lt_search_path_spec " in
14196: "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
14197: lt_multi_os_dir=
14198: ;;
14199: esac
1.128 moko 14200: for lt_sys_path in $lt_search_path_spec; do
1.237 moko 14201: if test -d "$lt_sys_path$lt_multi_os_dir"; then
14202: lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
14203: elif test -n "$lt_multi_os_dir"; then
1.128 moko 14204: test -d "$lt_sys_path" && \
14205: lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
14206: fi
14207: done
14208: lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
1.237 moko 14209: BEGIN {RS = " "; FS = "/|\n";} {
14210: lt_foo = "";
14211: lt_count = 0;
1.128 moko 14212: for (lt_i = NF; lt_i > 0; lt_i--) {
14213: if ($lt_i != "" && $lt_i != ".") {
14214: if ($lt_i == "..") {
14215: lt_count++;
14216: } else {
14217: if (lt_count == 0) {
1.237 moko 14218: lt_foo = "/" $lt_i lt_foo;
1.128 moko 14219: } else {
14220: lt_count--;
14221: }
14222: }
14223: }
14224: }
14225: if (lt_foo != "") { lt_freq[lt_foo]++; }
14226: if (lt_freq[lt_foo] == 1) { print lt_foo; }
14227: }'`
14228: # AWK program above erroneously prepends '/' to C:/dos/paths
14229: # for these hosts.
14230: case $host_os in
1.237 moko 14231: mingw* | windows* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
14232: $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
1.128 moko 14233: esac
14234: sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
14235: else
14236: sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14237: fi
14238: library_names_spec=
14239: libname_spec='lib$name'
14240: soname_spec=
1.237 moko 14241: shrext_cmds=.so
1.128 moko 14242: postinstall_cmds=
14243: postuninstall_cmds=
14244: finish_cmds=
14245: finish_eval=
14246: shlibpath_var=
14247: shlibpath_overrides_runpath=unknown
14248: version_type=none
14249: dynamic_linker="$host_os ld.so"
14250: sys_lib_dlsearch_path_spec="/lib /usr/lib"
14251: need_lib_prefix=unknown
14252: hardcode_into_libs=no
14253:
14254: # when you set need_version to no, make sure it does not cause -set_version
14255: # flags to be left without arguments
14256: need_version=unknown
14257:
1.237 moko 14258:
14259:
1.128 moko 14260: case $host_os in
14261: aix3*)
14262: version_type=linux # correct to gnu/linux during the next big refactor
1.237 moko 14263: library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
1.128 moko 14264: shlibpath_var=LIBPATH
14265:
14266: # AIX 3 has no versioning support, so we append a major version to the name.
1.237 moko 14267: soname_spec='$libname$release$shared_ext$major'
1.128 moko 14268: ;;
14269:
14270: aix[4-9]*)
14271: version_type=linux # correct to gnu/linux during the next big refactor
14272: need_lib_prefix=no
14273: need_version=no
14274: hardcode_into_libs=yes
1.237 moko 14275: if test ia64 = "$host_cpu"; then
1.128 moko 14276: # AIX 5 supports IA64
1.237 moko 14277: library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
1.128 moko 14278: shlibpath_var=LD_LIBRARY_PATH
14279: else
14280: # With GCC up to 2.95.x, collect2 would create an import file
14281: # for dependence libraries. The import file would start with
1.237 moko 14282: # the line '#! .'. This would cause the generated library to
14283: # depend on '.', always an invalid library. This was fixed in
1.128 moko 14284: # development snapshots of GCC prior to 3.0.
14285: case $host_os in
14286: aix4 | aix4.[01] | aix4.[01].*)
14287: if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14288: echo ' yes '
1.237 moko 14289: echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
1.128 moko 14290: :
14291: else
14292: can_build_shared=no
14293: fi
14294: ;;
14295: esac
1.237 moko 14296: # Using Import Files as archive members, it is possible to support
14297: # filename-based versioning of shared library archives on AIX. While
14298: # this would work for both with and without runtime linking, it will
14299: # prevent static linking of such archives. So we do filename-based
14300: # shared library versioning with .so extension only, which is used
14301: # when both runtime linking and shared linking is enabled.
14302: # Unfortunately, runtime linking may impact performance, so we do
14303: # not want this to be the default eventually. Also, we use the
14304: # versioned .so libs for executables only if there is the -brtl
14305: # linker flag in LDFLAGS as well, or --enable-aix-soname=svr4 only.
14306: # To allow for filename-based versioning support, we need to create
14307: # libNAME.so.V as an archive file, containing:
14308: # *) an Import File, referring to the versioned filename of the
14309: # archive as well as the shared archive member, telling the
14310: # bitwidth (32 or 64) of that shared object, and providing the
14311: # list of exported symbols of that shared object, eventually
14312: # decorated with the 'weak' keyword
14313: # *) the shared object with the F_LOADONLY flag set, to really avoid
14314: # it being seen by the linker.
14315: # At run time we better use the real file rather than another symlink,
14316: # but for link time we create the symlink libNAME.so -> libNAME.so.V
14317:
14318: case $with_aix_soname,$aix_use_runtimelinking in
14319: # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
1.128 moko 14320: # soname into executable. Probably we can add versioning support to
14321: # collect2, so additional links can be useful in future.
1.237 moko 14322: aix,yes) # traditional libtool
14323: dynamic_linker='AIX unversionable lib.so'
1.128 moko 14324: # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14325: # instead of lib<name>.a to let people know that these are not
14326: # typical AIX shared libraries.
1.237 moko 14327: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14328: ;;
14329: aix,no) # traditional AIX only
14330: dynamic_linker='AIX lib.a(lib.so.V)'
1.128 moko 14331: # We preserve .a as extension for shared libraries through AIX4.2
14332: # and later when we are not doing run time linking.
1.237 moko 14333: library_names_spec='$libname$release.a $libname.a'
14334: soname_spec='$libname$release$shared_ext$major'
14335: ;;
14336: svr4,*) # full svr4 only
14337: dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
14338: library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
14339: # We do not specify a path in Import Files, so LIBPATH fires.
14340: shlibpath_overrides_runpath=yes
14341: ;;
14342: *,yes) # both, prefer svr4
14343: dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
14344: library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
14345: # unpreferred sharedlib libNAME.a needs extra handling
14346: postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
14347: postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
14348: # We do not specify a path in Import Files, so LIBPATH fires.
14349: shlibpath_overrides_runpath=yes
14350: ;;
14351: *,no) # both, prefer aix
14352: dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
14353: library_names_spec='$libname$release.a $libname.a'
14354: soname_spec='$libname$release$shared_ext$major'
14355: # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
14356: postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
14357: postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
14358: ;;
14359: esac
1.128 moko 14360: shlibpath_var=LIBPATH
14361: fi
14362: ;;
14363:
14364: amigaos*)
14365: case $host_cpu in
14366: powerpc)
14367: # Since July 2007 AmigaOS4 officially supports .so libraries.
14368: # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
1.237 moko 14369: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
1.128 moko 14370: ;;
14371: m68k)
14372: library_names_spec='$libname.ixlibrary $libname.a'
14373: # Create ${libname}_ixlibrary.a entries in /sys/libs.
1.237 moko 14374: finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
1.128 moko 14375: ;;
14376: esac
14377: ;;
14378:
14379: beos*)
1.237 moko 14380: library_names_spec='$libname$shared_ext'
1.128 moko 14381: dynamic_linker="$host_os ld.so"
14382: shlibpath_var=LIBRARY_PATH
14383: ;;
14384:
14385: bsdi[45]*)
14386: version_type=linux # correct to gnu/linux during the next big refactor
14387: need_version=no
1.237 moko 14388: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14389: soname_spec='$libname$release$shared_ext$major'
1.128 moko 14390: finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14391: shlibpath_var=LD_LIBRARY_PATH
14392: sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14393: sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14394: # the default ld.so.conf also contains /usr/contrib/lib and
14395: # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14396: # libtool to hard-code these into programs
14397: ;;
14398:
1.237 moko 14399: cygwin* | mingw* | windows* | pw32* | cegcc*)
1.128 moko 14400: version_type=windows
1.237 moko 14401: shrext_cmds=.dll
1.128 moko 14402: need_version=no
14403: need_lib_prefix=no
14404:
14405: case $GCC,$cc_basename in
14406: yes,*)
14407: # gcc
14408: library_names_spec='$libname.dll.a'
14409: # DLL is installed to $(libdir)/../bin by postinstall_cmds
1.237 moko 14410: # If user builds GCC with multilib enabled,
14411: # it should just install on $(libdir)
14412: # not on $(libdir)/../bin or 32 bits dlls would override 64 bit ones.
14413: if test xyes = x"$multilib"; then
14414: postinstall_cmds='base_file=`basename \$file`~
14415: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
14416: dldir=$destdir/`dirname \$dlpath`~
14417: $install_prog $dir/$dlname $destdir/$dlname~
14418: chmod a+x $destdir/$dlname~
14419: if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14420: eval '\''$striplib $destdir/$dlname'\'' || exit \$?;
14421: fi'
14422: else
14423: postinstall_cmds='base_file=`basename \$file`~
14424: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
14425: dldir=$destdir/`dirname \$dlpath`~
14426: test -d \$dldir || mkdir -p \$dldir~
14427: $install_prog $dir/$dlname \$dldir/$dlname~
14428: chmod a+x \$dldir/$dlname~
14429: if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14430: eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14431: fi'
14432: fi
1.128 moko 14433: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14434: dlpath=$dir/\$dldll~
14435: $RM \$dlpath'
14436: shlibpath_overrides_runpath=yes
14437:
14438: case $host_os in
14439: cygwin*)
14440: # Cygwin DLLs use 'cyg' prefix rather than 'lib'
1.237 moko 14441: soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
1.128 moko 14442:
14443: sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
14444: ;;
1.237 moko 14445: mingw* | windows* | cegcc*)
1.128 moko 14446: # MinGW DLLs use traditional 'lib' prefix
1.237 moko 14447: soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
1.128 moko 14448: ;;
14449: pw32*)
14450: # pw32 DLLs use 'pw' prefix rather than 'lib'
1.237 moko 14451: library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
1.128 moko 14452: ;;
14453: esac
14454: dynamic_linker='Win32 ld.exe'
14455: ;;
14456:
1.237 moko 14457: *,cl* | *,icl*)
14458: # Native MSVC or ICC
1.128 moko 14459: libname_spec='$name'
1.237 moko 14460: soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
14461: library_names_spec='$libname.dll.lib'
1.128 moko 14462:
14463: case $build_os in
1.237 moko 14464: mingw* | windows*)
1.128 moko 14465: sys_lib_search_path_spec=
14466: lt_save_ifs=$IFS
14467: IFS=';'
14468: for lt_path in $LIB
14469: do
14470: IFS=$lt_save_ifs
14471: # Let DOS variable expansion print the short 8.3 style file name.
14472: lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
14473: sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
14474: done
14475: IFS=$lt_save_ifs
14476: # Convert to MSYS style.
1.237 moko 14477: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
1.128 moko 14478: ;;
14479: cygwin*)
14480: # Convert to unix form, then to dos form, then back to unix form
14481: # but this time dos style (no spaces!) so that the unix form looks
14482: # like /cygdrive/c/PROGRA~1:/cygdr...
14483: sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
14484: sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
14485: sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14486: ;;
14487: *)
1.237 moko 14488: sys_lib_search_path_spec=$LIB
1.128 moko 14489: if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14490: # It is most probably a Windows format PATH.
14491: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14492: else
14493: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14494: fi
14495: # FIXME: find the short name or the path components, as spaces are
14496: # common. (e.g. "Program Files" -> "PROGRA~1")
14497: ;;
14498: esac
14499:
14500: # DLL is installed to $(libdir)/../bin by postinstall_cmds
1.237 moko 14501: postinstall_cmds='base_file=`basename \$file`~
14502: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
1.128 moko 14503: dldir=$destdir/`dirname \$dlpath`~
14504: test -d \$dldir || mkdir -p \$dldir~
14505: $install_prog $dir/$dlname \$dldir/$dlname'
14506: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14507: dlpath=$dir/\$dldll~
14508: $RM \$dlpath'
14509: shlibpath_overrides_runpath=yes
14510: dynamic_linker='Win32 link.exe'
14511: ;;
14512:
14513: *)
1.237 moko 14514: # Assume MSVC and ICC wrapper
14515: library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
1.128 moko 14516: dynamic_linker='Win32 ld.exe'
14517: ;;
14518: esac
14519: # FIXME: first we should search . and the directory the executable is in
14520: shlibpath_var=PATH
14521: ;;
14522:
14523: darwin* | rhapsody*)
14524: dynamic_linker="$host_os dyld"
14525: version_type=darwin
14526: need_lib_prefix=no
14527: need_version=no
1.237 moko 14528: library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
14529: soname_spec='$libname$release$major$shared_ext'
1.128 moko 14530: shlibpath_overrides_runpath=yes
14531: shlibpath_var=DYLD_LIBRARY_PATH
14532: shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14533:
14534: sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
14535: sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14536: ;;
14537:
14538: dgux*)
14539: version_type=linux # correct to gnu/linux during the next big refactor
14540: need_lib_prefix=no
14541: need_version=no
1.237 moko 14542: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14543: soname_spec='$libname$release$shared_ext$major'
1.128 moko 14544: shlibpath_var=LD_LIBRARY_PATH
14545: ;;
14546:
1.237 moko 14547: freebsd* | dragonfly* | midnightbsd*)
1.128 moko 14548: # DragonFly does not have aout. When/if they implement a new
14549: # versioning mechanism, adjust this.
14550: if test -x /usr/bin/objformat; then
14551: objformat=`/usr/bin/objformat`
14552: else
14553: case $host_os in
14554: freebsd[23].*) objformat=aout ;;
14555: *) objformat=elf ;;
14556: esac
14557: fi
14558: version_type=freebsd-$objformat
14559: case $version_type in
14560: freebsd-elf*)
1.237 moko 14561: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14562: soname_spec='$libname$release$shared_ext$major'
1.128 moko 14563: need_version=no
14564: need_lib_prefix=no
14565: ;;
14566: freebsd-*)
1.237 moko 14567: library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
1.128 moko 14568: need_version=yes
14569: ;;
14570: esac
1.237 moko 14571: case $host_cpu in
14572: powerpc64)
14573: # On FreeBSD bi-arch platforms, a different variable is used for 32-bit
14574: # binaries. See <https://man.freebsd.org/cgi/man.cgi?query=ld.so>.
14575: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14576: /* end confdefs.h. */
14577: int test_pointer_size[sizeof (void *) - 5];
14578:
14579: _ACEOF
14580: if ac_fn_c_try_compile "$LINENO"
14581: then :
1.128 moko 14582: shlibpath_var=LD_LIBRARY_PATH
1.237 moko 14583: else case e in #(
14584: e) shlibpath_var=LD_32_LIBRARY_PATH ;;
14585: esac
14586: fi
14587: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14588: ;;
14589: *)
14590: shlibpath_var=LD_LIBRARY_PATH
14591: ;;
14592: esac
1.128 moko 14593: case $host_os in
14594: freebsd2.*)
14595: shlibpath_overrides_runpath=yes
14596: ;;
14597: freebsd3.[01]* | freebsdelf3.[01]*)
14598: shlibpath_overrides_runpath=yes
14599: hardcode_into_libs=yes
14600: ;;
14601: freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14602: freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14603: shlibpath_overrides_runpath=no
14604: hardcode_into_libs=yes
14605: ;;
14606: *) # from 4.6 on, and DragonFly
14607: shlibpath_overrides_runpath=yes
14608: hardcode_into_libs=yes
14609: ;;
14610: esac
14611: ;;
14612:
14613: haiku*)
14614: version_type=linux # correct to gnu/linux during the next big refactor
14615: need_lib_prefix=no
14616: need_version=no
14617: dynamic_linker="$host_os runtime_loader"
1.237 moko 14618: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14619: soname_spec='$libname$release$shared_ext$major'
1.128 moko 14620: shlibpath_var=LIBRARY_PATH
1.237 moko 14621: shlibpath_overrides_runpath=no
14622: sys_lib_search_path_spec='/boot/system/non-packaged/develop/lib /boot/system/develop/lib'
14623: sys_lib_dlsearch_path_spec='/boot/home/config/non-packaged/lib /boot/home/config/lib /boot/system/non-packaged/lib /boot/system/lib'
14624: hardcode_into_libs=no
1.128 moko 14625: ;;
14626:
14627: hpux9* | hpux10* | hpux11*)
14628: # Give a soname corresponding to the major version so that dld.sl refuses to
14629: # link against other versions.
14630: version_type=sunos
14631: need_lib_prefix=no
14632: need_version=no
14633: case $host_cpu in
14634: ia64*)
14635: shrext_cmds='.so'
14636: hardcode_into_libs=yes
14637: dynamic_linker="$host_os dld.so"
14638: shlibpath_var=LD_LIBRARY_PATH
14639: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
1.237 moko 14640: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14641: soname_spec='$libname$release$shared_ext$major'
14642: if test 32 = "$HPUX_IA64_MODE"; then
1.128 moko 14643: sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
1.237 moko 14644: sys_lib_dlsearch_path_spec=/usr/lib/hpux32
1.128 moko 14645: else
14646: sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
1.237 moko 14647: sys_lib_dlsearch_path_spec=/usr/lib/hpux64
1.128 moko 14648: fi
14649: ;;
14650: hppa*64*)
14651: shrext_cmds='.sl'
14652: hardcode_into_libs=yes
14653: dynamic_linker="$host_os dld.sl"
14654: shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14655: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
1.237 moko 14656: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14657: soname_spec='$libname$release$shared_ext$major'
1.128 moko 14658: sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14659: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14660: ;;
14661: *)
14662: shrext_cmds='.sl'
14663: dynamic_linker="$host_os dld.sl"
14664: shlibpath_var=SHLIB_PATH
14665: shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
1.237 moko 14666: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14667: soname_spec='$libname$release$shared_ext$major'
1.128 moko 14668: ;;
14669: esac
14670: # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14671: postinstall_cmds='chmod 555 $lib'
14672: # or fails outright, so override atomically:
14673: install_override_mode=555
14674: ;;
14675:
14676: interix[3-9]*)
14677: version_type=linux # correct to gnu/linux during the next big refactor
14678: need_lib_prefix=no
14679: need_version=no
1.237 moko 14680: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14681: soname_spec='$libname$release$shared_ext$major'
1.128 moko 14682: dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14683: shlibpath_var=LD_LIBRARY_PATH
14684: shlibpath_overrides_runpath=no
14685: hardcode_into_libs=yes
14686: ;;
14687:
14688: irix5* | irix6* | nonstopux*)
14689: case $host_os in
14690: nonstopux*) version_type=nonstopux ;;
14691: *)
1.237 moko 14692: if test yes = "$lt_cv_prog_gnu_ld"; then
1.128 moko 14693: version_type=linux # correct to gnu/linux during the next big refactor
14694: else
14695: version_type=irix
14696: fi ;;
14697: esac
14698: need_lib_prefix=no
14699: need_version=no
1.237 moko 14700: soname_spec='$libname$release$shared_ext$major'
14701: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
1.128 moko 14702: case $host_os in
14703: irix5* | nonstopux*)
14704: libsuff= shlibsuff=
14705: ;;
14706: *)
14707: case $LD in # libtool.m4 will add one of these switches to LD
14708: *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14709: libsuff= shlibsuff= libmagic=32-bit;;
14710: *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14711: libsuff=32 shlibsuff=N32 libmagic=N32;;
14712: *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14713: libsuff=64 shlibsuff=64 libmagic=64-bit;;
14714: *) libsuff= shlibsuff= libmagic=never-match;;
14715: esac
14716: ;;
14717: esac
14718: shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14719: shlibpath_overrides_runpath=no
1.237 moko 14720: sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
14721: sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
1.128 moko 14722: hardcode_into_libs=yes
14723: ;;
14724:
14725: # No shared lib support for Linux oldld, aout, or coff.
14726: linux*oldld* | linux*aout* | linux*coff*)
14727: dynamic_linker=no
14728: ;;
14729:
1.237 moko 14730: linux*android*)
14731: version_type=none # Android doesn't support versioned libraries.
14732: need_lib_prefix=no
14733: need_version=no
14734: library_names_spec='$libname$release$shared_ext $libname$shared_ext'
14735: soname_spec='$libname$release$shared_ext'
14736: finish_cmds=
14737: shlibpath_var=LD_LIBRARY_PATH
14738: shlibpath_overrides_runpath=yes
14739:
14740: # This implies no fast_install, which is unacceptable.
14741: # Some rework will be needed to allow for fast_install
14742: # before this can be enabled.
14743: hardcode_into_libs=yes
14744:
14745: dynamic_linker='Android linker'
14746: # -rpath works at least for libraries that are not overridden by
14747: # libraries installed in system locations.
14748: hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
14749: ;;
14750:
1.128 moko 14751: # This must be glibc/ELF.
1.237 moko 14752: linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
1.128 moko 14753: version_type=linux # correct to gnu/linux during the next big refactor
14754: need_lib_prefix=no
14755: need_version=no
1.237 moko 14756: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14757: soname_spec='$libname$release$shared_ext$major'
1.128 moko 14758: finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14759: shlibpath_var=LD_LIBRARY_PATH
14760: shlibpath_overrides_runpath=no
14761:
14762: # Some binutils ld are patched to set DT_RUNPATH
1.237 moko 14763: if test ${lt_cv_shlibpath_overrides_runpath+y}
14764: then :
14765: printf %s "(cached) " >&6
14766: else case e in #(
14767: e) lt_cv_shlibpath_overrides_runpath=no
1.128 moko 14768: save_LDFLAGS=$LDFLAGS
14769: save_libdir=$libdir
14770: eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
14771: LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
1.150 moko 14772: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 14773: /* end confdefs.h. */
14774:
14775: int
1.237 moko 14776: main (void)
1.128 moko 14777: {
14778:
14779: ;
14780: return 0;
14781: }
14782: _ACEOF
1.237 moko 14783: if ac_fn_c_try_link "$LINENO"
14784: then :
14785: if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
14786: then :
1.128 moko 14787: lt_cv_shlibpath_overrides_runpath=yes
14788: fi
14789: fi
1.237 moko 14790: rm -f core conftest.err conftest.$ac_objext conftest.beam \
1.150 moko 14791: conftest$ac_exeext conftest.$ac_ext
1.128 moko 14792: LDFLAGS=$save_LDFLAGS
14793: libdir=$save_libdir
1.237 moko 14794: ;;
14795: esac
1.128 moko 14796: fi
14797:
14798: shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14799:
14800: # This implies no fast_install, which is unacceptable.
14801: # Some rework will be needed to allow for fast_install
14802: # before this can be enabled.
14803: hardcode_into_libs=yes
14804:
1.237 moko 14805: # Ideally, we could use ldconfig to report *all* directories which are
14806: # searched for libraries, however this is still not possible. Aside from not
14807: # being certain /sbin/ldconfig is available, command
14808: # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
14809: # even though it is searched at run-time. Try to do the best guess by
14810: # appending ld.so.conf contents (and includes) to the search path.
1.128 moko 14811: if test -f /etc/ld.so.conf; then
14812: 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' ' '`
14813: sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14814: fi
14815:
14816: # We used to test for /lib/ld.so.1 and disable shared libraries on
14817: # powerpc, because MkLinux only supported shared libraries with the
14818: # GNU dynamic linker. Since this was broken with cross compilers,
14819: # most powerpc-linux boxes support dynamic linking these days and
14820: # people can always --disable-shared, the test was removed, and we
14821: # assume the GNU/Linux dynamic linker is in use.
14822: dynamic_linker='GNU/Linux ld.so'
14823: ;;
14824:
1.237 moko 14825: netbsdelf*-gnu)
14826: version_type=linux
14827: need_lib_prefix=no
14828: need_version=no
14829: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14830: soname_spec='$libname$release$shared_ext$major'
14831: shlibpath_var=LD_LIBRARY_PATH
14832: shlibpath_overrides_runpath=no
14833: hardcode_into_libs=yes
14834: dynamic_linker='NetBSD ld.elf_so'
14835: ;;
14836:
14837: netbsdelf*-gnu)
14838: version_type=linux
14839: need_lib_prefix=no
14840: need_version=no
14841: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14842: soname_spec='${libname}${release}${shared_ext}$major'
14843: shlibpath_var=LD_LIBRARY_PATH
14844: shlibpath_overrides_runpath=no
14845: hardcode_into_libs=yes
14846: dynamic_linker='NetBSD ld.elf_so'
14847: ;;
14848:
1.128 moko 14849: netbsd*)
14850: version_type=sunos
14851: need_lib_prefix=no
14852: need_version=no
14853: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
1.237 moko 14854: library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
1.128 moko 14855: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14856: dynamic_linker='NetBSD (a.out) ld.so'
14857: else
1.237 moko 14858: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14859: soname_spec='$libname$release$shared_ext$major'
1.128 moko 14860: dynamic_linker='NetBSD ld.elf_so'
14861: fi
14862: shlibpath_var=LD_LIBRARY_PATH
14863: shlibpath_overrides_runpath=yes
14864: hardcode_into_libs=yes
14865: ;;
14866:
1.237 moko 14867: *-mlibc)
14868: version_type=linux # correct to gnu/linux during the next big refactor
14869: need_lib_prefix=no
14870: need_version=no
14871: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14872: soname_spec='$libname$release$shared_ext$major'
14873: dynamic_linker='mlibc ld.so'
14874: shlibpath_var=LD_LIBRARY_PATH
14875: shlibpath_overrides_runpath=no
14876: hardcode_into_libs=yes
14877: ;;
14878:
1.128 moko 14879: newsos6)
14880: version_type=linux # correct to gnu/linux during the next big refactor
1.237 moko 14881: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
1.128 moko 14882: shlibpath_var=LD_LIBRARY_PATH
14883: shlibpath_overrides_runpath=yes
14884: ;;
14885:
14886: *nto* | *qnx*)
14887: version_type=qnx
14888: need_lib_prefix=no
14889: need_version=no
1.237 moko 14890: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14891: soname_spec='$libname$release$shared_ext$major'
1.128 moko 14892: shlibpath_var=LD_LIBRARY_PATH
14893: shlibpath_overrides_runpath=no
14894: hardcode_into_libs=yes
14895: dynamic_linker='ldqnx.so'
14896: ;;
14897:
14898: openbsd*)
14899: version_type=sunos
1.237 moko 14900: sys_lib_dlsearch_path_spec=/usr/lib
1.128 moko 14901: need_lib_prefix=no
1.237 moko 14902: if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
14903: need_version=no
14904: else
14905: need_version=yes
14906: fi
14907: library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
1.128 moko 14908: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14909: shlibpath_var=LD_LIBRARY_PATH
1.237 moko 14910: shlibpath_overrides_runpath=yes
1.128 moko 14911: ;;
14912:
14913: os2*)
14914: libname_spec='$name'
1.237 moko 14915: version_type=windows
14916: shrext_cmds=.dll
14917: need_version=no
1.128 moko 14918: need_lib_prefix=no
1.237 moko 14919: # OS/2 can only load a DLL with a base name of 8 characters or less.
14920: soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
14921: v=$($ECHO $release$versuffix | tr -d .-);
14922: n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
14923: $ECHO $n$v`$shared_ext'
14924: library_names_spec='${libname}_dll.$libext'
1.128 moko 14925: dynamic_linker='OS/2 ld.exe'
1.237 moko 14926: shlibpath_var=BEGINLIBPATH
14927: sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14928: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14929: postinstall_cmds='base_file=`basename \$file`~
14930: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
14931: dldir=$destdir/`dirname \$dlpath`~
14932: test -d \$dldir || mkdir -p \$dldir~
14933: $install_prog $dir/$dlname \$dldir/$dlname~
14934: chmod a+x \$dldir/$dlname~
14935: if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14936: eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14937: fi'
14938: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
14939: dlpath=$dir/\$dldll~
14940: $RM \$dlpath'
1.128 moko 14941: ;;
14942:
14943: osf3* | osf4* | osf5*)
14944: version_type=osf
14945: need_lib_prefix=no
14946: need_version=no
1.237 moko 14947: soname_spec='$libname$release$shared_ext$major'
14948: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
1.128 moko 14949: shlibpath_var=LD_LIBRARY_PATH
14950: sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
1.237 moko 14951: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
1.128 moko 14952: ;;
14953:
14954: rdos*)
14955: dynamic_linker=no
14956: ;;
14957:
1.237 moko 14958: serenity*)
14959: version_type=linux # correct to gnu/linux during the next big refactor
14960: need_lib_prefix=no
14961: need_version=no
14962: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14963: soname_spec='$libname$release$shared_ext$major'
14964: shlibpath_var=LD_LIBRARY_PATH
14965: shlibpath_overrides_runpath=no
14966: dynamic_linker='SerenityOS LibELF'
14967: ;;
14968:
1.128 moko 14969: solaris*)
14970: version_type=linux # correct to gnu/linux during the next big refactor
14971: need_lib_prefix=no
14972: need_version=no
1.237 moko 14973: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14974: soname_spec='$libname$release$shared_ext$major'
1.128 moko 14975: shlibpath_var=LD_LIBRARY_PATH
14976: shlibpath_overrides_runpath=yes
14977: hardcode_into_libs=yes
14978: # ldd complains unless libraries are executable
14979: postinstall_cmds='chmod +x $lib'
14980: ;;
14981:
14982: sunos4*)
14983: version_type=sunos
1.237 moko 14984: library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
1.128 moko 14985: finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14986: shlibpath_var=LD_LIBRARY_PATH
14987: shlibpath_overrides_runpath=yes
1.237 moko 14988: if test yes = "$with_gnu_ld"; then
1.128 moko 14989: need_lib_prefix=no
14990: fi
14991: need_version=yes
14992: ;;
14993:
14994: sysv4 | sysv4.3*)
14995: version_type=linux # correct to gnu/linux during the next big refactor
1.237 moko 14996: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14997: soname_spec='$libname$release$shared_ext$major'
1.128 moko 14998: shlibpath_var=LD_LIBRARY_PATH
14999: case $host_vendor in
15000: sni)
15001: shlibpath_overrides_runpath=no
15002: need_lib_prefix=no
15003: runpath_var=LD_RUN_PATH
15004: ;;
15005: siemens)
15006: need_lib_prefix=no
15007: ;;
15008: motorola)
15009: need_lib_prefix=no
15010: need_version=no
15011: shlibpath_overrides_runpath=no
15012: sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15013: ;;
15014: esac
15015: ;;
15016:
15017: sysv4*MP*)
1.237 moko 15018: if test -d /usr/nec; then
1.128 moko 15019: version_type=linux # correct to gnu/linux during the next big refactor
1.237 moko 15020: library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
15021: soname_spec='$libname$shared_ext.$major'
1.128 moko 15022: shlibpath_var=LD_LIBRARY_PATH
15023: fi
15024: ;;
15025:
15026: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
1.237 moko 15027: version_type=sco
1.128 moko 15028: need_lib_prefix=no
15029: need_version=no
1.237 moko 15030: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
15031: soname_spec='$libname$release$shared_ext$major'
1.128 moko 15032: shlibpath_var=LD_LIBRARY_PATH
15033: shlibpath_overrides_runpath=yes
15034: hardcode_into_libs=yes
1.237 moko 15035: if test yes = "$with_gnu_ld"; then
1.128 moko 15036: sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15037: else
15038: sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15039: case $host_os in
15040: sco3.2v5*)
15041: sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15042: ;;
15043: esac
15044: fi
15045: sys_lib_dlsearch_path_spec='/usr/lib'
15046: ;;
15047:
15048: tpf*)
15049: # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15050: version_type=linux # correct to gnu/linux during the next big refactor
15051: need_lib_prefix=no
15052: need_version=no
1.237 moko 15053: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
1.128 moko 15054: shlibpath_var=LD_LIBRARY_PATH
15055: shlibpath_overrides_runpath=no
15056: hardcode_into_libs=yes
15057: ;;
15058:
15059: uts4*)
15060: version_type=linux # correct to gnu/linux during the next big refactor
1.237 moko 15061: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15062: soname_spec='$libname$release$shared_ext$major'
1.128 moko 15063: shlibpath_var=LD_LIBRARY_PATH
15064: ;;
15065:
1.237 moko 15066: emscripten*)
15067: version_type=none
15068: need_lib_prefix=no
15069: need_version=no
15070: library_names_spec='$libname$release$shared_ext'
15071: soname_spec='$libname$release$shared_ext'
15072: finish_cmds=
15073: dynamic_linker="Emscripten linker"
15074: lt_prog_compiler_wl=
15075: lt_prog_compiler_pic=
15076: lt_prog_compiler_static=
1.128 moko 15077:
15078:
1.237 moko 15079: if test yes = "$GCC"; then
15080: lt_prog_compiler_wl='-Wl,'
15081: lt_prog_compiler_static='-static'
1.128 moko 15082:
1.237 moko 15083: case $host_os in
15084: aix*)
15085: # All AIX code is PIC.
15086: if test ia64 = "$host_cpu"; then
15087: # AIX 5 now supports IA64 processor
15088: lt_prog_compiler_static='-Bstatic'
15089: fi
15090: lt_prog_compiler_pic='-fPIC'
15091: ;;
1.128 moko 15092:
1.237 moko 15093: amigaos*)
15094: case $host_cpu in
15095: powerpc)
15096: # see comment about AmigaOS4 .so support
15097: lt_prog_compiler_pic='-fPIC'
15098: ;;
15099: m68k)
15100: # FIXME: we need at least 68020 code to build shared libraries, but
15101: # adding the '-m68020' flag to GCC prevents building anything better,
15102: # like '-m68040'.
15103: lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
15104: ;;
15105: esac
15106: ;;
1.128 moko 15107:
1.237 moko 15108: beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15109: # PIC is the default for these OSes.
15110: ;;
1.128 moko 15111:
1.237 moko 15112: mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
15113: # This hack is so that the source file can tell whether it is being
15114: # built for inclusion in a dll (and should export symbols for example).
15115: # Although the cygwin gcc ignores -fPIC, still need this for old-style
15116: # (--disable-auto-import) libraries
15117: lt_prog_compiler_pic='-DDLL_EXPORT'
15118: case $host_os in
15119: os2*)
15120: lt_prog_compiler_static='$wl-static'
15121: ;;
15122: esac
15123: ;;
1.128 moko 15124:
1.237 moko 15125: darwin* | rhapsody*)
15126: # PIC is the default on this platform
15127: # Common symbols not allowed in MH_DYLIB files
15128: lt_prog_compiler_pic='-fno-common'
15129: ;;
1.128 moko 15130:
1.237 moko 15131: haiku*)
15132: # PIC is the default for Haiku.
15133: # The "-static" flag exists, but is broken.
15134: lt_prog_compiler_static=
15135: ;;
1.128 moko 15136:
1.237 moko 15137: hpux*)
15138: # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15139: # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
15140: # sets the default TLS model and affects inlining.
15141: case $host_cpu in
15142: hppa*64*)
15143: # +Z the default
15144: ;;
15145: *)
15146: lt_prog_compiler_pic='-fPIC'
15147: ;;
15148: esac
15149: ;;
1.128 moko 15150:
1.237 moko 15151: interix[3-9]*)
15152: # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15153: # Instead, we relocate shared libraries at runtime.
15154: ;;
1.128 moko 15155:
1.237 moko 15156: msdosdjgpp*)
15157: # Just because we use GCC doesn't mean we suddenly get shared libraries
15158: # on systems that don't support them.
15159: lt_prog_compiler_can_build_shared=no
15160: enable_shared=no
15161: ;;
1.128 moko 15162:
1.237 moko 15163: *nto* | *qnx*)
15164: # QNX uses GNU C++, but need to define -shared option too, otherwise
15165: # it will coredump.
15166: lt_prog_compiler_pic='-fPIC -shared'
15167: ;;
1.128 moko 15168:
1.237 moko 15169: sysv4*MP*)
15170: if test -d /usr/nec; then
15171: lt_prog_compiler_pic=-Kconform_pic
15172: fi
15173: ;;
1.128 moko 15174:
1.237 moko 15175: *)
15176: lt_prog_compiler_pic='-fPIC'
15177: ;;
15178: esac
1.128 moko 15179:
1.237 moko 15180: case $cc_basename in
15181: nvcc*) # Cuda Compiler Driver 2.2
15182: lt_prog_compiler_wl='-Xlinker '
15183: if test -n "$lt_prog_compiler_pic"; then
15184: lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
15185: fi
15186: ;;
15187: esac
15188: else
15189: # PORTME Check for flag to pass linker flags through the system compiler.
15190: case $host_os in
15191: aix*)
15192: lt_prog_compiler_wl='-Wl,'
15193: if test ia64 = "$host_cpu"; then
15194: # AIX 5 now supports IA64 processor
15195: lt_prog_compiler_static='-Bstatic'
15196: else
15197: lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
15198: fi
15199: ;;
1.128 moko 15200:
1.237 moko 15201: darwin* | rhapsody*)
15202: # PIC is the default on this platform
15203: # Common symbols not allowed in MH_DYLIB files
15204: lt_prog_compiler_pic='-fno-common'
15205: case $cc_basename in
15206: nagfor*)
15207: # NAG Fortran compiler
15208: lt_prog_compiler_wl='-Wl,-Wl,,'
15209: lt_prog_compiler_pic='-PIC'
15210: lt_prog_compiler_static='-Bstatic'
15211: ;;
15212: esac
15213: ;;
1.128 moko 15214:
1.237 moko 15215: mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
15216: # This hack is so that the source file can tell whether it is being
15217: # built for inclusion in a dll (and should export symbols for example).
15218: lt_prog_compiler_pic='-DDLL_EXPORT'
15219: case $host_os in
15220: os2*)
15221: lt_prog_compiler_static='$wl-static'
15222: ;;
15223: esac
15224: ;;
1.128 moko 15225:
1.237 moko 15226: hpux9* | hpux10* | hpux11*)
15227: lt_prog_compiler_wl='-Wl,'
15228: # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15229: # not for PA HP-UX.
15230: case $host_cpu in
15231: hppa*64*|ia64*)
15232: # +Z the default
15233: ;;
15234: *)
15235: lt_prog_compiler_pic='+Z'
15236: ;;
15237: esac
15238: # Is there a better lt_prog_compiler_static that works with the bundled CC?
15239: lt_prog_compiler_static='$wl-a ${wl}archive'
15240: ;;
1.128 moko 15241:
1.237 moko 15242: irix5* | irix6* | nonstopux*)
15243: lt_prog_compiler_wl='-Wl,'
15244: # PIC (with -KPIC) is the default.
15245: lt_prog_compiler_static='-non_shared'
15246: ;;
1.128 moko 15247:
1.237 moko 15248: linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15249: case $cc_basename in
15250: # old Intel for x86_64, which still supported -KPIC.
15251: ecc*)
15252: lt_prog_compiler_wl='-Wl,'
15253: lt_prog_compiler_pic='-KPIC'
15254: lt_prog_compiler_static='-static'
15255: ;;
15256: *flang* | ftn | f18* | f95*)
15257: # Flang compiler.
15258: lt_prog_compiler_wl='-Wl,'
15259: lt_prog_compiler_pic='-fPIC'
15260: lt_prog_compiler_static='-static'
15261: ;;
15262: # flang / f18. f95 an alias for gfortran or flang on Debian
15263: flang* | f18* | f95*)
15264: lt_prog_compiler_wl='-Wl,'
15265: lt_prog_compiler_pic='-fPIC'
15266: lt_prog_compiler_static='-static'
15267: ;;
15268: # icc used to be incompatible with GCC.
15269: # ICC 10 doesn't accept -KPIC any more.
15270: icc* | ifort*)
15271: lt_prog_compiler_wl='-Wl,'
15272: lt_prog_compiler_pic='-fPIC'
15273: lt_prog_compiler_static='-static'
15274: ;;
15275: # Lahey Fortran 8.1.
15276: lf95*)
15277: lt_prog_compiler_wl='-Wl,'
15278: lt_prog_compiler_pic='--shared'
15279: lt_prog_compiler_static='--static'
15280: ;;
15281: nagfor*)
15282: # NAG Fortran compiler
15283: lt_prog_compiler_wl='-Wl,-Wl,,'
15284: lt_prog_compiler_pic='-PIC'
15285: lt_prog_compiler_static='-Bstatic'
15286: ;;
15287: tcc*)
15288: # Fabrice Bellard et al's Tiny C Compiler
15289: lt_prog_compiler_wl='-Wl,'
15290: lt_prog_compiler_pic='-fPIC'
15291: lt_prog_compiler_static='-static'
15292: ;;
15293: pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
15294: # Portland Group compilers (*not* the Pentium gcc compiler,
15295: # which looks to be a dead project)
15296: lt_prog_compiler_wl='-Wl,'
15297: lt_prog_compiler_pic='-fpic'
15298: lt_prog_compiler_static='-Bstatic'
15299: ;;
15300: ccc*)
15301: lt_prog_compiler_wl='-Wl,'
15302: # All Alpha code is PIC.
15303: lt_prog_compiler_static='-non_shared'
15304: ;;
15305: xl* | bgxl* | bgf* | mpixl*)
15306: # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
15307: lt_prog_compiler_wl='-Wl,'
15308: lt_prog_compiler_pic='-qpic'
15309: lt_prog_compiler_static='-qstaticlink'
15310: ;;
15311: *)
15312: case `$CC -V 2>&1 | $SED 5q` in
15313: *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
15314: # Sun Fortran 8.3 passes all unrecognized flags to the linker
15315: lt_prog_compiler_pic='-KPIC'
15316: lt_prog_compiler_static='-Bstatic'
15317: lt_prog_compiler_wl=''
15318: ;;
15319: *Sun\ F* | *Sun*Fortran*)
15320: lt_prog_compiler_pic='-KPIC'
15321: lt_prog_compiler_static='-Bstatic'
15322: lt_prog_compiler_wl='-Qoption ld '
15323: ;;
15324: *Sun\ C*)
15325: # Sun C 5.9
15326: lt_prog_compiler_pic='-KPIC'
15327: lt_prog_compiler_static='-Bstatic'
15328: lt_prog_compiler_wl='-Wl,'
15329: ;;
15330: *Intel*\ [CF]*Compiler*)
15331: lt_prog_compiler_wl='-Wl,'
15332: lt_prog_compiler_pic='-fPIC'
15333: lt_prog_compiler_static='-static'
15334: ;;
15335: *Portland\ Group*)
15336: lt_prog_compiler_wl='-Wl,'
15337: lt_prog_compiler_pic='-fpic'
15338: lt_prog_compiler_static='-Bstatic'
15339: ;;
15340: esac
15341: ;;
15342: esac
15343: ;;
1.128 moko 15344:
1.237 moko 15345: newsos6)
15346: lt_prog_compiler_pic='-KPIC'
15347: lt_prog_compiler_static='-Bstatic'
15348: ;;
1.128 moko 15349:
1.237 moko 15350: *-mlibc)
15351: lt_prog_compiler_wl='-Wl,'
15352: lt_prog_compiler_pic='-fPIC'
15353: lt_prog_compiler_static='-static'
15354: ;;
1.128 moko 15355:
1.237 moko 15356: *nto* | *qnx*)
15357: # QNX uses GNU C++, but need to define -shared option too, otherwise
15358: # it will coredump.
15359: lt_prog_compiler_pic='-fPIC -shared'
15360: ;;
1.128 moko 15361:
1.237 moko 15362: osf3* | osf4* | osf5*)
15363: lt_prog_compiler_wl='-Wl,'
15364: # All OSF/1 code is PIC.
15365: lt_prog_compiler_static='-non_shared'
15366: ;;
1.128 moko 15367:
1.237 moko 15368: rdos*)
15369: lt_prog_compiler_static='-non_shared'
15370: ;;
1.128 moko 15371:
1.237 moko 15372: serenity*)
15373: ;;
15374:
15375: solaris*)
15376: lt_prog_compiler_pic='-KPIC'
15377: lt_prog_compiler_static='-Bstatic'
15378: case $cc_basename in
15379: f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
15380: lt_prog_compiler_wl='-Qoption ld ';;
15381: *)
15382: lt_prog_compiler_wl='-Wl,';;
15383: esac
15384: ;;
15385:
15386: sunos4*)
15387: lt_prog_compiler_wl='-Qoption ld '
15388: lt_prog_compiler_pic='-PIC'
15389: lt_prog_compiler_static='-Bstatic'
15390: ;;
15391:
15392: sysv4 | sysv4.2uw2* | sysv4.3*)
15393: lt_prog_compiler_wl='-Wl,'
15394: lt_prog_compiler_pic='-KPIC'
15395: lt_prog_compiler_static='-Bstatic'
15396: ;;
15397:
15398: sysv4*MP*)
15399: if test -d /usr/nec; then
15400: lt_prog_compiler_pic='-Kconform_pic'
15401: lt_prog_compiler_static='-Bstatic'
15402: fi
15403: ;;
15404:
15405: sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15406: lt_prog_compiler_wl='-Wl,'
15407: lt_prog_compiler_pic='-KPIC'
15408: lt_prog_compiler_static='-Bstatic'
15409: ;;
15410:
15411: unicos*)
15412: lt_prog_compiler_wl='-Wl,'
15413: lt_prog_compiler_can_build_shared=no
15414: ;;
15415:
15416: uts4*)
15417: lt_prog_compiler_pic='-pic'
15418: lt_prog_compiler_static='-Bstatic'
15419: ;;
15420:
15421: *)
15422: lt_prog_compiler_can_build_shared=no
15423: ;;
15424: esac
15425: fi
15426:
15427: case $host_os in
15428: # For platforms that do not support PIC, -DPIC is meaningless:
15429: *djgpp*)
15430: lt_prog_compiler_pic=
15431: ;;
15432: *)
15433: lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15434: ;;
15435: esac
15436:
15437: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15438: printf %s "checking for $compiler option to produce PIC... " >&6; }
15439: if test ${lt_cv_prog_compiler_pic+y}
15440: then :
15441: printf %s "(cached) " >&6
15442: else case e in #(
15443: e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;;
15444: esac
15445: fi
15446: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
15447: printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
15448: lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
15449:
15450: #
15451: # Check to make sure the PIC flag actually works.
15452: #
15453: if test -n "$lt_prog_compiler_pic"; then
15454: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
15455: printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
15456: if test ${lt_cv_prog_compiler_pic_works+y}
15457: then :
15458: printf %s "(cached) " >&6
15459: else case e in #(
15460: e) lt_cv_prog_compiler_pic_works=no
15461: ac_outfile=conftest.$ac_objext
15462: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15463: lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
15464: # Insert the option either (1) after the last *FLAGS variable, or
15465: # (2) before a word containing "conftest.", or (3) at the end.
15466: # Note that $ac_compile itself does not contain backslashes and begins
15467: # with a dollar sign (not a hyphen), so the echo should work correctly.
15468: # The option is referenced via a variable to avoid confusing sed.
15469: lt_compile=`echo "$ac_compile" | $SED \
15470: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15471: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15472: -e 's:$: $lt_compiler_flag:'`
15473: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15474: (eval "$lt_compile" 2>conftest.err)
15475: ac_status=$?
15476: cat conftest.err >&5
15477: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15478: if (exit $ac_status) && test -s "$ac_outfile"; then
15479: # The compiler can only warn and ignore the option if not recognized
15480: # So say no if there are warnings other than the usual output.
15481: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15482: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15483: if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15484: lt_cv_prog_compiler_pic_works=yes
15485: fi
15486: fi
15487: $RM conftest*
15488: ;;
15489: esac
15490: fi
15491: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
15492: printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
15493:
15494: if test yes = "$lt_cv_prog_compiler_pic_works"; then
15495: case $lt_prog_compiler_pic in
15496: "" | " "*) ;;
15497: *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15498: esac
15499: else
15500: lt_prog_compiler_pic=
15501: lt_prog_compiler_can_build_shared=no
15502: fi
15503:
15504: fi
15505:
15506:
15507:
15508:
15509:
15510: #
15511: # Check to make sure the static flag actually works.
15512: #
15513: wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15514: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15515: printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15516: if test ${lt_cv_prog_compiler_static_works+y}
15517: then :
15518: printf %s "(cached) " >&6
15519: else case e in #(
15520: e) lt_cv_prog_compiler_static_works=no
15521: save_LDFLAGS=$LDFLAGS
15522: LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15523: echo "$lt_simple_link_test_code" > conftest.$ac_ext
15524: if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15525: # The linker can only warn and ignore the option if not recognized
15526: # So say no if there are warnings
15527: if test -s conftest.err; then
15528: # Append any errors to the config.log.
15529: cat conftest.err 1>&5
15530: $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15531: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15532: if diff conftest.exp conftest.er2 >/dev/null; then
15533: lt_cv_prog_compiler_static_works=yes
15534: fi
15535: else
15536: lt_cv_prog_compiler_static_works=yes
15537: fi
15538: fi
15539: $RM -r conftest*
15540: LDFLAGS=$save_LDFLAGS
15541: ;;
15542: esac
15543: fi
15544: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
15545: printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
15546:
15547: if test yes = "$lt_cv_prog_compiler_static_works"; then
15548: :
15549: else
15550: lt_prog_compiler_static=
15551: fi
15552:
15553:
15554:
15555: ='-fPIC'
15556: archive_cmds='$CC -sSIDE_MODULE=2 -shared $libobjs $deplibs $compiler_flags -o $lib'
15557: archive_expsym_cmds='$SED "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -sSIDE_MODULE=2 -shared $libobjs $deplibs $compiler_flags -o $lib -s EXPORTED_FUNCTIONS=@$output_objdir/$soname.expsym'
15558: archive_cmds_need_lc=no
15559: no_undefined_flag=
15560: ;;
15561:
15562: *)
15563: dynamic_linker=no
15564: ;;
15565: esac
15566: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15567: printf "%s\n" "$dynamic_linker" >&6; }
15568: test no = "$dynamic_linker" && can_build_shared=no
15569:
15570: variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15571: if test yes = "$GCC"; then
15572: variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15573: fi
15574:
15575: if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
15576: sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
15577: fi
15578:
15579: if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
15580: sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
15581: fi
15582:
15583: # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
15584: configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
15585:
15586: # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
15587: func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
15588:
15589: # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
15590: configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
1.128 moko 15591:
15592:
15593:
15594:
15595:
15596:
15597:
15598:
15599:
15600:
15601:
15602:
15603:
15604:
15605:
15606:
15607:
15608:
15609:
15610:
15611:
15612:
15613:
15614:
15615:
15616:
15617:
15618:
15619:
15620:
15621:
15622:
15623:
15624:
15625:
15626:
15627:
15628:
15629:
15630:
15631:
15632:
15633:
15634:
15635:
15636:
15637:
15638:
15639:
15640:
15641:
15642:
15643:
15644:
15645:
15646:
15647:
15648:
15649:
15650:
15651:
15652:
15653:
15654:
15655:
15656:
15657:
15658:
1.237 moko 15659:
15660:
15661:
15662:
15663:
15664:
15665:
15666:
15667:
15668:
15669:
15670:
15671:
15672:
15673:
15674:
15675:
15676:
15677:
15678:
15679:
15680:
15681:
15682:
15683:
15684:
15685:
15686:
15687:
15688: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15689: printf %s "checking how to hardcode library paths into programs... " >&6; }
1.128 moko 15690: hardcode_action=
15691: if test -n "$hardcode_libdir_flag_spec" ||
15692: test -n "$runpath_var" ||
1.237 moko 15693: test yes = "$hardcode_automatic"; then
1.128 moko 15694:
15695: # We can hardcode non-existent directories.
1.237 moko 15696: if test no != "$hardcode_direct" &&
1.128 moko 15697: # If the only mechanism to avoid hardcoding is shlibpath_var, we
15698: # have to relink, otherwise we might link with an installed library
15699: # when we should be linking with a yet-to-be-installed one
1.237 moko 15700: ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
15701: test no != "$hardcode_minus_L"; then
1.128 moko 15702: # Linking always hardcodes the temporary library directory.
15703: hardcode_action=relink
15704: else
15705: # We can link without hardcoding, and we can hardcode nonexisting dirs.
15706: hardcode_action=immediate
15707: fi
15708: else
15709: # We cannot hardcode anything, or else we can only hardcode existing
15710: # directories.
15711: hardcode_action=unsupported
15712: fi
1.237 moko 15713: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
15714: printf "%s\n" "$hardcode_action" >&6; }
1.128 moko 15715:
1.237 moko 15716: if test relink = "$hardcode_action" ||
15717: test yes = "$inherit_rpath"; then
1.128 moko 15718: # Fast installation is not supported
15719: enable_fast_install=no
1.237 moko 15720: elif test yes = "$shlibpath_overrides_runpath" ||
15721: test no = "$enable_shared"; then
1.128 moko 15722: # Fast installation is not necessary
15723: enable_fast_install=needless
15724: fi
15725:
15726:
15727:
15728:
15729:
15730:
1.237 moko 15731: if test yes != "$enable_dlopen"; then
1.128 moko 15732: enable_dlopen=unknown
15733: enable_dlopen_self=unknown
15734: enable_dlopen_self_static=unknown
15735: else
15736: lt_cv_dlopen=no
15737: lt_cv_dlopen_libs=
15738:
15739: case $host_os in
15740: beos*)
1.237 moko 15741: lt_cv_dlopen=load_add_on
1.128 moko 15742: lt_cv_dlopen_libs=
15743: lt_cv_dlopen_self=yes
15744: ;;
15745:
1.237 moko 15746: mingw* | windows* | pw32* | cegcc*)
15747: lt_cv_dlopen=LoadLibrary
1.128 moko 15748: lt_cv_dlopen_libs=
15749: ;;
15750:
15751: cygwin*)
1.237 moko 15752: lt_cv_dlopen=dlopen
1.128 moko 15753: lt_cv_dlopen_libs=
15754: ;;
15755:
15756: darwin*)
1.237 moko 15757: # if libdl is installed we need to link against it
15758: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
15759: printf %s "checking for dlopen in -ldl... " >&6; }
15760: if test ${ac_cv_lib_dl_dlopen+y}
15761: then :
15762: printf %s "(cached) " >&6
15763: else case e in #(
15764: e) ac_check_lib_save_LIBS=$LIBS
1.128 moko 15765: LIBS="-ldl $LIBS"
1.150 moko 15766: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 15767: /* end confdefs.h. */
15768:
1.150 moko 15769: /* Override any GCC internal prototype to avoid an error.
15770: Use char because int might match the return type of a GCC
1.237 moko 15771: builtin and then its argument prototype would still apply.
15772: The 'extern "C"' is for builds by C++ compilers;
15773: although this is not generally supported in C code supporting it here
15774: has little cost and some practical benefit (sr 110532). */
1.128 moko 15775: #ifdef __cplusplus
15776: extern "C"
15777: #endif
1.237 moko 15778: char dlopen (void);
1.128 moko 15779: int
1.237 moko 15780: main (void)
1.128 moko 15781: {
1.150 moko 15782: return dlopen ();
1.128 moko 15783: ;
15784: return 0;
15785: }
15786: _ACEOF
1.237 moko 15787: if ac_fn_c_try_link "$LINENO"
15788: then :
1.128 moko 15789: ac_cv_lib_dl_dlopen=yes
1.237 moko 15790: else case e in #(
15791: e) ac_cv_lib_dl_dlopen=no ;;
15792: esac
1.128 moko 15793: fi
1.237 moko 15794: rm -f core conftest.err conftest.$ac_objext conftest.beam \
1.150 moko 15795: conftest$ac_exeext conftest.$ac_ext
1.237 moko 15796: LIBS=$ac_check_lib_save_LIBS ;;
15797: esac
1.128 moko 15798: fi
1.237 moko 15799: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
15800: printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
15801: if test "x$ac_cv_lib_dl_dlopen" = xyes
15802: then :
15803: lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
15804: else case e in #(
15805: e)
15806: lt_cv_dlopen=dyld
1.128 moko 15807: lt_cv_dlopen_libs=
15808: lt_cv_dlopen_self=yes
1.237 moko 15809: ;;
15810: esac
15811: fi
1.128 moko 15812:
1.237 moko 15813: ;;
1.128 moko 15814:
1.237 moko 15815: tpf*)
15816: # Don't try to run any link tests for TPF. We know it's impossible
15817: # because TPF is a cross-compiler, and we know how we open DSOs.
15818: lt_cv_dlopen=dlopen
15819: lt_cv_dlopen_libs=
15820: lt_cv_dlopen_self=no
1.128 moko 15821: ;;
15822:
15823: *)
1.150 moko 15824: ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
1.237 moko 15825: if test "x$ac_cv_func_shl_load" = xyes
15826: then :
15827: lt_cv_dlopen=shl_load
15828: else case e in #(
15829: e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
15830: printf %s "checking for shl_load in -ldld... " >&6; }
15831: if test ${ac_cv_lib_dld_shl_load+y}
15832: then :
15833: printf %s "(cached) " >&6
15834: else case e in #(
15835: e) ac_check_lib_save_LIBS=$LIBS
1.128 moko 15836: LIBS="-ldld $LIBS"
1.150 moko 15837: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 15838: /* end confdefs.h. */
15839:
1.150 moko 15840: /* Override any GCC internal prototype to avoid an error.
15841: Use char because int might match the return type of a GCC
1.237 moko 15842: builtin and then its argument prototype would still apply.
15843: The 'extern "C"' is for builds by C++ compilers;
15844: although this is not generally supported in C code supporting it here
15845: has little cost and some practical benefit (sr 110532). */
1.128 moko 15846: #ifdef __cplusplus
15847: extern "C"
15848: #endif
1.237 moko 15849: char shl_load (void);
1.128 moko 15850: int
1.237 moko 15851: main (void)
1.128 moko 15852: {
1.150 moko 15853: return shl_load ();
1.128 moko 15854: ;
15855: return 0;
15856: }
15857: _ACEOF
1.237 moko 15858: if ac_fn_c_try_link "$LINENO"
15859: then :
1.128 moko 15860: ac_cv_lib_dld_shl_load=yes
1.237 moko 15861: else case e in #(
15862: e) ac_cv_lib_dld_shl_load=no ;;
15863: esac
1.128 moko 15864: fi
1.237 moko 15865: rm -f core conftest.err conftest.$ac_objext conftest.beam \
1.150 moko 15866: conftest$ac_exeext conftest.$ac_ext
1.237 moko 15867: LIBS=$ac_check_lib_save_LIBS ;;
15868: esac
1.128 moko 15869: fi
1.237 moko 15870: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
15871: printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
15872: if test "x$ac_cv_lib_dld_shl_load" = xyes
15873: then :
15874: lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
15875: else case e in #(
15876: e) ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
15877: if test "x$ac_cv_func_dlopen" = xyes
15878: then :
15879: lt_cv_dlopen=dlopen
15880: else case e in #(
15881: e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
15882: printf %s "checking for dlopen in -ldl... " >&6; }
15883: if test ${ac_cv_lib_dl_dlopen+y}
15884: then :
15885: printf %s "(cached) " >&6
15886: else case e in #(
15887: e) ac_check_lib_save_LIBS=$LIBS
1.128 moko 15888: LIBS="-ldl $LIBS"
1.150 moko 15889: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 15890: /* end confdefs.h. */
15891:
1.150 moko 15892: /* Override any GCC internal prototype to avoid an error.
15893: Use char because int might match the return type of a GCC
1.237 moko 15894: builtin and then its argument prototype would still apply.
15895: The 'extern "C"' is for builds by C++ compilers;
15896: although this is not generally supported in C code supporting it here
15897: has little cost and some practical benefit (sr 110532). */
1.128 moko 15898: #ifdef __cplusplus
15899: extern "C"
15900: #endif
1.237 moko 15901: char dlopen (void);
1.128 moko 15902: int
1.237 moko 15903: main (void)
1.128 moko 15904: {
1.150 moko 15905: return dlopen ();
1.128 moko 15906: ;
15907: return 0;
15908: }
15909: _ACEOF
1.237 moko 15910: if ac_fn_c_try_link "$LINENO"
15911: then :
1.128 moko 15912: ac_cv_lib_dl_dlopen=yes
1.237 moko 15913: else case e in #(
15914: e) ac_cv_lib_dl_dlopen=no ;;
15915: esac
1.128 moko 15916: fi
1.237 moko 15917: rm -f core conftest.err conftest.$ac_objext conftest.beam \
1.150 moko 15918: conftest$ac_exeext conftest.$ac_ext
1.237 moko 15919: LIBS=$ac_check_lib_save_LIBS ;;
15920: esac
1.128 moko 15921: fi
1.237 moko 15922: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
15923: printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
15924: if test "x$ac_cv_lib_dl_dlopen" = xyes
15925: then :
15926: lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
15927: else case e in #(
15928: e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
15929: printf %s "checking for dlopen in -lsvld... " >&6; }
15930: if test ${ac_cv_lib_svld_dlopen+y}
15931: then :
15932: printf %s "(cached) " >&6
15933: else case e in #(
15934: e) ac_check_lib_save_LIBS=$LIBS
1.128 moko 15935: LIBS="-lsvld $LIBS"
1.150 moko 15936: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 15937: /* end confdefs.h. */
15938:
1.150 moko 15939: /* Override any GCC internal prototype to avoid an error.
15940: Use char because int might match the return type of a GCC
1.237 moko 15941: builtin and then its argument prototype would still apply.
15942: The 'extern "C"' is for builds by C++ compilers;
15943: although this is not generally supported in C code supporting it here
15944: has little cost and some practical benefit (sr 110532). */
1.128 moko 15945: #ifdef __cplusplus
15946: extern "C"
15947: #endif
1.237 moko 15948: char dlopen (void);
1.128 moko 15949: int
1.237 moko 15950: main (void)
1.128 moko 15951: {
1.150 moko 15952: return dlopen ();
1.128 moko 15953: ;
15954: return 0;
15955: }
15956: _ACEOF
1.237 moko 15957: if ac_fn_c_try_link "$LINENO"
15958: then :
1.128 moko 15959: ac_cv_lib_svld_dlopen=yes
1.237 moko 15960: else case e in #(
15961: e) ac_cv_lib_svld_dlopen=no ;;
15962: esac
1.128 moko 15963: fi
1.237 moko 15964: rm -f core conftest.err conftest.$ac_objext conftest.beam \
1.150 moko 15965: conftest$ac_exeext conftest.$ac_ext
1.237 moko 15966: LIBS=$ac_check_lib_save_LIBS ;;
15967: esac
1.128 moko 15968: fi
1.237 moko 15969: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
15970: printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
15971: if test "x$ac_cv_lib_svld_dlopen" = xyes
15972: then :
15973: lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
15974: else case e in #(
15975: e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
15976: printf %s "checking for dld_link in -ldld... " >&6; }
15977: if test ${ac_cv_lib_dld_dld_link+y}
15978: then :
15979: printf %s "(cached) " >&6
15980: else case e in #(
15981: e) ac_check_lib_save_LIBS=$LIBS
1.128 moko 15982: LIBS="-ldld $LIBS"
1.150 moko 15983: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 15984: /* end confdefs.h. */
15985:
1.150 moko 15986: /* Override any GCC internal prototype to avoid an error.
15987: Use char because int might match the return type of a GCC
1.237 moko 15988: builtin and then its argument prototype would still apply.
15989: The 'extern "C"' is for builds by C++ compilers;
15990: although this is not generally supported in C code supporting it here
15991: has little cost and some practical benefit (sr 110532). */
1.128 moko 15992: #ifdef __cplusplus
15993: extern "C"
15994: #endif
1.237 moko 15995: char dld_link (void);
1.128 moko 15996: int
1.237 moko 15997: main (void)
1.128 moko 15998: {
1.150 moko 15999: return dld_link ();
1.128 moko 16000: ;
16001: return 0;
16002: }
16003: _ACEOF
1.237 moko 16004: if ac_fn_c_try_link "$LINENO"
16005: then :
1.128 moko 16006: ac_cv_lib_dld_dld_link=yes
1.237 moko 16007: else case e in #(
16008: e) ac_cv_lib_dld_dld_link=no ;;
16009: esac
1.150 moko 16010: fi
1.237 moko 16011: rm -f core conftest.err conftest.$ac_objext conftest.beam \
1.150 moko 16012: conftest$ac_exeext conftest.$ac_ext
1.237 moko 16013: LIBS=$ac_check_lib_save_LIBS ;;
16014: esac
1.128 moko 16015: fi
1.237 moko 16016: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
16017: printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
16018: if test "x$ac_cv_lib_dld_dld_link" = xyes
16019: then :
16020: lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
1.128 moko 16021: fi
16022:
1.237 moko 16023: ;;
16024: esac
1.128 moko 16025: fi
16026:
1.237 moko 16027: ;;
16028: esac
1.128 moko 16029: fi
16030:
1.237 moko 16031: ;;
16032: esac
1.128 moko 16033: fi
16034:
1.237 moko 16035: ;;
16036: esac
1.128 moko 16037: fi
16038:
1.237 moko 16039: ;;
16040: esac
1.128 moko 16041: fi
16042:
16043: ;;
16044: esac
16045:
1.237 moko 16046: if test no = "$lt_cv_dlopen"; then
16047: enable_dlopen=no
16048: else
1.128 moko 16049: enable_dlopen=yes
16050: fi
16051:
16052: case $lt_cv_dlopen in
16053: dlopen)
1.237 moko 16054: save_CPPFLAGS=$CPPFLAGS
16055: test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
1.128 moko 16056:
1.237 moko 16057: save_LDFLAGS=$LDFLAGS
1.128 moko 16058: wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
16059:
1.237 moko 16060: save_LIBS=$LIBS
1.128 moko 16061: LIBS="$lt_cv_dlopen_libs $LIBS"
16062:
1.237 moko 16063: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
16064: printf %s "checking whether a program can dlopen itself... " >&6; }
16065: if test ${lt_cv_dlopen_self+y}
16066: then :
16067: printf %s "(cached) " >&6
16068: else case e in #(
16069: e) if test yes = "$cross_compiling"; then :
1.128 moko 16070: lt_cv_dlopen_self=cross
16071: else
16072: lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16073: lt_status=$lt_dlunknown
16074: cat > conftest.$ac_ext <<_LT_EOF
16075: #line $LINENO "configure"
16076: #include "confdefs.h"
16077:
16078: #if HAVE_DLFCN_H
16079: #include <dlfcn.h>
16080: #endif
16081:
16082: #include <stdio.h>
16083:
16084: #ifdef RTLD_GLOBAL
16085: # define LT_DLGLOBAL RTLD_GLOBAL
16086: #else
16087: # ifdef DL_GLOBAL
16088: # define LT_DLGLOBAL DL_GLOBAL
16089: # else
16090: # define LT_DLGLOBAL 0
16091: # endif
16092: #endif
16093:
16094: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16095: find out it does not work in some platform. */
16096: #ifndef LT_DLLAZY_OR_NOW
16097: # ifdef RTLD_LAZY
16098: # define LT_DLLAZY_OR_NOW RTLD_LAZY
16099: # else
16100: # ifdef DL_LAZY
16101: # define LT_DLLAZY_OR_NOW DL_LAZY
16102: # else
16103: # ifdef RTLD_NOW
16104: # define LT_DLLAZY_OR_NOW RTLD_NOW
16105: # else
16106: # ifdef DL_NOW
16107: # define LT_DLLAZY_OR_NOW DL_NOW
16108: # else
16109: # define LT_DLLAZY_OR_NOW 0
16110: # endif
16111: # endif
16112: # endif
16113: # endif
16114: #endif
16115:
1.237 moko 16116: /* When -fvisibility=hidden is used, assume the code has been annotated
1.128 moko 16117: correspondingly for the symbols needed. */
1.237 moko 16118: #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
16119: int fnord (void) __attribute__((visibility("default")));
1.128 moko 16120: #endif
16121:
1.237 moko 16122: int fnord (void) { return 42; }
16123: int main (void)
1.128 moko 16124: {
16125: void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16126: int status = $lt_dlunknown;
16127:
16128: if (self)
16129: {
16130: if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
16131: else
16132: {
16133: if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16134: else puts (dlerror ());
16135: }
16136: /* dlclose (self); */
16137: }
16138: else
16139: puts (dlerror ());
16140:
16141: return status;
16142: }
16143: _LT_EOF
1.150 moko 16144: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
1.128 moko 16145: (eval $ac_link) 2>&5
16146: ac_status=$?
1.237 moko 16147: printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16148: test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
1.128 moko 16149: (./conftest; exit; ) >&5 2>/dev/null
16150: lt_status=$?
16151: case x$lt_status in
16152: x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
16153: x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
16154: x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
16155: esac
16156: else :
16157: # compilation failed
16158: lt_cv_dlopen_self=no
16159: fi
16160: fi
16161: rm -fr conftest*
16162:
1.237 moko 16163: ;;
16164: esac
1.128 moko 16165: fi
1.237 moko 16166: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
16167: printf "%s\n" "$lt_cv_dlopen_self" >&6; }
1.128 moko 16168:
1.237 moko 16169: if test yes = "$lt_cv_dlopen_self"; then
1.128 moko 16170: wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
1.237 moko 16171: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
16172: printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
16173: if test ${lt_cv_dlopen_self_static+y}
16174: then :
16175: printf %s "(cached) " >&6
16176: else case e in #(
16177: e) if test yes = "$cross_compiling"; then :
1.128 moko 16178: lt_cv_dlopen_self_static=cross
16179: else
16180: lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16181: lt_status=$lt_dlunknown
16182: cat > conftest.$ac_ext <<_LT_EOF
16183: #line $LINENO "configure"
16184: #include "confdefs.h"
16185:
16186: #if HAVE_DLFCN_H
16187: #include <dlfcn.h>
16188: #endif
16189:
16190: #include <stdio.h>
16191:
16192: #ifdef RTLD_GLOBAL
16193: # define LT_DLGLOBAL RTLD_GLOBAL
16194: #else
16195: # ifdef DL_GLOBAL
16196: # define LT_DLGLOBAL DL_GLOBAL
16197: # else
16198: # define LT_DLGLOBAL 0
16199: # endif
16200: #endif
16201:
16202: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16203: find out it does not work in some platform. */
16204: #ifndef LT_DLLAZY_OR_NOW
16205: # ifdef RTLD_LAZY
16206: # define LT_DLLAZY_OR_NOW RTLD_LAZY
16207: # else
16208: # ifdef DL_LAZY
16209: # define LT_DLLAZY_OR_NOW DL_LAZY
16210: # else
16211: # ifdef RTLD_NOW
16212: # define LT_DLLAZY_OR_NOW RTLD_NOW
16213: # else
16214: # ifdef DL_NOW
16215: # define LT_DLLAZY_OR_NOW DL_NOW
16216: # else
16217: # define LT_DLLAZY_OR_NOW 0
16218: # endif
16219: # endif
16220: # endif
16221: # endif
16222: #endif
16223:
1.237 moko 16224: /* When -fvisibility=hidden is used, assume the code has been annotated
1.128 moko 16225: correspondingly for the symbols needed. */
1.237 moko 16226: #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
16227: int fnord (void) __attribute__((visibility("default")));
1.128 moko 16228: #endif
16229:
1.237 moko 16230: int fnord (void) { return 42; }
16231: int main (void)
1.128 moko 16232: {
16233: void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16234: int status = $lt_dlunknown;
16235:
16236: if (self)
16237: {
16238: if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
16239: else
16240: {
16241: if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16242: else puts (dlerror ());
16243: }
16244: /* dlclose (self); */
16245: }
16246: else
16247: puts (dlerror ());
16248:
16249: return status;
16250: }
16251: _LT_EOF
1.150 moko 16252: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
1.128 moko 16253: (eval $ac_link) 2>&5
16254: ac_status=$?
1.237 moko 16255: printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16256: test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
1.128 moko 16257: (./conftest; exit; ) >&5 2>/dev/null
16258: lt_status=$?
16259: case x$lt_status in
16260: x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
16261: x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
16262: x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
16263: esac
16264: else :
16265: # compilation failed
16266: lt_cv_dlopen_self_static=no
16267: fi
16268: fi
16269: rm -fr conftest*
16270:
1.237 moko 16271: ;;
16272: esac
1.128 moko 16273: fi
1.237 moko 16274: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
16275: printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
1.128 moko 16276: fi
16277:
1.237 moko 16278: CPPFLAGS=$save_CPPFLAGS
16279: LDFLAGS=$save_LDFLAGS
16280: LIBS=$save_LIBS
1.128 moko 16281: ;;
16282: esac
16283:
16284: case $lt_cv_dlopen_self in
16285: yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
16286: *) enable_dlopen_self=unknown ;;
16287: esac
16288:
16289: case $lt_cv_dlopen_self_static in
16290: yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
16291: *) enable_dlopen_self_static=unknown ;;
16292: esac
16293: fi
16294:
16295:
16296:
16297:
16298:
16299:
16300:
16301:
16302:
16303:
16304:
16305:
16306:
16307:
16308:
16309:
16310:
16311: striplib=
16312: old_striplib=
1.237 moko 16313: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
16314: printf %s "checking whether stripping libraries is possible... " >&6; }
16315: if test -z "$STRIP"; then
16316: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16317: printf "%s\n" "no" >&6; }
16318: else
16319: if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
16320: old_striplib="$STRIP --strip-debug"
16321: striplib="$STRIP --strip-unneeded"
16322: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16323: printf "%s\n" "yes" >&6; }
16324: else
16325: case $host_os in
16326: darwin*)
16327: # FIXME - insert some real tests, host_os isn't really good enough
1.128 moko 16328: striplib="$STRIP -x"
16329: old_striplib="$STRIP -S"
1.237 moko 16330: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16331: printf "%s\n" "yes" >&6; }
16332: ;;
16333: freebsd*)
16334: if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
16335: old_striplib="$STRIP --strip-debug"
16336: striplib="$STRIP --strip-unneeded"
16337: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16338: printf "%s\n" "yes" >&6; }
16339: else
16340: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16341: printf "%s\n" "no" >&6; }
16342: fi
16343: ;;
16344: *)
16345: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16346: printf "%s\n" "no" >&6; }
16347: ;;
16348: esac
16349: fi
1.128 moko 16350: fi
16351:
16352:
16353:
16354:
16355:
16356:
16357:
16358:
16359:
16360:
16361:
16362:
1.237 moko 16363: # Report what library types will actually be built
16364: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
16365: printf %s "checking if libtool supports shared libraries... " >&6; }
16366: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
16367: printf "%s\n" "$can_build_shared" >&6; }
16368:
16369: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
16370: printf %s "checking whether to build shared libraries... " >&6; }
16371: test no = "$can_build_shared" && enable_shared=no
1.128 moko 16372:
16373: # On AIX, shared libraries and static libraries use the same namespace, and
16374: # are all built from PIC.
16375: case $host_os in
16376: aix3*)
1.237 moko 16377: test yes = "$enable_shared" && enable_static=no
1.128 moko 16378: if test -n "$RANLIB"; then
16379: archive_cmds="$archive_cmds~\$RANLIB \$lib"
16380: postinstall_cmds='$RANLIB $lib'
16381: fi
16382: ;;
16383:
16384: aix[4-9]*)
1.237 moko 16385: if test ia64 != "$host_cpu"; then
16386: case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
16387: yes,aix,yes) ;; # shared object as lib.so file only
16388: yes,svr4,*) ;; # shared object as lib.so archive member only
16389: yes,*) enable_static=no ;; # shared object in lib.a archive as well
16390: esac
1.128 moko 16391: fi
16392: ;;
16393: esac
1.237 moko 16394: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
16395: printf "%s\n" "$enable_shared" >&6; }
1.128 moko 16396:
1.237 moko 16397: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
16398: printf %s "checking whether to build static libraries... " >&6; }
1.128 moko 16399: # Make sure either enable_shared or enable_static is yes.
1.237 moko 16400: test yes = "$enable_shared" || enable_static=yes
16401: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
16402: printf "%s\n" "$enable_static" >&6; }
1.128 moko 16403:
16404:
16405:
16406:
16407: fi
16408: ac_ext=c
16409: ac_cpp='$CPP $CPPFLAGS'
16410: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16411: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16412: ac_compiler_gnu=$ac_cv_c_compiler_gnu
16413:
1.237 moko 16414: CC=$lt_save_CC
1.128 moko 16415:
1.237 moko 16416: if test -n "$CXX" && ( test no != "$CXX" &&
16417: ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
16418: (test g++ != "$CXX"))); then
1.150 moko 16419: ac_ext=cpp
1.128 moko 16420: ac_cpp='$CXXCPP $CPPFLAGS'
16421: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16422: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16423: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1.237 moko 16424: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
16425: printf %s "checking how to run the C++ preprocessor... " >&6; }
1.128 moko 16426: if test -z "$CXXCPP"; then
1.237 moko 16427: if test ${ac_cv_prog_CXXCPP+y}
16428: then :
16429: printf %s "(cached) " >&6
16430: else case e in #(
16431: e) # Double quotes because $CXX needs to be expanded
16432: for CXXCPP in "$CXX -E" cpp /lib/cpp
1.128 moko 16433: do
16434: ac_preproc_ok=false
16435: for ac_cxx_preproc_warn_flag in '' yes
16436: do
16437: # Use a header file that comes with gcc, so configuring glibc
16438: # with a fresh cross-compiler works.
16439: # On the NeXT, cc -E runs the code through the compiler's parser,
16440: # not just through cpp. "Syntax error" is here to catch this case.
1.150 moko 16441: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 16442: /* end confdefs.h. */
1.237 moko 16443: #include <limits.h>
1.128 moko 16444: Syntax error
16445: _ACEOF
1.237 moko 16446: if ac_fn_cxx_try_cpp "$LINENO"
16447: then :
1.150 moko 16448:
1.237 moko 16449: else case e in #(
16450: e) # Broken: fails on valid input.
16451: continue ;;
16452: esac
1.128 moko 16453: fi
1.150 moko 16454: rm -f conftest.err conftest.i conftest.$ac_ext
1.128 moko 16455:
1.150 moko 16456: # OK, works on sane cases. Now check whether nonexistent headers
1.128 moko 16457: # can be detected and how.
1.150 moko 16458: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 16459: /* end confdefs.h. */
16460: #include <ac_nonexistent.h>
16461: _ACEOF
1.237 moko 16462: if ac_fn_cxx_try_cpp "$LINENO"
16463: then :
1.128 moko 16464: # Broken: success on invalid input.
16465: continue
1.237 moko 16466: else case e in #(
16467: e) # Passes both tests.
1.128 moko 16468: ac_preproc_ok=:
1.237 moko 16469: break ;;
16470: esac
1.128 moko 16471: fi
1.150 moko 16472: rm -f conftest.err conftest.i conftest.$ac_ext
1.128 moko 16473:
16474: done
1.237 moko 16475: # Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1.150 moko 16476: rm -f conftest.i conftest.err conftest.$ac_ext
1.237 moko 16477: if $ac_preproc_ok
16478: then :
1.128 moko 16479: break
16480: fi
16481:
16482: done
16483: ac_cv_prog_CXXCPP=$CXXCPP
1.237 moko 16484: ;;
16485: esac
1.128 moko 16486: fi
16487: CXXCPP=$ac_cv_prog_CXXCPP
16488: else
16489: ac_cv_prog_CXXCPP=$CXXCPP
16490: fi
1.237 moko 16491: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
16492: printf "%s\n" "$CXXCPP" >&6; }
1.128 moko 16493: ac_preproc_ok=false
16494: for ac_cxx_preproc_warn_flag in '' yes
16495: do
16496: # Use a header file that comes with gcc, so configuring glibc
16497: # with a fresh cross-compiler works.
16498: # On the NeXT, cc -E runs the code through the compiler's parser,
16499: # not just through cpp. "Syntax error" is here to catch this case.
1.150 moko 16500: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 16501: /* end confdefs.h. */
1.237 moko 16502: #include <limits.h>
1.128 moko 16503: Syntax error
16504: _ACEOF
1.237 moko 16505: if ac_fn_cxx_try_cpp "$LINENO"
16506: then :
1.150 moko 16507:
1.237 moko 16508: else case e in #(
16509: e) # Broken: fails on valid input.
16510: continue ;;
16511: esac
1.128 moko 16512: fi
1.150 moko 16513: rm -f conftest.err conftest.i conftest.$ac_ext
1.128 moko 16514:
1.150 moko 16515: # OK, works on sane cases. Now check whether nonexistent headers
1.128 moko 16516: # can be detected and how.
1.150 moko 16517: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 16518: /* end confdefs.h. */
16519: #include <ac_nonexistent.h>
16520: _ACEOF
1.237 moko 16521: if ac_fn_cxx_try_cpp "$LINENO"
16522: then :
1.128 moko 16523: # Broken: success on invalid input.
16524: continue
1.237 moko 16525: else case e in #(
16526: e) # Passes both tests.
1.128 moko 16527: ac_preproc_ok=:
1.237 moko 16528: break ;;
16529: esac
1.128 moko 16530: fi
1.150 moko 16531: rm -f conftest.err conftest.i conftest.$ac_ext
1.128 moko 16532:
16533: done
1.237 moko 16534: # Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1.150 moko 16535: rm -f conftest.i conftest.err conftest.$ac_ext
1.237 moko 16536: if $ac_preproc_ok
16537: then :
1.150 moko 16538:
1.237 moko 16539: else case e in #(
16540: e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
16541: printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
1.150 moko 16542: as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
1.237 moko 16543: See 'config.log' for more details" "$LINENO" 5; } ;;
16544: esac
1.128 moko 16545: fi
16546:
16547: ac_ext=c
16548: ac_cpp='$CPP $CPPFLAGS'
16549: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16550: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16551: ac_compiler_gnu=$ac_cv_c_compiler_gnu
16552:
16553: else
16554: _lt_caught_CXX_error=yes
16555: fi
16556:
1.150 moko 16557: ac_ext=cpp
1.128 moko 16558: ac_cpp='$CXXCPP $CPPFLAGS'
16559: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16560: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16561: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16562:
16563: archive_cmds_need_lc_CXX=no
16564: allow_undefined_flag_CXX=
16565: always_export_symbols_CXX=no
16566: archive_expsym_cmds_CXX=
16567: compiler_needs_object_CXX=no
16568: export_dynamic_flag_spec_CXX=
16569: hardcode_direct_CXX=no
16570: hardcode_direct_absolute_CXX=no
16571: hardcode_libdir_flag_spec_CXX=
16572: hardcode_libdir_separator_CXX=
16573: hardcode_minus_L_CXX=no
16574: hardcode_shlibpath_var_CXX=unsupported
16575: hardcode_automatic_CXX=no
16576: inherit_rpath_CXX=no
16577: module_cmds_CXX=
16578: module_expsym_cmds_CXX=
16579: link_all_deplibs_CXX=unknown
16580: old_archive_cmds_CXX=$old_archive_cmds
16581: reload_flag_CXX=$reload_flag
16582: reload_cmds_CXX=$reload_cmds
16583: no_undefined_flag_CXX=
16584: whole_archive_flag_spec_CXX=
16585: enable_shared_with_static_runtimes_CXX=no
16586:
16587: # Source file extension for C++ test sources.
16588: ac_ext=cpp
16589:
16590: # Object file extension for compiled C++ test sources.
16591: objext=o
16592: objext_CXX=$objext
16593:
16594: # No sense in running all these tests if we already determined that
16595: # the CXX compiler isn't working. Some variables (like enable_shared)
16596: # are currently assumed to apply to all compilers on this platform,
16597: # and will be corrupted by setting them based on a non-working compiler.
1.237 moko 16598: if test yes != "$_lt_caught_CXX_error"; then
1.128 moko 16599: # Code to be used in simple compile tests
16600: lt_simple_compile_test_code="int some_variable = 0;"
16601:
16602: # Code to be used in simple link tests
16603: lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
16604:
16605: # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16606:
16607:
16608:
16609:
16610:
16611:
16612: # If no C compiler was specified, use CC.
16613: LTCC=${LTCC-"$CC"}
16614:
16615: # If no C compiler flags were specified, use CFLAGS.
16616: LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16617:
16618: # Allow CC to be a program name with arguments.
16619: compiler=$CC
16620:
16621:
16622: # save warnings/boilerplate of simple test code
16623: ac_outfile=conftest.$ac_objext
16624: echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16625: eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16626: _lt_compiler_boilerplate=`cat conftest.err`
16627: $RM conftest*
16628:
16629: ac_outfile=conftest.$ac_objext
16630: echo "$lt_simple_link_test_code" >conftest.$ac_ext
16631: eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16632: _lt_linker_boilerplate=`cat conftest.err`
16633: $RM -r conftest*
16634:
16635:
16636: # Allow CC to be a program name with arguments.
16637: lt_save_CC=$CC
16638: lt_save_CFLAGS=$CFLAGS
16639: lt_save_LD=$LD
16640: lt_save_GCC=$GCC
16641: GCC=$GXX
16642: lt_save_with_gnu_ld=$with_gnu_ld
16643: lt_save_path_LD=$lt_cv_path_LD
16644: if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
16645: lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
16646: else
16647: $as_unset lt_cv_prog_gnu_ld
16648: fi
16649: if test -n "${lt_cv_path_LDCXX+set}"; then
16650: lt_cv_path_LD=$lt_cv_path_LDCXX
16651: else
16652: $as_unset lt_cv_path_LD
16653: fi
16654: test -z "${LDCXX+set}" || LD=$LDCXX
16655: CC=${CXX-"c++"}
16656: CFLAGS=$CXXFLAGS
16657: compiler=$CC
16658: compiler_CXX=$CC
1.237 moko 16659: func_cc_basename $compiler
16660: cc_basename=$func_cc_basename_result
1.128 moko 16661:
16662:
16663: if test -n "$compiler"; then
16664: # We don't want -fno-exception when compiling C++ code, so set the
16665: # no_builtin_flag separately
1.237 moko 16666: if test yes = "$GXX"; then
1.128 moko 16667: lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
16668: else
16669: lt_prog_compiler_no_builtin_flag_CXX=
16670: fi
16671:
1.237 moko 16672: if test yes = "$GXX"; then
1.128 moko 16673: # Set up default GNU C++ configuration
16674:
16675:
16676:
1.150 moko 16677: # Check whether --with-gnu-ld was given.
1.237 moko 16678: if test ${with_gnu_ld+y}
16679: then :
16680: withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
16681: else case e in #(
16682: e) with_gnu_ld=no ;;
16683: esac
1.150 moko 16684: fi
16685:
1.128 moko 16686: ac_prog=ld
1.237 moko 16687: if test yes = "$GCC"; then
1.128 moko 16688: # Check if gcc -print-prog-name=ld gives a path.
1.237 moko 16689: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
16690: printf %s "checking for ld used by $CC... " >&6; }
1.128 moko 16691: case $host in
1.237 moko 16692: *-*-mingw* | *-*-windows*)
16693: # gcc leaves a trailing carriage return, which upsets mingw
1.128 moko 16694: ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16695: *)
16696: ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16697: esac
16698: case $ac_prog in
16699: # Accept absolute paths.
16700: [\\/]* | ?:[\\/]*)
16701: re_direlt='/[^/][^/]*/\.\./'
16702: # Canonicalize the pathname of ld
16703: ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
16704: while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
16705: ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
16706: done
1.237 moko 16707: test -z "$LD" && LD=$ac_prog
1.128 moko 16708: ;;
16709: "")
16710: # If it fails, then pretend we aren't using GCC.
16711: ac_prog=ld
16712: ;;
16713: *)
16714: # If it is relative, then search for the first ld in PATH.
16715: with_gnu_ld=unknown
16716: ;;
16717: esac
1.237 moko 16718: elif test yes = "$with_gnu_ld"; then
16719: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
16720: printf %s "checking for GNU ld... " >&6; }
16721: else
16722: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
16723: printf %s "checking for non-GNU ld... " >&6; }
16724: fi
16725: if test ${lt_cv_path_LD+y}
16726: then :
16727: printf %s "(cached) " >&6
16728: else case e in #(
16729: e) if test -z "$LD"; then
16730: lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
1.128 moko 16731: for ac_dir in $PATH; do
1.237 moko 16732: IFS=$lt_save_ifs
1.128 moko 16733: test -z "$ac_dir" && ac_dir=.
16734: if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1.237 moko 16735: lt_cv_path_LD=$ac_dir/$ac_prog
1.128 moko 16736: # Check to see if the program is GNU ld. I'd rather use --version,
16737: # but apparently some variants of GNU ld only accept -v.
16738: # Break only if it was the GNU/non-GNU ld that we prefer.
16739: case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
16740: *GNU* | *'with BFD'*)
1.237 moko 16741: test no != "$with_gnu_ld" && break
1.128 moko 16742: ;;
16743: *)
1.237 moko 16744: test yes != "$with_gnu_ld" && break
1.128 moko 16745: ;;
16746: esac
16747: fi
16748: done
1.237 moko 16749: IFS=$lt_save_ifs
1.128 moko 16750: else
1.237 moko 16751: lt_cv_path_LD=$LD # Let the user override the test with a path.
16752: fi ;;
16753: esac
1.128 moko 16754: fi
16755:
1.237 moko 16756: LD=$lt_cv_path_LD
1.128 moko 16757: if test -n "$LD"; then
1.237 moko 16758: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
16759: printf "%s\n" "$LD" >&6; }
1.128 moko 16760: else
1.237 moko 16761: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16762: printf "%s\n" "no" >&6; }
1.128 moko 16763: fi
1.150 moko 16764: test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
1.237 moko 16765: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
16766: printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
16767: if test ${lt_cv_prog_gnu_ld+y}
16768: then :
16769: printf %s "(cached) " >&6
16770: else case e in #(
16771: e) # I'd rather use --version here, but apparently some GNU lds only accept -v.
1.128 moko 16772: case `$LD -v 2>&1 </dev/null` in
16773: *GNU* | *'with BFD'*)
16774: lt_cv_prog_gnu_ld=yes
16775: ;;
16776: *)
16777: lt_cv_prog_gnu_ld=no
16778: ;;
1.237 moko 16779: esac ;;
1.128 moko 16780: esac
16781: fi
1.237 moko 16782: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
16783: printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
1.128 moko 16784: with_gnu_ld=$lt_cv_prog_gnu_ld
16785:
16786:
16787:
16788:
16789:
16790:
16791:
16792: # Check if GNU C++ uses GNU ld as the underlying linker, since the
16793: # archiving commands below assume that GNU ld is being used.
1.237 moko 16794: if test yes = "$with_gnu_ld"; then
16795: archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
16796: archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
1.128 moko 16797:
1.237 moko 16798: hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
16799: export_dynamic_flag_spec_CXX='$wl--export-dynamic'
1.128 moko 16800:
16801: # If archive_cmds runs LD, not CC, wlarc should be empty
16802: # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
16803: # investigate it a little bit more. (MM)
1.237 moko 16804: wlarc='$wl'
1.128 moko 16805:
16806: # ancient GNU ld didn't support --whole-archive et. al.
1.237 moko 16807: if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
16808: whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
1.128 moko 16809: else
16810: whole_archive_flag_spec_CXX=
16811: fi
16812: else
16813: with_gnu_ld=no
16814: wlarc=
16815:
16816: # A generic and very simple default shared library creation
16817: # command for GNU C++ for the case where it uses the native
16818: # linker, instead of GNU ld. If possible, this setting should
16819: # overridden to take advantage of the native linker features on
16820: # the platform it is being used on.
16821: archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
16822: fi
16823:
16824: # Commands to make compiler produce verbose output that lists
16825: # what "hidden" libraries, object files and flags are used when
16826: # linking a shared library.
1.237 moko 16827: output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " [-]L"'
1.128 moko 16828:
16829: else
16830: GXX=no
16831: with_gnu_ld=no
16832: wlarc=
16833: fi
16834:
16835: # PORTME: fill in a description of your system's C++ link characteristics
1.237 moko 16836: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16837: printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
1.128 moko 16838: ld_shlibs_CXX=yes
16839: case $host_os in
16840: aix3*)
16841: # FIXME: insert proper C++ library support
16842: ld_shlibs_CXX=no
16843: ;;
16844: aix[4-9]*)
1.237 moko 16845: if test ia64 = "$host_cpu"; then
1.128 moko 16846: # On IA64, the linker does run time linking by default, so we don't
16847: # have to do anything special.
16848: aix_use_runtimelinking=no
16849: exp_sym_flag='-Bexport'
1.237 moko 16850: no_entry_flag=
1.128 moko 16851: else
16852: aix_use_runtimelinking=no
16853:
16854: # Test if we are trying to use run time linking or normal
16855: # AIX style linking. If -brtl is somewhere in LDFLAGS, we
1.237 moko 16856: # have runtime linking enabled, and use it for executables.
16857: # For shared libraries, we enable/disable runtime linking
16858: # depending on the kind of the shared library created -
16859: # when "with_aix_soname,aix_use_runtimelinking" is:
16860: # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
16861: # "aix,yes" lib.so shared, rtl:yes, for executables
16862: # lib.a static archive
16863: # "both,no" lib.so.V(shr.o) shared, rtl:yes
16864: # lib.a(lib.so.V) shared, rtl:no, for executables
16865: # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
16866: # lib.a(lib.so.V) shared, rtl:no
16867: # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
16868: # lib.a static archive
1.128 moko 16869: case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
16870: for ld_flag in $LDFLAGS; do
16871: case $ld_flag in
16872: *-brtl*)
16873: aix_use_runtimelinking=yes
16874: break
16875: ;;
16876: esac
16877: done
1.237 moko 16878: if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
16879: # With aix-soname=svr4, we create the lib.so.V shared archives only,
16880: # so we don't have lib.a shared libs to link our executables.
16881: # We have to force runtime linking in this case.
16882: aix_use_runtimelinking=yes
16883: LDFLAGS="$LDFLAGS -Wl,-brtl"
16884: fi
1.128 moko 16885: ;;
16886: esac
16887:
16888: exp_sym_flag='-bexport'
16889: no_entry_flag='-bnoentry'
16890: fi
16891:
16892: # When large executables or shared objects are built, AIX ld can
16893: # have problems creating the table of contents. If linking a library
16894: # or program results in "error TOC overflow" add -mminimal-toc to
16895: # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16896: # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16897:
16898: archive_cmds_CXX=''
16899: hardcode_direct_CXX=yes
16900: hardcode_direct_absolute_CXX=yes
16901: hardcode_libdir_separator_CXX=':'
16902: link_all_deplibs_CXX=yes
1.237 moko 16903: file_list_spec_CXX='$wl-f,'
16904: case $with_aix_soname,$aix_use_runtimelinking in
16905: aix,*) ;; # no import file
16906: svr4,* | *,yes) # use import file
16907: # The Import File defines what to hardcode.
16908: hardcode_direct_CXX=no
16909: hardcode_direct_absolute_CXX=no
16910: ;;
16911: esac
1.128 moko 16912:
1.237 moko 16913: if test yes = "$GXX"; then
1.128 moko 16914: case $host_os in aix4.[012]|aix4.[012].*)
16915: # We only want to do this on AIX 4.2 and lower, the check
16916: # below for broken collect2 doesn't work under 4.3+
1.237 moko 16917: collect2name=`$CC -print-prog-name=collect2`
1.128 moko 16918: if test -f "$collect2name" &&
16919: strings "$collect2name" | $GREP resolve_lib_name >/dev/null
16920: then
16921: # We have reworked collect2
16922: :
16923: else
16924: # We have old collect2
16925: hardcode_direct_CXX=unsupported
16926: # It fails to find uninstalled libraries when the uninstalled
16927: # path is not listed in the libpath. Setting hardcode_minus_L
16928: # to unsupported forces relinking
16929: hardcode_minus_L_CXX=yes
16930: hardcode_libdir_flag_spec_CXX='-L$libdir'
16931: hardcode_libdir_separator_CXX=
16932: fi
16933: esac
16934: shared_flag='-shared'
1.237 moko 16935: if test yes = "$aix_use_runtimelinking"; then
16936: shared_flag=$shared_flag' $wl-G'
1.128 moko 16937: fi
1.237 moko 16938: # Need to ensure runtime linking is disabled for the traditional
16939: # shared library, or the linker may eventually find shared libraries
16940: # /with/ Import File - we do not want to mix them.
16941: shared_flag_aix='-shared'
16942: shared_flag_svr4='-shared $wl-G'
1.128 moko 16943: else
16944: # not using gcc
1.237 moko 16945: if test ia64 = "$host_cpu"; then
1.128 moko 16946: # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16947: # chokes on -Wl,-G. The following line is correct:
16948: shared_flag='-G'
16949: else
1.237 moko 16950: if test yes = "$aix_use_runtimelinking"; then
16951: shared_flag='$wl-G'
1.128 moko 16952: else
1.237 moko 16953: shared_flag='$wl-bM:SRE'
1.128 moko 16954: fi
1.237 moko 16955: shared_flag_aix='$wl-bM:SRE'
16956: shared_flag_svr4='$wl-G'
1.128 moko 16957: fi
16958: fi
16959:
1.237 moko 16960: export_dynamic_flag_spec_CXX='$wl-bexpall'
1.128 moko 16961: # It seems that -bexpall does not export symbols beginning with
16962: # underscore (_), so it is better to generate a list of symbols to
16963: # export.
16964: always_export_symbols_CXX=yes
1.237 moko 16965: if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
1.128 moko 16966: # Warning - without using the other runtime loading flags (-brtl),
16967: # -berok will link without error, but may produce a broken library.
1.237 moko 16968: # The "-G" linker flag allows undefined symbols.
16969: no_undefined_flag_CXX='-bernotok'
1.128 moko 16970: # Determine the default libpath from the value encoded in an empty
16971: # executable.
1.237 moko 16972: if test set = "${lt_cv_aix_libpath+set}"; then
1.128 moko 16973: aix_libpath=$lt_cv_aix_libpath
16974: else
1.237 moko 16975: if test ${lt_cv_aix_libpath__CXX+y}
16976: then :
16977: printf %s "(cached) " >&6
16978: else case e in #(
16979: e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 16980: /* end confdefs.h. */
16981:
16982: int
1.237 moko 16983: main (void)
1.128 moko 16984: {
16985:
16986: ;
16987: return 0;
16988: }
16989: _ACEOF
1.237 moko 16990: if ac_fn_cxx_try_link "$LINENO"
16991: then :
1.128 moko 16992:
16993: lt_aix_libpath_sed='
16994: /Import File Strings/,/^$/ {
16995: /^0/ {
16996: s/^0 *\([^ ]*\) *$/\1/
16997: p
16998: }
16999: }'
17000: lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17001: # Check for a 64-bit object if we didn't find anything.
17002: if test -z "$lt_cv_aix_libpath__CXX"; then
17003: lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17004: fi
17005: fi
1.237 moko 17006: rm -f core conftest.err conftest.$ac_objext conftest.beam \
1.150 moko 17007: conftest$ac_exeext conftest.$ac_ext
1.128 moko 17008: if test -z "$lt_cv_aix_libpath__CXX"; then
1.237 moko 17009: lt_cv_aix_libpath__CXX=/usr/lib:/lib
1.128 moko 17010: fi
1.237 moko 17011: ;;
17012: esac
1.128 moko 17013: fi
17014:
17015: aix_libpath=$lt_cv_aix_libpath__CXX
17016: fi
17017:
1.237 moko 17018: hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
1.128 moko 17019:
1.237 moko 17020: archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
1.128 moko 17021: else
1.237 moko 17022: if test ia64 = "$host_cpu"; then
17023: hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
1.128 moko 17024: allow_undefined_flag_CXX="-z nodefs"
1.237 moko 17025: archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\$wl$no_entry_flag"' $compiler_flags $wl$allow_undefined_flag '"\$wl$exp_sym_flag:\$export_symbols"
1.128 moko 17026: else
17027: # Determine the default libpath from the value encoded in an
17028: # empty executable.
1.237 moko 17029: if test set = "${lt_cv_aix_libpath+set}"; then
1.128 moko 17030: aix_libpath=$lt_cv_aix_libpath
17031: else
1.237 moko 17032: if test ${lt_cv_aix_libpath__CXX+y}
17033: then :
17034: printf %s "(cached) " >&6
17035: else case e in #(
17036: e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 17037: /* end confdefs.h. */
17038:
17039: int
1.237 moko 17040: main (void)
1.128 moko 17041: {
17042:
17043: ;
17044: return 0;
17045: }
17046: _ACEOF
1.237 moko 17047: if ac_fn_cxx_try_link "$LINENO"
17048: then :
1.128 moko 17049:
17050: lt_aix_libpath_sed='
17051: /Import File Strings/,/^$/ {
17052: /^0/ {
17053: s/^0 *\([^ ]*\) *$/\1/
17054: p
17055: }
17056: }'
17057: lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17058: # Check for a 64-bit object if we didn't find anything.
17059: if test -z "$lt_cv_aix_libpath__CXX"; then
17060: lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17061: fi
17062: fi
1.237 moko 17063: rm -f core conftest.err conftest.$ac_objext conftest.beam \
1.150 moko 17064: conftest$ac_exeext conftest.$ac_ext
1.128 moko 17065: if test -z "$lt_cv_aix_libpath__CXX"; then
1.237 moko 17066: lt_cv_aix_libpath__CXX=/usr/lib:/lib
1.128 moko 17067: fi
1.237 moko 17068: ;;
17069: esac
1.128 moko 17070: fi
17071:
17072: aix_libpath=$lt_cv_aix_libpath__CXX
17073: fi
17074:
1.237 moko 17075: hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
1.128 moko 17076: # Warning - without using the other run time loading flags,
17077: # -berok will link without error, but may produce a broken library.
1.237 moko 17078: no_undefined_flag_CXX=' $wl-bernotok'
17079: allow_undefined_flag_CXX=' $wl-berok'
17080: if test yes = "$with_gnu_ld"; then
1.128 moko 17081: # We only use this code for GNU lds that support --whole-archive.
1.237 moko 17082: whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
1.128 moko 17083: else
17084: # Exported symbols can be pulled into shared objects from archives
17085: whole_archive_flag_spec_CXX='$convenience'
17086: fi
17087: archive_cmds_need_lc_CXX=yes
1.237 moko 17088: archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
17089: # -brtl affects multiple linker settings, -berok does not and is overridden later
17090: compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
17091: if test svr4 != "$with_aix_soname"; then
17092: # This is similar to how AIX traditionally builds its shared
17093: # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
17094: archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
17095: fi
17096: if test aix != "$with_aix_soname"; then
17097: archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
17098: else
17099: # used by -dlpreopen to get the symbols
17100: archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
17101: fi
17102: archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
1.128 moko 17103: fi
17104: fi
17105: ;;
17106:
17107: beos*)
17108: if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17109: allow_undefined_flag_CXX=unsupported
17110: # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17111: # support --undefined. This deserves some investigation. FIXME
1.237 moko 17112: archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
1.128 moko 17113: else
17114: ld_shlibs_CXX=no
17115: fi
17116: ;;
17117:
17118: chorus*)
17119: case $cc_basename in
17120: *)
17121: # FIXME: insert proper C++ library support
17122: ld_shlibs_CXX=no
17123: ;;
17124: esac
17125: ;;
17126:
1.237 moko 17127: cygwin* | mingw* | windows* | pw32* | cegcc*)
1.128 moko 17128: case $GXX,$cc_basename in
1.237 moko 17129: ,cl* | no,cl* | ,icl* | no,icl*)
17130: # Native MSVC or ICC
1.128 moko 17131: # hardcode_libdir_flag_spec is actually meaningless, as there is
17132: # no search path for DLLs.
17133: hardcode_libdir_flag_spec_CXX=' '
17134: allow_undefined_flag_CXX=unsupported
17135: always_export_symbols_CXX=yes
17136: file_list_spec_CXX='@'
17137: # Tell ltmain to make .lib files, not .a files.
17138: libext=lib
17139: # Tell ltmain to make .dll files, not .so files.
1.237 moko 17140: shrext_cmds=.dll
1.128 moko 17141: # FIXME: Setting linknames here is a bad hack.
1.237 moko 17142: archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
17143: archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
17144: cp "$export_symbols" "$output_objdir/$soname.def";
17145: echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
17146: else
17147: $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
17148: fi~
17149: $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
17150: linknames='
1.128 moko 17151: # The linker will not automatically build a static lib if we build a DLL.
17152: # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
17153: enable_shared_with_static_runtimes_CXX=yes
17154: # Don't use ranlib
17155: old_postinstall_cmds_CXX='chmod 644 $oldlib'
17156: postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
1.237 moko 17157: lt_tool_outputfile="@TOOL_OUTPUT@"~
17158: case $lt_outputfile in
17159: *.exe|*.EXE) ;;
17160: *)
17161: lt_outputfile=$lt_outputfile.exe
17162: lt_tool_outputfile=$lt_tool_outputfile.exe
17163: ;;
17164: esac~
17165: func_to_tool_file "$lt_outputfile"~
17166: if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
17167: $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
17168: $RM "$lt_outputfile.manifest";
17169: fi'
1.128 moko 17170: ;;
17171: *)
17172: # g++
17173: # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
17174: # as there is no search path for DLLs.
17175: hardcode_libdir_flag_spec_CXX='-L$libdir'
1.237 moko 17176: export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
1.128 moko 17177: allow_undefined_flag_CXX=unsupported
17178: always_export_symbols_CXX=no
17179: enable_shared_with_static_runtimes_CXX=yes
1.237 moko 17180: file_list_spec_CXX='@'
1.128 moko 17181:
17182: if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
1.237 moko 17183: archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17184: # If the export-symbols file already is a .def file, use it as
17185: # is; otherwise, prepend EXPORTS...
17186: archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
17187: cp $export_symbols $output_objdir/$soname.def;
17188: else
17189: echo EXPORTS > $output_objdir/$soname.def;
17190: cat $export_symbols >> $output_objdir/$soname.def;
17191: fi~
17192: $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
1.128 moko 17193: else
17194: ld_shlibs_CXX=no
17195: fi
17196: ;;
17197: esac
17198: ;;
17199: darwin* | rhapsody*)
17200:
17201:
17202: archive_cmds_need_lc_CXX=no
17203: hardcode_direct_CXX=no
17204: hardcode_automatic_CXX=yes
17205: hardcode_shlibpath_var_CXX=unsupported
1.237 moko 17206: if test yes = "$lt_cv_ld_force_load"; then
17207: whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
1.128 moko 17208:
17209: else
17210: whole_archive_flag_spec_CXX=''
17211: fi
17212: link_all_deplibs_CXX=yes
1.237 moko 17213: allow_undefined_flag_CXX=$_lt_dar_allow_undefined
1.128 moko 17214: case $cc_basename in
1.237 moko 17215: ifort*|nagfor*) _lt_dar_can_shared=yes ;;
1.128 moko 17216: *) _lt_dar_can_shared=$GCC ;;
17217: esac
1.237 moko 17218: if test yes = "$_lt_dar_can_shared"; then
1.128 moko 17219: output_verbose_link_cmd=func_echo_all
1.237 moko 17220: archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
17221: module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
17222: archive_expsym_cmds_CXX="$SED 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dar_export_syms$_lt_dsymutil"
17223: module_expsym_cmds_CXX="$SED -e 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dar_export_syms$_lt_dsymutil"
17224: if test yes = "$_lt_dar_needs_single_mod" -a yes != "$lt_cv_apple_cc_single_mod"; then
17225: archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dsymutil"
17226: archive_expsym_cmds_CXX="$SED 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dar_export_syms$_lt_dsymutil"
1.128 moko 17227: fi
17228:
17229: else
17230: ld_shlibs_CXX=no
17231: fi
17232:
17233: ;;
17234:
1.237 moko 17235: os2*)
17236: hardcode_libdir_flag_spec_CXX='-L$libdir'
17237: hardcode_minus_L_CXX=yes
17238: allow_undefined_flag_CXX=unsupported
17239: shrext_cmds=.dll
17240: archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
17241: $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
17242: $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
17243: $ECHO EXPORTS >> $output_objdir/$libname.def~
17244: emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
17245: $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
17246: emximp -o $lib $output_objdir/$libname.def'
17247: archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
17248: $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
17249: $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
17250: $ECHO EXPORTS >> $output_objdir/$libname.def~
17251: prefix_cmds="$SED"~
17252: if test EXPORTS = "`$SED 1q $export_symbols`"; then
17253: prefix_cmds="$prefix_cmds -e 1d";
17254: fi~
17255: prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
17256: cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
17257: $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
17258: emximp -o $lib $output_objdir/$libname.def'
17259: old_archive_from_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
17260: enable_shared_with_static_runtimes_CXX=yes
17261: file_list_spec_CXX='@'
17262: ;;
17263:
1.128 moko 17264: dgux*)
17265: case $cc_basename in
17266: ec++*)
17267: # FIXME: insert proper C++ library support
17268: ld_shlibs_CXX=no
17269: ;;
17270: ghcx*)
17271: # Green Hills C++ Compiler
17272: # FIXME: insert proper C++ library support
17273: ld_shlibs_CXX=no
17274: ;;
17275: *)
17276: # FIXME: insert proper C++ library support
17277: ld_shlibs_CXX=no
17278: ;;
17279: esac
17280: ;;
17281:
17282: freebsd2.*)
17283: # C++ shared libraries reported to be fairly broken before
17284: # switch to ELF
17285: ld_shlibs_CXX=no
17286: ;;
17287:
17288: freebsd-elf*)
17289: archive_cmds_need_lc_CXX=no
17290: ;;
17291:
1.237 moko 17292: freebsd* | dragonfly* | midnightbsd*)
1.128 moko 17293: # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
17294: # conventions
17295: ld_shlibs_CXX=yes
17296: ;;
17297:
17298: haiku*)
1.237 moko 17299: archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
17300: link_all_deplibs_CXX=no
1.128 moko 17301: ;;
17302:
17303: hpux9*)
1.237 moko 17304: hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
1.128 moko 17305: hardcode_libdir_separator_CXX=:
1.237 moko 17306: export_dynamic_flag_spec_CXX='$wl-E'
1.128 moko 17307: hardcode_direct_CXX=yes
17308: hardcode_minus_L_CXX=yes # Not in the search PATH,
17309: # but as the default
17310: # location of the library.
17311:
17312: case $cc_basename in
17313: CC*)
17314: # FIXME: insert proper C++ library support
17315: ld_shlibs_CXX=no
17316: ;;
17317: aCC*)
1.237 moko 17318: archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
1.128 moko 17319: # Commands to make compiler produce verbose output that lists
17320: # what "hidden" libraries, object files and flags are used when
17321: # linking a shared library.
17322: #
17323: # There doesn't appear to be a way to prevent this compiler from
17324: # explicitly linking system object files so we need to strip them
17325: # from the output so that they don't get included in the library
17326: # dependencies.
1.237 moko 17327: output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "[-]L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
1.128 moko 17328: ;;
17329: *)
1.237 moko 17330: if test yes = "$GXX"; then
17331: archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
1.128 moko 17332: else
17333: # FIXME: insert proper C++ library support
17334: ld_shlibs_CXX=no
17335: fi
17336: ;;
17337: esac
17338: ;;
17339:
17340: hpux10*|hpux11*)
1.237 moko 17341: if test no = "$with_gnu_ld"; then
17342: hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
1.128 moko 17343: hardcode_libdir_separator_CXX=:
17344:
17345: case $host_cpu in
17346: hppa*64*|ia64*)
17347: ;;
17348: *)
1.237 moko 17349: export_dynamic_flag_spec_CXX='$wl-E'
1.128 moko 17350: ;;
17351: esac
17352: fi
17353: case $host_cpu in
17354: hppa*64*|ia64*)
17355: hardcode_direct_CXX=no
17356: hardcode_shlibpath_var_CXX=no
17357: ;;
17358: *)
17359: hardcode_direct_CXX=yes
17360: hardcode_direct_absolute_CXX=yes
17361: hardcode_minus_L_CXX=yes # Not in the search PATH,
17362: # but as the default
17363: # location of the library.
17364: ;;
17365: esac
17366:
17367: case $cc_basename in
17368: CC*)
17369: # FIXME: insert proper C++ library support
17370: ld_shlibs_CXX=no
17371: ;;
17372: aCC*)
17373: case $host_cpu in
17374: hppa*64*)
1.237 moko 17375: archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
1.128 moko 17376: ;;
17377: ia64*)
1.237 moko 17378: archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
1.128 moko 17379: ;;
17380: *)
1.237 moko 17381: archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
1.128 moko 17382: ;;
17383: esac
17384: # Commands to make compiler produce verbose output that lists
17385: # what "hidden" libraries, object files and flags are used when
17386: # linking a shared library.
17387: #
17388: # There doesn't appear to be a way to prevent this compiler from
17389: # explicitly linking system object files so we need to strip them
17390: # from the output so that they don't get included in the library
17391: # dependencies.
1.237 moko 17392: output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP " [-]L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
1.128 moko 17393: ;;
17394: *)
1.237 moko 17395: if test yes = "$GXX"; then
17396: if test no = "$with_gnu_ld"; then
1.128 moko 17397: case $host_cpu in
17398: hppa*64*)
1.237 moko 17399: archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
1.128 moko 17400: ;;
17401: ia64*)
1.237 moko 17402: archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
1.128 moko 17403: ;;
17404: *)
1.237 moko 17405: archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
1.128 moko 17406: ;;
17407: esac
17408: fi
17409: else
17410: # FIXME: insert proper C++ library support
17411: ld_shlibs_CXX=no
17412: fi
17413: ;;
17414: esac
17415: ;;
17416:
17417: interix[3-9]*)
17418: hardcode_direct_CXX=no
17419: hardcode_shlibpath_var_CXX=no
1.237 moko 17420: hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
17421: export_dynamic_flag_spec_CXX='$wl-E'
1.128 moko 17422: # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17423: # Instead, shared libraries are loaded at an image base (0x10000000 by
17424: # default) and relocated if they conflict, which is a slow very memory
17425: # consuming and fragmenting process. To avoid this, we pick a random,
17426: # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17427: # time. Moving up from 0x10000000 also allows more sbrk(2) space.
1.237 moko 17428: archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
17429: archive_expsym_cmds_CXX='$SED "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
1.128 moko 17430: ;;
17431: irix5* | irix6*)
17432: case $cc_basename in
17433: CC*)
17434: # SGI C++
1.237 moko 17435: archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
1.128 moko 17436:
17437: # Archives containing C++ object files must be created using
17438: # "CC -ar", where "CC" is the IRIX C++ compiler. This is
17439: # necessary to make sure instantiated templates are included
17440: # in the archive.
17441: old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
17442: ;;
17443: *)
1.237 moko 17444: if test yes = "$GXX"; then
17445: if test no = "$with_gnu_ld"; then
17446: archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
1.128 moko 17447: else
1.237 moko 17448: archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` -o $lib'
1.128 moko 17449: fi
17450: fi
17451: link_all_deplibs_CXX=yes
17452: ;;
17453: esac
1.237 moko 17454: hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
1.128 moko 17455: hardcode_libdir_separator_CXX=:
17456: inherit_rpath_CXX=yes
17457: ;;
17458:
1.237 moko 17459: linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
1.128 moko 17460: case $cc_basename in
17461: KCC*)
17462: # Kuck and Associates, Inc. (KAI) C++ Compiler
17463:
17464: # KCC will only create a shared library if the output file
17465: # ends with ".so" (or ".sl" for HP-UX), so rename the library
17466: # to its proper name (with version) after linking.
1.237 moko 17467: archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
17468: archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib $wl-retain-symbols-file,$export_symbols; mv \$templib $lib'
1.128 moko 17469: # Commands to make compiler produce verbose output that lists
17470: # what "hidden" libraries, object files and flags are used when
17471: # linking a shared library.
17472: #
17473: # There doesn't appear to be a way to prevent this compiler from
17474: # explicitly linking system object files so we need to strip them
17475: # from the output so that they don't get included in the library
17476: # dependencies.
1.237 moko 17477: output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
1.128 moko 17478:
1.237 moko 17479: hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
17480: export_dynamic_flag_spec_CXX='$wl--export-dynamic'
1.128 moko 17481:
17482: # Archives containing C++ object files must be created using
17483: # "CC -Bstatic", where "CC" is the KAI C++ compiler.
17484: old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
17485: ;;
17486: icpc* | ecpc* )
17487: # Intel C++
17488: with_gnu_ld=yes
17489: # version 8.0 and above of icpc choke on multiply defined symbols
17490: # if we add $predep_objects and $postdep_objects, however 7.1 and
17491: # earlier do not add the objects themselves.
17492: case `$CC -V 2>&1` in
17493: *"Version 7."*)
1.237 moko 17494: archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
17495: archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
1.128 moko 17496: ;;
17497: *) # Version 8.0 or newer
17498: tmp_idyn=
17499: case $host_cpu in
17500: ia64*) tmp_idyn=' -i_dynamic';;
17501: esac
1.237 moko 17502: archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
17503: archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
1.128 moko 17504: ;;
17505: esac
17506: archive_cmds_need_lc_CXX=no
1.237 moko 17507: hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
17508: export_dynamic_flag_spec_CXX='$wl--export-dynamic'
17509: whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
1.128 moko 17510: ;;
17511: pgCC* | pgcpp*)
17512: # Portland Group C++ compiler
17513: case `$CC -V` in
17514: *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
17515: prelink_cmds_CXX='tpldir=Template.dir~
1.237 moko 17516: rm -rf $tpldir~
17517: $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
17518: compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
1.128 moko 17519: old_archive_cmds_CXX='tpldir=Template.dir~
1.237 moko 17520: rm -rf $tpldir~
17521: $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
17522: $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
17523: $RANLIB $oldlib'
1.128 moko 17524: archive_cmds_CXX='tpldir=Template.dir~
1.237 moko 17525: rm -rf $tpldir~
17526: $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
17527: $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
1.128 moko 17528: archive_expsym_cmds_CXX='tpldir=Template.dir~
1.237 moko 17529: rm -rf $tpldir~
17530: $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
17531: $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
1.128 moko 17532: ;;
17533: *) # Version 6 and above use weak symbols
1.237 moko 17534: archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
17535: archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
1.128 moko 17536: ;;
17537: esac
17538:
1.237 moko 17539: hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
17540: export_dynamic_flag_spec_CXX='$wl--export-dynamic'
17541: whole_archive_flag_spec_CXX='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
1.128 moko 17542: ;;
17543: cxx*)
17544: # Compaq C++
1.237 moko 17545: archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
17546: archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib $wl-retain-symbols-file $wl$export_symbols'
1.128 moko 17547:
17548: runpath_var=LD_RUN_PATH
17549: hardcode_libdir_flag_spec_CXX='-rpath $libdir'
17550: hardcode_libdir_separator_CXX=:
17551:
17552: # Commands to make compiler produce verbose output that lists
17553: # what "hidden" libraries, object files and flags are used when
17554: # linking a shared library.
17555: #
17556: # There doesn't appear to be a way to prevent this compiler from
17557: # explicitly linking system object files so we need to strip them
17558: # from the output so that they don't get included in the library
17559: # dependencies.
1.237 moko 17560: output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
1.128 moko 17561: ;;
17562: xl* | mpixl* | bgxl*)
17563: # IBM XL 8.0 on PPC, with GNU ld
1.237 moko 17564: hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
17565: export_dynamic_flag_spec_CXX='$wl--export-dynamic'
17566: archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
17567: if test yes = "$supports_anon_versioning"; then
1.128 moko 17568: archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
1.237 moko 17569: cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17570: echo "local: *; };" >> $output_objdir/$libname.ver~
17571: $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
1.128 moko 17572: fi
17573: ;;
17574: *)
1.237 moko 17575: case `$CC -V 2>&1 | $SED 5q` in
1.128 moko 17576: *Sun\ C*)
17577: # Sun C++ 5.9
17578: no_undefined_flag_CXX=' -zdefs'
1.237 moko 17579: archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17580: archive_expsym_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file $wl$export_symbols'
1.128 moko 17581: hardcode_libdir_flag_spec_CXX='-R$libdir'
1.237 moko 17582: whole_archive_flag_spec_CXX='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
1.128 moko 17583: compiler_needs_object_CXX=yes
17584:
17585: # Not sure whether something based on
17586: # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
17587: # would be better.
17588: output_verbose_link_cmd='func_echo_all'
17589:
17590: # Archives containing C++ object files must be created using
17591: # "CC -xar", where "CC" is the Sun C++ compiler. This is
17592: # necessary to make sure instantiated templates are included
17593: # in the archive.
17594: old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
17595: ;;
17596: esac
17597: ;;
17598: esac
17599: ;;
17600:
17601: lynxos*)
17602: # FIXME: insert proper C++ library support
17603: ld_shlibs_CXX=no
17604: ;;
17605:
17606: m88k*)
17607: # FIXME: insert proper C++ library support
17608: ld_shlibs_CXX=no
17609: ;;
17610:
17611: mvs*)
17612: case $cc_basename in
17613: cxx*)
17614: # FIXME: insert proper C++ library support
17615: ld_shlibs_CXX=no
17616: ;;
17617: *)
17618: # FIXME: insert proper C++ library support
17619: ld_shlibs_CXX=no
17620: ;;
17621: esac
17622: ;;
17623:
1.237 moko 17624: *-mlibc)
17625: ld_shlibs_CXX=yes
17626: ;;
17627:
1.128 moko 17628: netbsd*)
17629: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17630: archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
17631: wlarc=
17632: hardcode_libdir_flag_spec_CXX='-R$libdir'
17633: hardcode_direct_CXX=yes
17634: hardcode_shlibpath_var_CXX=no
17635: fi
17636: # Workaround some broken pre-1.5 toolchains
17637: output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
17638: ;;
17639:
17640: *nto* | *qnx*)
17641: ld_shlibs_CXX=yes
17642: ;;
17643:
17644: openbsd*)
17645: if test -f /usr/libexec/ld.so; then
17646: hardcode_direct_CXX=yes
17647: hardcode_shlibpath_var_CXX=no
17648: hardcode_direct_absolute_CXX=yes
17649: archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
1.237 moko 17650: hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
17651: if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
17652: archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
17653: export_dynamic_flag_spec_CXX='$wl-E'
17654: whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
1.128 moko 17655: fi
17656: output_verbose_link_cmd=func_echo_all
17657: else
17658: ld_shlibs_CXX=no
17659: fi
17660: ;;
17661:
17662: osf3* | osf4* | osf5*)
17663: case $cc_basename in
17664: KCC*)
17665: # Kuck and Associates, Inc. (KAI) C++ Compiler
17666:
17667: # KCC will only create a shared library if the output file
17668: # ends with ".so" (or ".sl" for HP-UX), so rename the library
17669: # to its proper name (with version) after linking.
1.237 moko 17670: archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
1.128 moko 17671:
1.237 moko 17672: hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
1.128 moko 17673: hardcode_libdir_separator_CXX=:
17674:
17675: # Archives containing C++ object files must be created using
17676: # the KAI C++ compiler.
17677: case $host in
17678: osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
17679: *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
17680: esac
17681: ;;
17682: RCC*)
17683: # Rational C++ 2.4.1
17684: # FIXME: insert proper C++ library support
17685: ld_shlibs_CXX=no
17686: ;;
17687: cxx*)
17688: case $host in
17689: osf3*)
1.237 moko 17690: allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
17691: archive_cmds_CXX='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $soname `test -n "$verstring" && func_echo_all "$wl-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
17692: hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
1.128 moko 17693: ;;
17694: *)
17695: allow_undefined_flag_CXX=' -expect_unresolved \*'
1.237 moko 17696: archive_cmds_CXX='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
1.128 moko 17697: archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
1.237 moko 17698: echo "-hidden">> $lib.exp~
17699: $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname $wl-input $wl$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~
17700: $RM $lib.exp'
1.128 moko 17701: hardcode_libdir_flag_spec_CXX='-rpath $libdir'
17702: ;;
17703: esac
17704:
17705: hardcode_libdir_separator_CXX=:
17706:
17707: # Commands to make compiler produce verbose output that lists
17708: # what "hidden" libraries, object files and flags are used when
17709: # linking a shared library.
17710: #
17711: # There doesn't appear to be a way to prevent this compiler from
17712: # explicitly linking system object files so we need to strip them
17713: # from the output so that they don't get included in the library
17714: # dependencies.
1.237 moko 17715: output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
1.128 moko 17716: ;;
17717: *)
1.237 moko 17718: if test yes,no = "$GXX,$with_gnu_ld"; then
17719: allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
1.128 moko 17720: case $host in
17721: osf3*)
1.237 moko 17722: archive_cmds_CXX='$CC -shared -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
1.128 moko 17723: ;;
17724: *)
1.237 moko 17725: archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
1.128 moko 17726: ;;
17727: esac
17728:
1.237 moko 17729: hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
1.128 moko 17730: hardcode_libdir_separator_CXX=:
17731:
17732: # Commands to make compiler produce verbose output that lists
17733: # what "hidden" libraries, object files and flags are used when
17734: # linking a shared library.
1.237 moko 17735: output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " [-]L"'
1.128 moko 17736:
17737: else
17738: # FIXME: insert proper C++ library support
17739: ld_shlibs_CXX=no
17740: fi
17741: ;;
17742: esac
17743: ;;
17744:
17745: psos*)
17746: # FIXME: insert proper C++ library support
17747: ld_shlibs_CXX=no
17748: ;;
17749:
1.237 moko 17750: serenity*)
17751: ;;
17752:
1.128 moko 17753: sunos4*)
17754: case $cc_basename in
17755: CC*)
17756: # Sun C++ 4.x
17757: # FIXME: insert proper C++ library support
17758: ld_shlibs_CXX=no
17759: ;;
17760: lcc*)
17761: # Lucid
17762: # FIXME: insert proper C++ library support
17763: ld_shlibs_CXX=no
17764: ;;
17765: *)
17766: # FIXME: insert proper C++ library support
17767: ld_shlibs_CXX=no
17768: ;;
17769: esac
17770: ;;
17771:
17772: solaris*)
17773: case $cc_basename in
17774: CC* | sunCC*)
17775: # Sun C++ 4.2, 5.x and Centerline C++
17776: archive_cmds_need_lc_CXX=yes
17777: no_undefined_flag_CXX=' -zdefs'
1.237 moko 17778: archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
1.128 moko 17779: archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
1.237 moko 17780: $CC -G$allow_undefined_flag $wl-M $wl$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
1.128 moko 17781:
17782: hardcode_libdir_flag_spec_CXX='-R$libdir'
17783: hardcode_shlibpath_var_CXX=no
17784: case $host_os in
17785: solaris2.[0-5] | solaris2.[0-5].*) ;;
17786: *)
17787: # The compiler driver will combine and reorder linker options,
1.237 moko 17788: # but understands '-z linker_flag'.
1.128 moko 17789: # Supported since Solaris 2.6 (maybe 2.5.1?)
17790: whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
17791: ;;
17792: esac
17793: link_all_deplibs_CXX=yes
17794:
17795: output_verbose_link_cmd='func_echo_all'
17796:
17797: # Archives containing C++ object files must be created using
17798: # "CC -xar", where "CC" is the Sun C++ compiler. This is
17799: # necessary to make sure instantiated templates are included
17800: # in the archive.
17801: old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
17802: ;;
17803: gcx*)
17804: # Green Hills C++ Compiler
1.237 moko 17805: archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
1.128 moko 17806:
17807: # The C++ compiler must be used to create the archive.
17808: old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
17809: ;;
17810: *)
17811: # GNU C++ compiler with Solaris linker
1.237 moko 17812: if test yes,no = "$GXX,$with_gnu_ld"; then
17813: no_undefined_flag_CXX=' $wl-z ${wl}defs'
1.128 moko 17814: if $CC --version | $GREP -v '^2\.7' > /dev/null; then
1.237 moko 17815: archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
1.128 moko 17816: archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
1.237 moko 17817: $CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
1.128 moko 17818:
17819: # Commands to make compiler produce verbose output that lists
17820: # what "hidden" libraries, object files and flags are used when
17821: # linking a shared library.
1.237 moko 17822: output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " [-]L"'
1.128 moko 17823: else
1.237 moko 17824: # g++ 2.7 appears to require '-G' NOT '-shared' on this
1.128 moko 17825: # platform.
1.237 moko 17826: archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
1.128 moko 17827: archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
1.237 moko 17828: $CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
1.128 moko 17829:
17830: # Commands to make compiler produce verbose output that lists
17831: # what "hidden" libraries, object files and flags are used when
17832: # linking a shared library.
1.237 moko 17833: output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " [-]L"'
1.128 moko 17834: fi
17835:
1.237 moko 17836: hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
1.128 moko 17837: case $host_os in
17838: solaris2.[0-5] | solaris2.[0-5].*) ;;
17839: *)
1.237 moko 17840: whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
1.128 moko 17841: ;;
17842: esac
17843: fi
17844: ;;
17845: esac
17846: ;;
17847:
17848: sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
1.237 moko 17849: no_undefined_flag_CXX='$wl-z,text'
1.128 moko 17850: archive_cmds_need_lc_CXX=no
17851: hardcode_shlibpath_var_CXX=no
17852: runpath_var='LD_RUN_PATH'
17853:
17854: case $cc_basename in
17855: CC*)
1.237 moko 17856: archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17857: archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
1.128 moko 17858: ;;
17859: *)
1.237 moko 17860: archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17861: archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
1.128 moko 17862: ;;
17863: esac
17864: ;;
17865:
17866: sysv5* | sco3.2v5* | sco5v6*)
1.237 moko 17867: # Note: We CANNOT use -z defs as we might desire, because we do not
1.128 moko 17868: # link with -lc, and that would cause any symbols used from libc to
17869: # always be unresolved, which means just about no library would
17870: # ever link correctly. If we're not using GNU ld we use -z text
17871: # though, which does catch some bad symbols but isn't as heavy-handed
17872: # as -z defs.
1.237 moko 17873: no_undefined_flag_CXX='$wl-z,text'
17874: allow_undefined_flag_CXX='$wl-z,nodefs'
1.128 moko 17875: archive_cmds_need_lc_CXX=no
17876: hardcode_shlibpath_var_CXX=no
1.237 moko 17877: hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
1.128 moko 17878: hardcode_libdir_separator_CXX=':'
17879: link_all_deplibs_CXX=yes
1.237 moko 17880: export_dynamic_flag_spec_CXX='$wl-Bexport'
1.128 moko 17881: runpath_var='LD_RUN_PATH'
17882:
17883: case $cc_basename in
17884: CC*)
1.237 moko 17885: archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17886: archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
1.128 moko 17887: old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
1.237 moko 17888: '"$old_archive_cmds_CXX"
1.128 moko 17889: reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
1.237 moko 17890: '"$reload_cmds_CXX"
1.128 moko 17891: ;;
17892: *)
1.237 moko 17893: archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17894: archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
1.128 moko 17895: ;;
17896: esac
17897: ;;
17898:
17899: tandem*)
17900: case $cc_basename in
17901: NCC*)
17902: # NonStop-UX NCC 3.20
17903: # FIXME: insert proper C++ library support
17904: ld_shlibs_CXX=no
17905: ;;
17906: *)
17907: # FIXME: insert proper C++ library support
17908: ld_shlibs_CXX=no
17909: ;;
17910: esac
17911: ;;
17912:
17913: vxworks*)
17914: # FIXME: insert proper C++ library support
17915: ld_shlibs_CXX=no
17916: ;;
17917:
17918: *)
17919: # FIXME: insert proper C++ library support
17920: ld_shlibs_CXX=no
17921: ;;
17922: esac
17923:
1.237 moko 17924: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
17925: printf "%s\n" "$ld_shlibs_CXX" >&6; }
17926: test no = "$ld_shlibs_CXX" && can_build_shared=no
1.128 moko 17927:
1.237 moko 17928: GCC_CXX=$GXX
17929: LD_CXX=$LD
1.128 moko 17930:
17931: ## CAVEAT EMPTOR:
17932: ## There is no encapsulation within the following macros, do not change
17933: ## the running order or otherwise move them around unless you know exactly
17934: ## what you are doing...
17935: # Dependencies to place before and after the object being linked:
17936: predep_objects_CXX=
17937: postdep_objects_CXX=
17938: predeps_CXX=
17939: postdeps_CXX=
17940: compiler_lib_search_path_CXX=
17941:
17942: cat > conftest.$ac_ext <<_LT_EOF
17943: class Foo
17944: {
17945: public:
17946: Foo (void) { a = 0; }
17947: private:
17948: int a;
17949: };
17950: _LT_EOF
17951:
17952:
17953: _lt_libdeps_save_CFLAGS=$CFLAGS
17954: case "$CC $CFLAGS " in #(
17955: *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
17956: *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
17957: *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
17958: esac
17959:
1.150 moko 17960: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1.128 moko 17961: (eval $ac_compile) 2>&5
17962: ac_status=$?
1.237 moko 17963: printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1.150 moko 17964: test $ac_status = 0; }; then
1.128 moko 17965: # Parse the compiler output and extract the necessary
17966: # objects, libraries and library flags.
17967:
17968: # Sentinel used to keep track of whether or not we are before
17969: # the conftest object file.
17970: pre_test_object_deps_done=no
17971:
17972: for p in `eval "$output_verbose_link_cmd"`; do
1.237 moko 17973: case $prev$p in
1.128 moko 17974:
17975: -L* | -R* | -l*)
1.237 moko 17976: # Some compilers place space between "-{L,R,l}" and the path.
1.128 moko 17977: # Remove the space.
1.237 moko 17978: if test x-L = x"$p" ||
17979: test x-R = x"$p" ||
17980: test x-l = x"$p"; then
1.128 moko 17981: prev=$p
17982: continue
17983: fi
17984:
17985: # Expand the sysroot to ease extracting the directories later.
17986: if test -z "$prev"; then
17987: case $p in
17988: -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
17989: -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
17990: -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
17991: esac
17992: fi
17993: case $p in
17994: =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
17995: esac
1.237 moko 17996: if test no = "$pre_test_object_deps_done"; then
17997: case $prev in
1.128 moko 17998: -L | -R)
17999: # Internal compiler library paths should come after those
18000: # provided the user. The postdeps already come after the
18001: # user supplied libs so there is no need to process them.
18002: if test -z "$compiler_lib_search_path_CXX"; then
1.237 moko 18003: compiler_lib_search_path_CXX=$prev$p
1.128 moko 18004: else
1.237 moko 18005: compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
1.128 moko 18006: fi
18007: ;;
18008: # The "-l" case would never come before the object being
18009: # linked, so don't bother handling this case.
18010: esac
18011: else
18012: if test -z "$postdeps_CXX"; then
1.237 moko 18013: postdeps_CXX=$prev$p
1.128 moko 18014: else
1.237 moko 18015: postdeps_CXX="${postdeps_CXX} $prev$p"
1.128 moko 18016: fi
18017: fi
18018: prev=
18019: ;;
18020:
18021: *.lto.$objext) ;; # Ignore GCC LTO objects
18022: *.$objext)
18023: # This assumes that the test object file only shows up
18024: # once in the compiler output.
18025: if test "$p" = "conftest.$objext"; then
18026: pre_test_object_deps_done=yes
18027: continue
18028: fi
18029:
1.237 moko 18030: if test no = "$pre_test_object_deps_done"; then
1.128 moko 18031: if test -z "$predep_objects_CXX"; then
1.237 moko 18032: predep_objects_CXX=$p
1.128 moko 18033: else
18034: predep_objects_CXX="$predep_objects_CXX $p"
18035: fi
18036: else
18037: if test -z "$postdep_objects_CXX"; then
1.237 moko 18038: postdep_objects_CXX=$p
1.128 moko 18039: else
18040: postdep_objects_CXX="$postdep_objects_CXX $p"
18041: fi
18042: fi
18043: ;;
18044:
18045: *) ;; # Ignore the rest.
18046:
18047: esac
18048: done
18049:
18050: # Clean up.
18051: rm -f a.out a.exe
18052: else
18053: echo "libtool.m4: error: problem compiling CXX test program"
18054: fi
18055:
18056: $RM -f confest.$objext
18057: CFLAGS=$_lt_libdeps_save_CFLAGS
18058:
18059: # PORTME: override above test on systems where it is broken
18060: case $host_os in
18061: interix[3-9]*)
18062: # Interix 3.5 installs completely hosed .la files for C++, so rather than
18063: # hack all around it, let's just trust "g++" to DTRT.
18064: predep_objects_CXX=
18065: postdep_objects_CXX=
18066: postdeps_CXX=
18067: ;;
1.237 moko 18068: esac
1.128 moko 18069:
18070:
1.237 moko 18071: case " $postdeps_CXX " in
18072: *" -lc "*) archive_cmds_need_lc_CXX=no ;;
18073: esac
1.128 moko 18074: compiler_lib_search_dirs_CXX=
18075: if test -n "${compiler_lib_search_path_CXX}"; then
1.237 moko 18076: compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
1.128 moko 18077: fi
18078:
18079:
18080:
18081:
18082:
18083:
18084:
18085:
18086:
18087:
18088:
18089:
18090:
18091:
18092:
18093:
18094:
18095:
18096:
18097:
18098:
18099:
18100:
18101:
18102:
18103:
18104:
18105:
18106:
18107:
18108:
18109: lt_prog_compiler_wl_CXX=
18110: lt_prog_compiler_pic_CXX=
18111: lt_prog_compiler_static_CXX=
18112:
18113:
18114: # C++ specific cases for pic, static, wl, etc.
1.237 moko 18115: if test yes = "$GXX"; then
1.128 moko 18116: lt_prog_compiler_wl_CXX='-Wl,'
18117: lt_prog_compiler_static_CXX='-static'
18118:
18119: case $host_os in
18120: aix*)
18121: # All AIX code is PIC.
1.237 moko 18122: if test ia64 = "$host_cpu"; then
1.128 moko 18123: # AIX 5 now supports IA64 processor
18124: lt_prog_compiler_static_CXX='-Bstatic'
18125: fi
1.237 moko 18126: lt_prog_compiler_pic_CXX='-fPIC'
1.128 moko 18127: ;;
18128:
18129: amigaos*)
18130: case $host_cpu in
18131: powerpc)
18132: # see comment about AmigaOS4 .so support
18133: lt_prog_compiler_pic_CXX='-fPIC'
18134: ;;
18135: m68k)
18136: # FIXME: we need at least 68020 code to build shared libraries, but
1.237 moko 18137: # adding the '-m68020' flag to GCC prevents building anything better,
18138: # like '-m68040'.
1.128 moko 18139: lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
18140: ;;
18141: esac
18142: ;;
18143:
18144: beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18145: # PIC is the default for these OSes.
18146: ;;
1.237 moko 18147: mingw* | windows* | cygwin* | os2* | pw32* | cegcc*)
1.128 moko 18148: # This hack is so that the source file can tell whether it is being
18149: # built for inclusion in a dll (and should export symbols for example).
18150: # Although the cygwin gcc ignores -fPIC, still need this for old-style
18151: # (--disable-auto-import) libraries
18152: lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
1.237 moko 18153: case $host_os in
18154: os2*)
18155: lt_prog_compiler_static_CXX='$wl-static'
18156: ;;
18157: esac
1.128 moko 18158: ;;
18159: darwin* | rhapsody*)
18160: # PIC is the default on this platform
18161: # Common symbols not allowed in MH_DYLIB files
18162: lt_prog_compiler_pic_CXX='-fno-common'
18163: ;;
18164: *djgpp*)
18165: # DJGPP does not support shared libraries at all
18166: lt_prog_compiler_pic_CXX=
18167: ;;
18168: haiku*)
18169: # PIC is the default for Haiku.
18170: # The "-static" flag exists, but is broken.
18171: lt_prog_compiler_static_CXX=
18172: ;;
18173: interix[3-9]*)
18174: # Interix 3.x gcc -fpic/-fPIC options generate broken code.
18175: # Instead, we relocate shared libraries at runtime.
18176: ;;
18177: sysv4*MP*)
18178: if test -d /usr/nec; then
18179: lt_prog_compiler_pic_CXX=-Kconform_pic
18180: fi
18181: ;;
18182: hpux*)
18183: # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
18184: # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
18185: # sets the default TLS model and affects inlining.
18186: case $host_cpu in
18187: hppa*64*)
18188: ;;
18189: *)
18190: lt_prog_compiler_pic_CXX='-fPIC'
18191: ;;
18192: esac
18193: ;;
18194: *qnx* | *nto*)
18195: # QNX uses GNU C++, but need to define -shared option too, otherwise
18196: # it will coredump.
18197: lt_prog_compiler_pic_CXX='-fPIC -shared'
18198: ;;
18199: *)
18200: lt_prog_compiler_pic_CXX='-fPIC'
18201: ;;
18202: esac
18203: else
18204: case $host_os in
18205: aix[4-9]*)
18206: # All AIX code is PIC.
1.237 moko 18207: if test ia64 = "$host_cpu"; then
1.128 moko 18208: # AIX 5 now supports IA64 processor
18209: lt_prog_compiler_static_CXX='-Bstatic'
18210: else
18211: lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
18212: fi
18213: ;;
18214: chorus*)
18215: case $cc_basename in
18216: cxch68*)
18217: # Green Hills C++ Compiler
18218: # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
18219: ;;
18220: esac
18221: ;;
1.237 moko 18222: mingw* | windows* | cygwin* | os2* | pw32* | cegcc*)
1.128 moko 18223: # This hack is so that the source file can tell whether it is being
18224: # built for inclusion in a dll (and should export symbols for example).
18225: lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
18226: ;;
18227: dgux*)
18228: case $cc_basename in
18229: ec++*)
18230: lt_prog_compiler_pic_CXX='-KPIC'
18231: ;;
18232: ghcx*)
18233: # Green Hills C++ Compiler
18234: lt_prog_compiler_pic_CXX='-pic'
18235: ;;
18236: *)
18237: ;;
18238: esac
18239: ;;
1.237 moko 18240: freebsd* | dragonfly* | midnightbsd*)
1.128 moko 18241: # FreeBSD uses GNU C++
18242: ;;
18243: hpux9* | hpux10* | hpux11*)
18244: case $cc_basename in
18245: CC*)
18246: lt_prog_compiler_wl_CXX='-Wl,'
1.237 moko 18247: lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
18248: if test ia64 != "$host_cpu"; then
1.128 moko 18249: lt_prog_compiler_pic_CXX='+Z'
18250: fi
18251: ;;
18252: aCC*)
18253: lt_prog_compiler_wl_CXX='-Wl,'
1.237 moko 18254: lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
1.128 moko 18255: case $host_cpu in
18256: hppa*64*|ia64*)
18257: # +Z the default
18258: ;;
18259: *)
18260: lt_prog_compiler_pic_CXX='+Z'
18261: ;;
18262: esac
18263: ;;
18264: *)
18265: ;;
18266: esac
18267: ;;
18268: interix*)
18269: # This is c89, which is MS Visual C++ (no shared libs)
18270: # Anyone wants to do a port?
18271: ;;
18272: irix5* | irix6* | nonstopux*)
18273: case $cc_basename in
18274: CC*)
18275: lt_prog_compiler_wl_CXX='-Wl,'
18276: lt_prog_compiler_static_CXX='-non_shared'
18277: # CC pic flag -KPIC is the default.
18278: ;;
18279: *)
18280: ;;
18281: esac
18282: ;;
1.237 moko 18283: linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
1.128 moko 18284: case $cc_basename in
18285: KCC*)
18286: # KAI C++ Compiler
18287: lt_prog_compiler_wl_CXX='--backend -Wl,'
18288: lt_prog_compiler_pic_CXX='-fPIC'
18289: ;;
18290: ecpc* )
1.237 moko 18291: # old Intel C++ for x86_64, which still supported -KPIC.
1.128 moko 18292: lt_prog_compiler_wl_CXX='-Wl,'
18293: lt_prog_compiler_pic_CXX='-KPIC'
18294: lt_prog_compiler_static_CXX='-static'
18295: ;;
18296: icpc* )
18297: # Intel C++, used to be incompatible with GCC.
18298: # ICC 10 doesn't accept -KPIC any more.
18299: lt_prog_compiler_wl_CXX='-Wl,'
18300: lt_prog_compiler_pic_CXX='-fPIC'
18301: lt_prog_compiler_static_CXX='-static'
18302: ;;
18303: pgCC* | pgcpp*)
18304: # Portland Group C++ compiler
18305: lt_prog_compiler_wl_CXX='-Wl,'
18306: lt_prog_compiler_pic_CXX='-fpic'
18307: lt_prog_compiler_static_CXX='-Bstatic'
18308: ;;
18309: cxx*)
18310: # Compaq C++
18311: # Make sure the PIC flag is empty. It appears that all Alpha
18312: # Linux and Compaq Tru64 Unix objects are PIC.
18313: lt_prog_compiler_pic_CXX=
18314: lt_prog_compiler_static_CXX='-non_shared'
18315: ;;
18316: xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
18317: # IBM XL 8.0, 9.0 on PPC and BlueGene
18318: lt_prog_compiler_wl_CXX='-Wl,'
18319: lt_prog_compiler_pic_CXX='-qpic'
18320: lt_prog_compiler_static_CXX='-qstaticlink'
18321: ;;
18322: *)
1.237 moko 18323: case `$CC -V 2>&1 | $SED 5q` in
1.128 moko 18324: *Sun\ C*)
18325: # Sun C++ 5.9
18326: lt_prog_compiler_pic_CXX='-KPIC'
18327: lt_prog_compiler_static_CXX='-Bstatic'
18328: lt_prog_compiler_wl_CXX='-Qoption ld '
18329: ;;
18330: esac
18331: ;;
18332: esac
18333: ;;
18334: lynxos*)
18335: ;;
18336: m88k*)
18337: ;;
18338: mvs*)
18339: case $cc_basename in
18340: cxx*)
18341: lt_prog_compiler_pic_CXX='-W c,exportall'
18342: ;;
18343: *)
18344: ;;
18345: esac
18346: ;;
1.237 moko 18347: netbsd* | netbsdelf*-gnu)
18348: ;;
18349: *-mlibc)
1.128 moko 18350: ;;
18351: *qnx* | *nto*)
18352: # QNX uses GNU C++, but need to define -shared option too, otherwise
18353: # it will coredump.
18354: lt_prog_compiler_pic_CXX='-fPIC -shared'
18355: ;;
18356: osf3* | osf4* | osf5*)
18357: case $cc_basename in
18358: KCC*)
18359: lt_prog_compiler_wl_CXX='--backend -Wl,'
18360: ;;
18361: RCC*)
18362: # Rational C++ 2.4.1
18363: lt_prog_compiler_pic_CXX='-pic'
18364: ;;
18365: cxx*)
18366: # Digital/Compaq C++
18367: lt_prog_compiler_wl_CXX='-Wl,'
18368: # Make sure the PIC flag is empty. It appears that all Alpha
18369: # Linux and Compaq Tru64 Unix objects are PIC.
18370: lt_prog_compiler_pic_CXX=
18371: lt_prog_compiler_static_CXX='-non_shared'
18372: ;;
18373: *)
18374: ;;
18375: esac
18376: ;;
18377: psos*)
18378: ;;
1.237 moko 18379: serenity*)
18380: ;;
1.128 moko 18381: solaris*)
18382: case $cc_basename in
18383: CC* | sunCC*)
18384: # Sun C++ 4.2, 5.x and Centerline C++
18385: lt_prog_compiler_pic_CXX='-KPIC'
18386: lt_prog_compiler_static_CXX='-Bstatic'
18387: lt_prog_compiler_wl_CXX='-Qoption ld '
18388: ;;
18389: gcx*)
18390: # Green Hills C++ Compiler
18391: lt_prog_compiler_pic_CXX='-PIC'
18392: ;;
18393: *)
18394: ;;
18395: esac
18396: ;;
18397: sunos4*)
18398: case $cc_basename in
18399: CC*)
18400: # Sun C++ 4.x
18401: lt_prog_compiler_pic_CXX='-pic'
18402: lt_prog_compiler_static_CXX='-Bstatic'
18403: ;;
18404: lcc*)
18405: # Lucid
18406: lt_prog_compiler_pic_CXX='-pic'
18407: ;;
18408: *)
18409: ;;
18410: esac
18411: ;;
18412: sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
18413: case $cc_basename in
18414: CC*)
18415: lt_prog_compiler_wl_CXX='-Wl,'
18416: lt_prog_compiler_pic_CXX='-KPIC'
18417: lt_prog_compiler_static_CXX='-Bstatic'
18418: ;;
18419: esac
18420: ;;
18421: tandem*)
18422: case $cc_basename in
18423: NCC*)
18424: # NonStop-UX NCC 3.20
18425: lt_prog_compiler_pic_CXX='-KPIC'
18426: ;;
18427: *)
18428: ;;
18429: esac
18430: ;;
18431: vxworks*)
18432: ;;
18433: *)
18434: lt_prog_compiler_can_build_shared_CXX=no
18435: ;;
18436: esac
18437: fi
18438:
18439: case $host_os in
1.237 moko 18440: # For platforms that do not support PIC, -DPIC is meaningless:
1.128 moko 18441: *djgpp*)
18442: lt_prog_compiler_pic_CXX=
18443: ;;
18444: *)
18445: lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
18446: ;;
18447: esac
18448:
1.237 moko 18449: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
18450: printf %s "checking for $compiler option to produce PIC... " >&6; }
18451: if test ${lt_cv_prog_compiler_pic_CXX+y}
18452: then :
18453: printf %s "(cached) " >&6
18454: else case e in #(
18455: e) lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX ;;
18456: esac
1.128 moko 18457: fi
1.237 moko 18458: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
18459: printf "%s\n" "$lt_cv_prog_compiler_pic_CXX" >&6; }
1.128 moko 18460: lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
18461:
18462: #
18463: # Check to make sure the PIC flag actually works.
18464: #
18465: if test -n "$lt_prog_compiler_pic_CXX"; then
1.237 moko 18466: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
18467: printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
18468: if test ${lt_cv_prog_compiler_pic_works_CXX+y}
18469: then :
18470: printf %s "(cached) " >&6
18471: else case e in #(
18472: e) lt_cv_prog_compiler_pic_works_CXX=no
1.128 moko 18473: ac_outfile=conftest.$ac_objext
18474: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1.237 moko 18475: lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment
1.128 moko 18476: # Insert the option either (1) after the last *FLAGS variable, or
18477: # (2) before a word containing "conftest.", or (3) at the end.
18478: # Note that $ac_compile itself does not contain backslashes and begins
18479: # with a dollar sign (not a hyphen), so the echo should work correctly.
18480: # The option is referenced via a variable to avoid confusing sed.
18481: lt_compile=`echo "$ac_compile" | $SED \
18482: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18483: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18484: -e 's:$: $lt_compiler_flag:'`
18485: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
18486: (eval "$lt_compile" 2>conftest.err)
18487: ac_status=$?
18488: cat conftest.err >&5
18489: echo "$as_me:$LINENO: \$? = $ac_status" >&5
18490: if (exit $ac_status) && test -s "$ac_outfile"; then
18491: # The compiler can only warn and ignore the option if not recognized
18492: # So say no if there are warnings other than the usual output.
18493: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
18494: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18495: if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
18496: lt_cv_prog_compiler_pic_works_CXX=yes
18497: fi
18498: fi
18499: $RM conftest*
1.237 moko 18500: ;;
18501: esac
1.128 moko 18502: fi
1.237 moko 18503: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
18504: printf "%s\n" "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
1.128 moko 18505:
1.237 moko 18506: if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
1.128 moko 18507: case $lt_prog_compiler_pic_CXX in
18508: "" | " "*) ;;
18509: *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
18510: esac
18511: else
18512: lt_prog_compiler_pic_CXX=
18513: lt_prog_compiler_can_build_shared_CXX=no
18514: fi
18515:
18516: fi
18517:
18518:
18519:
18520:
18521:
18522: #
18523: # Check to make sure the static flag actually works.
18524: #
18525: wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
1.237 moko 18526: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
18527: printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
18528: if test ${lt_cv_prog_compiler_static_works_CXX+y}
18529: then :
18530: printf %s "(cached) " >&6
18531: else case e in #(
18532: e) lt_cv_prog_compiler_static_works_CXX=no
18533: save_LDFLAGS=$LDFLAGS
1.128 moko 18534: LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
18535: echo "$lt_simple_link_test_code" > conftest.$ac_ext
18536: if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
18537: # The linker can only warn and ignore the option if not recognized
18538: # So say no if there are warnings
18539: if test -s conftest.err; then
18540: # Append any errors to the config.log.
18541: cat conftest.err 1>&5
18542: $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
18543: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18544: if diff conftest.exp conftest.er2 >/dev/null; then
18545: lt_cv_prog_compiler_static_works_CXX=yes
18546: fi
18547: else
18548: lt_cv_prog_compiler_static_works_CXX=yes
18549: fi
18550: fi
18551: $RM -r conftest*
1.237 moko 18552: LDFLAGS=$save_LDFLAGS
18553: ;;
18554: esac
1.128 moko 18555: fi
1.237 moko 18556: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
18557: printf "%s\n" "$lt_cv_prog_compiler_static_works_CXX" >&6; }
1.128 moko 18558:
1.237 moko 18559: if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
1.128 moko 18560: :
18561: else
18562: lt_prog_compiler_static_CXX=
18563: fi
18564:
18565:
18566:
18567:
1.237 moko 18568: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
18569: printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
18570: if test ${lt_cv_prog_compiler_c_o_CXX+y}
18571: then :
18572: printf %s "(cached) " >&6
18573: else case e in #(
18574: e) lt_cv_prog_compiler_c_o_CXX=no
1.128 moko 18575: $RM -r conftest 2>/dev/null
18576: mkdir conftest
18577: cd conftest
18578: mkdir out
18579: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18580:
18581: lt_compiler_flag="-o out/conftest2.$ac_objext"
18582: # Insert the option either (1) after the last *FLAGS variable, or
18583: # (2) before a word containing "conftest.", or (3) at the end.
18584: # Note that $ac_compile itself does not contain backslashes and begins
18585: # with a dollar sign (not a hyphen), so the echo should work correctly.
18586: lt_compile=`echo "$ac_compile" | $SED \
18587: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18588: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18589: -e 's:$: $lt_compiler_flag:'`
18590: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
18591: (eval "$lt_compile" 2>out/conftest.err)
18592: ac_status=$?
18593: cat out/conftest.err >&5
18594: echo "$as_me:$LINENO: \$? = $ac_status" >&5
18595: if (exit $ac_status) && test -s out/conftest2.$ac_objext
18596: then
18597: # The compiler can only warn and ignore the option if not recognized
18598: # So say no if there are warnings
18599: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
18600: $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18601: if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18602: lt_cv_prog_compiler_c_o_CXX=yes
18603: fi
18604: fi
18605: chmod u+w . 2>&5
18606: $RM conftest*
18607: # SGI C++ compiler will create directory out/ii_files/ for
18608: # template instantiation
18609: test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
18610: $RM out/* && rmdir out
18611: cd ..
18612: $RM -r conftest
18613: $RM conftest*
1.237 moko 18614: ;;
18615: esac
1.128 moko 18616: fi
1.237 moko 18617: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
18618: printf "%s\n" "$lt_cv_prog_compiler_c_o_CXX" >&6; }
1.128 moko 18619:
18620:
18621:
1.237 moko 18622: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
18623: printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
18624: if test ${lt_cv_prog_compiler_c_o_CXX+y}
18625: then :
18626: printf %s "(cached) " >&6
18627: else case e in #(
18628: e) lt_cv_prog_compiler_c_o_CXX=no
1.128 moko 18629: $RM -r conftest 2>/dev/null
18630: mkdir conftest
18631: cd conftest
18632: mkdir out
18633: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18634:
18635: lt_compiler_flag="-o out/conftest2.$ac_objext"
18636: # Insert the option either (1) after the last *FLAGS variable, or
18637: # (2) before a word containing "conftest.", or (3) at the end.
18638: # Note that $ac_compile itself does not contain backslashes and begins
18639: # with a dollar sign (not a hyphen), so the echo should work correctly.
18640: lt_compile=`echo "$ac_compile" | $SED \
18641: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18642: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18643: -e 's:$: $lt_compiler_flag:'`
18644: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
18645: (eval "$lt_compile" 2>out/conftest.err)
18646: ac_status=$?
18647: cat out/conftest.err >&5
18648: echo "$as_me:$LINENO: \$? = $ac_status" >&5
18649: if (exit $ac_status) && test -s out/conftest2.$ac_objext
18650: then
18651: # The compiler can only warn and ignore the option if not recognized
18652: # So say no if there are warnings
18653: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
18654: $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18655: if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18656: lt_cv_prog_compiler_c_o_CXX=yes
18657: fi
18658: fi
18659: chmod u+w . 2>&5
18660: $RM conftest*
18661: # SGI C++ compiler will create directory out/ii_files/ for
18662: # template instantiation
18663: test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
18664: $RM out/* && rmdir out
18665: cd ..
18666: $RM -r conftest
18667: $RM conftest*
1.237 moko 18668: ;;
18669: esac
1.128 moko 18670: fi
1.237 moko 18671: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
18672: printf "%s\n" "$lt_cv_prog_compiler_c_o_CXX" >&6; }
1.128 moko 18673:
18674:
18675:
18676:
1.237 moko 18677: hard_links=nottested
18678: if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
1.128 moko 18679: # do not overwrite the value of need_locks provided by the user
1.237 moko 18680: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
18681: printf %s "checking if we can lock with hard links... " >&6; }
1.128 moko 18682: hard_links=yes
18683: $RM conftest*
18684: ln conftest.a conftest.b 2>/dev/null && hard_links=no
18685: touch conftest.a
18686: ln conftest.a conftest.b 2>&5 || hard_links=no
18687: ln conftest.a conftest.b 2>/dev/null && hard_links=no
1.237 moko 18688: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
18689: printf "%s\n" "$hard_links" >&6; }
18690: if test no = "$hard_links"; then
18691: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
18692: printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
1.128 moko 18693: need_locks=warn
18694: fi
18695: else
18696: need_locks=no
18697: fi
18698:
18699:
18700:
1.237 moko 18701: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18702: printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
1.128 moko 18703:
18704: export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18705: exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
18706: case $host_os in
18707: aix[4-9]*)
18708: # If we're using GNU nm, then we don't want the "-C" option.
1.237 moko 18709: # -C means demangle to GNU nm, but means don't demangle to AIX nm.
18710: # Without the "-l" option, or with the "-B" option, AIX nm treats
18711: # weak defined symbols like other global defined symbols, whereas
18712: # GNU nm marks them as "W".
18713: # While the 'weak' keyword is ignored in the Export File, we need
18714: # it in the Import File for the 'aix-soname' feature, so we have
18715: # to replace the "-B" option with "-P" for AIX nm.
1.128 moko 18716: if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
1.237 moko 18717: export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
1.128 moko 18718: else
1.237 moko 18719: export_symbols_cmds_CXX='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
1.128 moko 18720: fi
18721: ;;
18722: pw32*)
1.237 moko 18723: export_symbols_cmds_CXX=$ltdll_cmds
1.128 moko 18724: ;;
1.237 moko 18725: cygwin* | mingw* | windows* | cegcc*)
1.128 moko 18726: case $cc_basename in
1.237 moko 18727: cl* | icl*)
1.128 moko 18728: exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
18729: ;;
18730: *)
18731: export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
18732: exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
18733: ;;
18734: esac
18735: ;;
1.237 moko 18736: linux* | k*bsd*-gnu | gnu*)
18737: link_all_deplibs_CXX=no
18738: ;;
1.128 moko 18739: *)
18740: export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18741: ;;
18742: esac
18743:
1.237 moko 18744: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
18745: printf "%s\n" "$ld_shlibs_CXX" >&6; }
18746: test no = "$ld_shlibs_CXX" && can_build_shared=no
1.128 moko 18747:
18748: with_gnu_ld_CXX=$with_gnu_ld
18749:
18750:
18751:
18752:
18753:
18754:
18755: #
18756: # Do we need to explicitly link libc?
18757: #
18758: case "x$archive_cmds_need_lc_CXX" in
18759: x|xyes)
18760: # Assume -lc should be added
18761: archive_cmds_need_lc_CXX=yes
18762:
1.237 moko 18763: if test yes,yes = "$GCC,$enable_shared"; then
1.128 moko 18764: case $archive_cmds_CXX in
18765: *'~'*)
18766: # FIXME: we may have to deal with multi-command sequences.
18767: ;;
18768: '$CC '*)
18769: # Test whether the compiler implicitly links with -lc since on some
18770: # systems, -lgcc has to come before -lc. If gcc already passes -lc
18771: # to ld, don't add -lc before -lgcc.
1.237 moko 18772: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
18773: printf %s "checking whether -lc should be explicitly linked in... " >&6; }
18774: if test ${lt_cv_archive_cmds_need_lc_CXX+y}
18775: then :
18776: printf %s "(cached) " >&6
18777: else case e in #(
18778: e) $RM conftest*
1.128 moko 18779: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18780:
1.150 moko 18781: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1.128 moko 18782: (eval $ac_compile) 2>&5
18783: ac_status=$?
1.237 moko 18784: printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1.150 moko 18785: test $ac_status = 0; } 2>conftest.err; then
1.128 moko 18786: soname=conftest
18787: lib=conftest
18788: libobjs=conftest.$ac_objext
18789: deplibs=
18790: wl=$lt_prog_compiler_wl_CXX
18791: pic_flag=$lt_prog_compiler_pic_CXX
18792: compiler_flags=-v
18793: linker_flags=-v
18794: verstring=
18795: output_objdir=.
18796: libname=conftest
18797: lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
18798: allow_undefined_flag_CXX=
1.150 moko 18799: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
1.128 moko 18800: (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
18801: ac_status=$?
1.237 moko 18802: printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1.150 moko 18803: test $ac_status = 0; }
1.128 moko 18804: then
18805: lt_cv_archive_cmds_need_lc_CXX=no
18806: else
18807: lt_cv_archive_cmds_need_lc_CXX=yes
18808: fi
18809: allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
18810: else
18811: cat conftest.err 1>&5
18812: fi
18813: $RM conftest*
1.237 moko 18814: ;;
18815: esac
1.128 moko 18816: fi
1.237 moko 18817: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
18818: printf "%s\n" "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
1.128 moko 18819: archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
18820: ;;
18821: esac
18822: fi
18823: ;;
18824: esac
18825:
18826:
18827:
18828:
18829:
18830:
18831:
18832:
18833:
18834:
18835:
18836:
18837:
18838:
18839:
18840:
18841:
18842:
18843:
18844:
18845:
18846:
18847:
18848:
18849:
18850:
18851:
18852:
18853:
18854:
18855:
18856:
18857:
18858:
18859:
18860:
18861:
18862:
18863:
18864:
18865:
18866:
18867:
18868:
18869:
18870:
18871:
18872:
18873:
18874:
18875:
18876:
18877:
18878:
18879:
18880:
18881:
18882:
18883:
18884:
18885:
18886:
1.237 moko 18887: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
18888: printf %s "checking dynamic linker characteristics... " >&6; }
1.128 moko 18889:
18890: library_names_spec=
18891: libname_spec='lib$name'
18892: soname_spec=
1.237 moko 18893: shrext_cmds=.so
1.128 moko 18894: postinstall_cmds=
18895: postuninstall_cmds=
18896: finish_cmds=
18897: finish_eval=
18898: shlibpath_var=
18899: shlibpath_overrides_runpath=unknown
18900: version_type=none
18901: dynamic_linker="$host_os ld.so"
18902: sys_lib_dlsearch_path_spec="/lib /usr/lib"
18903: need_lib_prefix=unknown
18904: hardcode_into_libs=no
18905:
18906: # when you set need_version to no, make sure it does not cause -set_version
18907: # flags to be left without arguments
18908: need_version=unknown
18909:
1.237 moko 18910:
18911:
1.128 moko 18912: case $host_os in
18913: aix3*)
18914: version_type=linux # correct to gnu/linux during the next big refactor
1.237 moko 18915: library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
1.128 moko 18916: shlibpath_var=LIBPATH
18917:
18918: # AIX 3 has no versioning support, so we append a major version to the name.
1.237 moko 18919: soname_spec='$libname$release$shared_ext$major'
1.128 moko 18920: ;;
18921:
18922: aix[4-9]*)
18923: version_type=linux # correct to gnu/linux during the next big refactor
18924: need_lib_prefix=no
18925: need_version=no
18926: hardcode_into_libs=yes
1.237 moko 18927: if test ia64 = "$host_cpu"; then
1.128 moko 18928: # AIX 5 supports IA64
1.237 moko 18929: library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
1.128 moko 18930: shlibpath_var=LD_LIBRARY_PATH
18931: else
18932: # With GCC up to 2.95.x, collect2 would create an import file
18933: # for dependence libraries. The import file would start with
1.237 moko 18934: # the line '#! .'. This would cause the generated library to
18935: # depend on '.', always an invalid library. This was fixed in
1.128 moko 18936: # development snapshots of GCC prior to 3.0.
18937: case $host_os in
18938: aix4 | aix4.[01] | aix4.[01].*)
18939: if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18940: echo ' yes '
1.237 moko 18941: echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
1.128 moko 18942: :
18943: else
18944: can_build_shared=no
18945: fi
18946: ;;
18947: esac
1.237 moko 18948: # Using Import Files as archive members, it is possible to support
18949: # filename-based versioning of shared library archives on AIX. While
18950: # this would work for both with and without runtime linking, it will
18951: # prevent static linking of such archives. So we do filename-based
18952: # shared library versioning with .so extension only, which is used
18953: # when both runtime linking and shared linking is enabled.
18954: # Unfortunately, runtime linking may impact performance, so we do
18955: # not want this to be the default eventually. Also, we use the
18956: # versioned .so libs for executables only if there is the -brtl
18957: # linker flag in LDFLAGS as well, or --enable-aix-soname=svr4 only.
18958: # To allow for filename-based versioning support, we need to create
18959: # libNAME.so.V as an archive file, containing:
18960: # *) an Import File, referring to the versioned filename of the
18961: # archive as well as the shared archive member, telling the
18962: # bitwidth (32 or 64) of that shared object, and providing the
18963: # list of exported symbols of that shared object, eventually
18964: # decorated with the 'weak' keyword
18965: # *) the shared object with the F_LOADONLY flag set, to really avoid
18966: # it being seen by the linker.
18967: # At run time we better use the real file rather than another symlink,
18968: # but for link time we create the symlink libNAME.so -> libNAME.so.V
18969:
18970: case $with_aix_soname,$aix_use_runtimelinking in
18971: # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
1.128 moko 18972: # soname into executable. Probably we can add versioning support to
18973: # collect2, so additional links can be useful in future.
1.237 moko 18974: aix,yes) # traditional libtool
18975: dynamic_linker='AIX unversionable lib.so'
1.128 moko 18976: # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18977: # instead of lib<name>.a to let people know that these are not
18978: # typical AIX shared libraries.
1.237 moko 18979: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18980: ;;
18981: aix,no) # traditional AIX only
18982: dynamic_linker='AIX lib.a(lib.so.V)'
1.128 moko 18983: # We preserve .a as extension for shared libraries through AIX4.2
18984: # and later when we are not doing run time linking.
1.237 moko 18985: library_names_spec='$libname$release.a $libname.a'
18986: soname_spec='$libname$release$shared_ext$major'
18987: ;;
18988: svr4,*) # full svr4 only
18989: dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
18990: library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
18991: # We do not specify a path in Import Files, so LIBPATH fires.
18992: shlibpath_overrides_runpath=yes
18993: ;;
18994: *,yes) # both, prefer svr4
18995: dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
18996: library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
18997: # unpreferred sharedlib libNAME.a needs extra handling
18998: postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
18999: postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
19000: # We do not specify a path in Import Files, so LIBPATH fires.
19001: shlibpath_overrides_runpath=yes
19002: ;;
19003: *,no) # both, prefer aix
19004: dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
19005: library_names_spec='$libname$release.a $libname.a'
19006: soname_spec='$libname$release$shared_ext$major'
19007: # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
19008: postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
19009: postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
19010: ;;
19011: esac
1.128 moko 19012: shlibpath_var=LIBPATH
19013: fi
19014: ;;
19015:
19016: amigaos*)
19017: case $host_cpu in
19018: powerpc)
19019: # Since July 2007 AmigaOS4 officially supports .so libraries.
19020: # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
1.237 moko 19021: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
1.128 moko 19022: ;;
19023: m68k)
19024: library_names_spec='$libname.ixlibrary $libname.a'
19025: # Create ${libname}_ixlibrary.a entries in /sys/libs.
1.237 moko 19026: finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
1.128 moko 19027: ;;
19028: esac
19029: ;;
19030:
19031: beos*)
1.237 moko 19032: library_names_spec='$libname$shared_ext'
1.128 moko 19033: dynamic_linker="$host_os ld.so"
19034: shlibpath_var=LIBRARY_PATH
19035: ;;
19036:
19037: bsdi[45]*)
19038: version_type=linux # correct to gnu/linux during the next big refactor
19039: need_version=no
1.237 moko 19040: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19041: soname_spec='$libname$release$shared_ext$major'
1.128 moko 19042: finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19043: shlibpath_var=LD_LIBRARY_PATH
19044: sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19045: sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19046: # the default ld.so.conf also contains /usr/contrib/lib and
19047: # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19048: # libtool to hard-code these into programs
19049: ;;
19050:
1.237 moko 19051: cygwin* | mingw* | windows* | pw32* | cegcc*)
1.128 moko 19052: version_type=windows
1.237 moko 19053: shrext_cmds=.dll
1.128 moko 19054: need_version=no
19055: need_lib_prefix=no
19056:
19057: case $GCC,$cc_basename in
19058: yes,*)
19059: # gcc
19060: library_names_spec='$libname.dll.a'
19061: # DLL is installed to $(libdir)/../bin by postinstall_cmds
1.237 moko 19062: # If user builds GCC with multilib enabled,
19063: # it should just install on $(libdir)
19064: # not on $(libdir)/../bin or 32 bits dlls would override 64 bit ones.
19065: if test xyes = x"$multilib"; then
19066: postinstall_cmds='base_file=`basename \$file`~
19067: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
19068: dldir=$destdir/`dirname \$dlpath`~
19069: $install_prog $dir/$dlname $destdir/$dlname~
19070: chmod a+x $destdir/$dlname~
19071: if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
19072: eval '\''$striplib $destdir/$dlname'\'' || exit \$?;
19073: fi'
19074: else
19075: postinstall_cmds='base_file=`basename \$file`~
19076: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
19077: dldir=$destdir/`dirname \$dlpath`~
19078: test -d \$dldir || mkdir -p \$dldir~
19079: $install_prog $dir/$dlname \$dldir/$dlname~
19080: chmod a+x \$dldir/$dlname~
19081: if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
19082: eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
19083: fi'
19084: fi
1.128 moko 19085: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19086: dlpath=$dir/\$dldll~
19087: $RM \$dlpath'
19088: shlibpath_overrides_runpath=yes
19089:
19090: case $host_os in
19091: cygwin*)
19092: # Cygwin DLLs use 'cyg' prefix rather than 'lib'
1.237 moko 19093: soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
1.128 moko 19094:
19095: ;;
1.237 moko 19096: mingw* | windows* | cegcc*)
1.128 moko 19097: # MinGW DLLs use traditional 'lib' prefix
1.237 moko 19098: soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
1.128 moko 19099: ;;
19100: pw32*)
19101: # pw32 DLLs use 'pw' prefix rather than 'lib'
1.237 moko 19102: library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
1.128 moko 19103: ;;
19104: esac
19105: dynamic_linker='Win32 ld.exe'
19106: ;;
19107:
1.237 moko 19108: *,cl* | *,icl*)
19109: # Native MSVC or ICC
1.128 moko 19110: libname_spec='$name'
1.237 moko 19111: soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
19112: library_names_spec='$libname.dll.lib'
1.128 moko 19113:
19114: case $build_os in
1.237 moko 19115: mingw* | windows*)
1.128 moko 19116: sys_lib_search_path_spec=
19117: lt_save_ifs=$IFS
19118: IFS=';'
19119: for lt_path in $LIB
19120: do
19121: IFS=$lt_save_ifs
19122: # Let DOS variable expansion print the short 8.3 style file name.
19123: lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
19124: sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
19125: done
19126: IFS=$lt_save_ifs
19127: # Convert to MSYS style.
1.237 moko 19128: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
1.128 moko 19129: ;;
19130: cygwin*)
19131: # Convert to unix form, then to dos form, then back to unix form
19132: # but this time dos style (no spaces!) so that the unix form looks
19133: # like /cygdrive/c/PROGRA~1:/cygdr...
19134: sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
19135: sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
19136: sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19137: ;;
19138: *)
1.237 moko 19139: sys_lib_search_path_spec=$LIB
1.128 moko 19140: if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
19141: # It is most probably a Windows format PATH.
19142: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19143: else
19144: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19145: fi
19146: # FIXME: find the short name or the path components, as spaces are
19147: # common. (e.g. "Program Files" -> "PROGRA~1")
19148: ;;
19149: esac
19150:
19151: # DLL is installed to $(libdir)/../bin by postinstall_cmds
1.237 moko 19152: postinstall_cmds='base_file=`basename \$file`~
19153: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
1.128 moko 19154: dldir=$destdir/`dirname \$dlpath`~
19155: test -d \$dldir || mkdir -p \$dldir~
19156: $install_prog $dir/$dlname \$dldir/$dlname'
19157: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19158: dlpath=$dir/\$dldll~
19159: $RM \$dlpath'
19160: shlibpath_overrides_runpath=yes
19161: dynamic_linker='Win32 link.exe'
19162: ;;
19163:
19164: *)
1.237 moko 19165: # Assume MSVC and ICC wrapper
19166: library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
1.128 moko 19167: dynamic_linker='Win32 ld.exe'
19168: ;;
19169: esac
19170: # FIXME: first we should search . and the directory the executable is in
19171: shlibpath_var=PATH
19172: ;;
19173:
19174: darwin* | rhapsody*)
19175: dynamic_linker="$host_os dyld"
19176: version_type=darwin
19177: need_lib_prefix=no
19178: need_version=no
1.237 moko 19179: library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
19180: soname_spec='$libname$release$major$shared_ext'
1.128 moko 19181: shlibpath_overrides_runpath=yes
19182: shlibpath_var=DYLD_LIBRARY_PATH
19183: shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
19184:
19185: sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19186: ;;
19187:
19188: dgux*)
19189: version_type=linux # correct to gnu/linux during the next big refactor
19190: need_lib_prefix=no
19191: need_version=no
1.237 moko 19192: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19193: soname_spec='$libname$release$shared_ext$major'
1.128 moko 19194: shlibpath_var=LD_LIBRARY_PATH
19195: ;;
19196:
1.237 moko 19197: freebsd* | dragonfly* | midnightbsd*)
1.128 moko 19198: # DragonFly does not have aout. When/if they implement a new
19199: # versioning mechanism, adjust this.
19200: if test -x /usr/bin/objformat; then
19201: objformat=`/usr/bin/objformat`
19202: else
19203: case $host_os in
19204: freebsd[23].*) objformat=aout ;;
19205: *) objformat=elf ;;
19206: esac
19207: fi
19208: version_type=freebsd-$objformat
19209: case $version_type in
19210: freebsd-elf*)
1.237 moko 19211: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19212: soname_spec='$libname$release$shared_ext$major'
1.128 moko 19213: need_version=no
19214: need_lib_prefix=no
19215: ;;
19216: freebsd-*)
1.237 moko 19217: library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
1.128 moko 19218: need_version=yes
19219: ;;
19220: esac
1.237 moko 19221: case $host_cpu in
19222: powerpc64)
19223: # On FreeBSD bi-arch platforms, a different variable is used for 32-bit
19224: # binaries. See <https://man.freebsd.org/cgi/man.cgi?query=ld.so>.
19225: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19226: /* end confdefs.h. */
19227: int test_pointer_size[sizeof (void *) - 5];
19228:
19229: _ACEOF
19230: if ac_fn_cxx_try_compile "$LINENO"
19231: then :
1.128 moko 19232: shlibpath_var=LD_LIBRARY_PATH
1.237 moko 19233: else case e in #(
19234: e) shlibpath_var=LD_32_LIBRARY_PATH ;;
19235: esac
19236: fi
19237: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19238: ;;
19239: *)
19240: shlibpath_var=LD_LIBRARY_PATH
19241: ;;
19242: esac
1.128 moko 19243: case $host_os in
19244: freebsd2.*)
19245: shlibpath_overrides_runpath=yes
19246: ;;
19247: freebsd3.[01]* | freebsdelf3.[01]*)
19248: shlibpath_overrides_runpath=yes
19249: hardcode_into_libs=yes
19250: ;;
19251: freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
19252: freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
19253: shlibpath_overrides_runpath=no
19254: hardcode_into_libs=yes
19255: ;;
19256: *) # from 4.6 on, and DragonFly
19257: shlibpath_overrides_runpath=yes
19258: hardcode_into_libs=yes
19259: ;;
19260: esac
19261: ;;
19262:
19263: haiku*)
19264: version_type=linux # correct to gnu/linux during the next big refactor
19265: need_lib_prefix=no
19266: need_version=no
19267: dynamic_linker="$host_os runtime_loader"
1.237 moko 19268: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19269: soname_spec='$libname$release$shared_ext$major'
1.128 moko 19270: shlibpath_var=LIBRARY_PATH
1.237 moko 19271: shlibpath_overrides_runpath=no
19272: sys_lib_search_path_spec='/boot/system/non-packaged/develop/lib /boot/system/develop/lib'
19273: sys_lib_dlsearch_path_spec='/boot/home/config/non-packaged/lib /boot/home/config/lib /boot/system/non-packaged/lib /boot/system/lib'
19274: hardcode_into_libs=no
1.128 moko 19275: ;;
19276:
19277: hpux9* | hpux10* | hpux11*)
19278: # Give a soname corresponding to the major version so that dld.sl refuses to
19279: # link against other versions.
19280: version_type=sunos
19281: need_lib_prefix=no
19282: need_version=no
19283: case $host_cpu in
19284: ia64*)
19285: shrext_cmds='.so'
19286: hardcode_into_libs=yes
19287: dynamic_linker="$host_os dld.so"
19288: shlibpath_var=LD_LIBRARY_PATH
19289: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
1.237 moko 19290: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19291: soname_spec='$libname$release$shared_ext$major'
19292: if test 32 = "$HPUX_IA64_MODE"; then
1.128 moko 19293: sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
1.237 moko 19294: sys_lib_dlsearch_path_spec=/usr/lib/hpux32
1.128 moko 19295: else
19296: sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
1.237 moko 19297: sys_lib_dlsearch_path_spec=/usr/lib/hpux64
1.128 moko 19298: fi
19299: ;;
19300: hppa*64*)
19301: shrext_cmds='.sl'
19302: hardcode_into_libs=yes
19303: dynamic_linker="$host_os dld.sl"
19304: shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19305: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
1.237 moko 19306: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19307: soname_spec='$libname$release$shared_ext$major'
1.128 moko 19308: sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19309: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19310: ;;
19311: *)
19312: shrext_cmds='.sl'
19313: dynamic_linker="$host_os dld.sl"
19314: shlibpath_var=SHLIB_PATH
19315: shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
1.237 moko 19316: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19317: soname_spec='$libname$release$shared_ext$major'
1.128 moko 19318: ;;
19319: esac
19320: # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
19321: postinstall_cmds='chmod 555 $lib'
19322: # or fails outright, so override atomically:
19323: install_override_mode=555
19324: ;;
19325:
19326: interix[3-9]*)
19327: version_type=linux # correct to gnu/linux during the next big refactor
19328: need_lib_prefix=no
19329: need_version=no
1.237 moko 19330: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19331: soname_spec='$libname$release$shared_ext$major'
1.128 moko 19332: dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
19333: shlibpath_var=LD_LIBRARY_PATH
19334: shlibpath_overrides_runpath=no
19335: hardcode_into_libs=yes
19336: ;;
19337:
19338: irix5* | irix6* | nonstopux*)
19339: case $host_os in
19340: nonstopux*) version_type=nonstopux ;;
19341: *)
1.237 moko 19342: if test yes = "$lt_cv_prog_gnu_ld"; then
1.128 moko 19343: version_type=linux # correct to gnu/linux during the next big refactor
19344: else
19345: version_type=irix
19346: fi ;;
19347: esac
19348: need_lib_prefix=no
19349: need_version=no
1.237 moko 19350: soname_spec='$libname$release$shared_ext$major'
19351: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
1.128 moko 19352: case $host_os in
19353: irix5* | nonstopux*)
19354: libsuff= shlibsuff=
19355: ;;
19356: *)
19357: case $LD in # libtool.m4 will add one of these switches to LD
19358: *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19359: libsuff= shlibsuff= libmagic=32-bit;;
19360: *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19361: libsuff=32 shlibsuff=N32 libmagic=N32;;
19362: *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19363: libsuff=64 shlibsuff=64 libmagic=64-bit;;
19364: *) libsuff= shlibsuff= libmagic=never-match;;
19365: esac
19366: ;;
19367: esac
19368: shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19369: shlibpath_overrides_runpath=no
1.237 moko 19370: sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
19371: sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
1.128 moko 19372: hardcode_into_libs=yes
19373: ;;
19374:
19375: # No shared lib support for Linux oldld, aout, or coff.
19376: linux*oldld* | linux*aout* | linux*coff*)
19377: dynamic_linker=no
19378: ;;
19379:
1.237 moko 19380: linux*android*)
19381: version_type=none # Android doesn't support versioned libraries.
19382: need_lib_prefix=no
19383: need_version=no
19384: library_names_spec='$libname$release$shared_ext $libname$shared_ext'
19385: soname_spec='$libname$release$shared_ext'
19386: finish_cmds=
19387: shlibpath_var=LD_LIBRARY_PATH
19388: shlibpath_overrides_runpath=yes
19389:
19390: # This implies no fast_install, which is unacceptable.
19391: # Some rework will be needed to allow for fast_install
19392: # before this can be enabled.
19393: hardcode_into_libs=yes
19394:
19395: dynamic_linker='Android linker'
19396: # -rpath works at least for libraries that are not overridden by
19397: # libraries installed in system locations.
19398: hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
19399: ;;
19400:
1.128 moko 19401: # This must be glibc/ELF.
1.237 moko 19402: linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
1.128 moko 19403: version_type=linux # correct to gnu/linux during the next big refactor
19404: need_lib_prefix=no
19405: need_version=no
1.237 moko 19406: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19407: soname_spec='$libname$release$shared_ext$major'
1.128 moko 19408: finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19409: shlibpath_var=LD_LIBRARY_PATH
19410: shlibpath_overrides_runpath=no
19411:
19412: # Some binutils ld are patched to set DT_RUNPATH
1.237 moko 19413: if test ${lt_cv_shlibpath_overrides_runpath+y}
19414: then :
19415: printf %s "(cached) " >&6
19416: else case e in #(
19417: e) lt_cv_shlibpath_overrides_runpath=no
1.128 moko 19418: save_LDFLAGS=$LDFLAGS
19419: save_libdir=$libdir
19420: eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
19421: LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
1.150 moko 19422: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 19423: /* end confdefs.h. */
19424:
19425: int
1.237 moko 19426: main (void)
1.128 moko 19427: {
19428:
19429: ;
19430: return 0;
19431: }
19432: _ACEOF
1.237 moko 19433: if ac_fn_cxx_try_link "$LINENO"
19434: then :
19435: if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
19436: then :
1.128 moko 19437: lt_cv_shlibpath_overrides_runpath=yes
19438: fi
19439: fi
1.237 moko 19440: rm -f core conftest.err conftest.$ac_objext conftest.beam \
1.150 moko 19441: conftest$ac_exeext conftest.$ac_ext
1.128 moko 19442: LDFLAGS=$save_LDFLAGS
19443: libdir=$save_libdir
1.237 moko 19444: ;;
19445: esac
1.128 moko 19446: fi
19447:
19448: shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
19449:
19450: # This implies no fast_install, which is unacceptable.
19451: # Some rework will be needed to allow for fast_install
19452: # before this can be enabled.
19453: hardcode_into_libs=yes
19454:
1.237 moko 19455: # Ideally, we could use ldconfig to report *all* directories which are
19456: # searched for libraries, however this is still not possible. Aside from not
19457: # being certain /sbin/ldconfig is available, command
19458: # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
19459: # even though it is searched at run-time. Try to do the best guess by
19460: # appending ld.so.conf contents (and includes) to the search path.
1.128 moko 19461: if test -f /etc/ld.so.conf; then
19462: 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' ' '`
19463: sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
19464: fi
19465:
19466: # We used to test for /lib/ld.so.1 and disable shared libraries on
19467: # powerpc, because MkLinux only supported shared libraries with the
19468: # GNU dynamic linker. Since this was broken with cross compilers,
19469: # most powerpc-linux boxes support dynamic linking these days and
19470: # people can always --disable-shared, the test was removed, and we
19471: # assume the GNU/Linux dynamic linker is in use.
19472: dynamic_linker='GNU/Linux ld.so'
19473: ;;
19474:
1.237 moko 19475: netbsdelf*-gnu)
19476: version_type=linux
19477: need_lib_prefix=no
19478: need_version=no
19479: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19480: soname_spec='$libname$release$shared_ext$major'
19481: shlibpath_var=LD_LIBRARY_PATH
19482: shlibpath_overrides_runpath=no
19483: hardcode_into_libs=yes
19484: dynamic_linker='NetBSD ld.elf_so'
19485: ;;
19486:
19487: netbsdelf*-gnu)
19488: version_type=linux
19489: need_lib_prefix=no
19490: need_version=no
19491: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19492: soname_spec='${libname}${release}${shared_ext}$major'
19493: shlibpath_var=LD_LIBRARY_PATH
19494: shlibpath_overrides_runpath=no
19495: hardcode_into_libs=yes
19496: dynamic_linker='NetBSD ld.elf_so'
19497: ;;
19498:
1.128 moko 19499: netbsd*)
19500: version_type=sunos
19501: need_lib_prefix=no
19502: need_version=no
19503: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
1.237 moko 19504: library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
1.128 moko 19505: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19506: dynamic_linker='NetBSD (a.out) ld.so'
19507: else
1.237 moko 19508: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19509: soname_spec='$libname$release$shared_ext$major'
1.128 moko 19510: dynamic_linker='NetBSD ld.elf_so'
19511: fi
19512: shlibpath_var=LD_LIBRARY_PATH
19513: shlibpath_overrides_runpath=yes
19514: hardcode_into_libs=yes
19515: ;;
19516:
1.237 moko 19517: *-mlibc)
19518: version_type=linux # correct to gnu/linux during the next big refactor
19519: need_lib_prefix=no
19520: need_version=no
19521: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19522: soname_spec='$libname$release$shared_ext$major'
19523: dynamic_linker='mlibc ld.so'
19524: shlibpath_var=LD_LIBRARY_PATH
19525: shlibpath_overrides_runpath=no
19526: hardcode_into_libs=yes
19527: ;;
19528:
1.128 moko 19529: newsos6)
19530: version_type=linux # correct to gnu/linux during the next big refactor
1.237 moko 19531: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
1.128 moko 19532: shlibpath_var=LD_LIBRARY_PATH
19533: shlibpath_overrides_runpath=yes
19534: ;;
19535:
19536: *nto* | *qnx*)
19537: version_type=qnx
19538: need_lib_prefix=no
19539: need_version=no
1.237 moko 19540: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19541: soname_spec='$libname$release$shared_ext$major'
1.128 moko 19542: shlibpath_var=LD_LIBRARY_PATH
19543: shlibpath_overrides_runpath=no
19544: hardcode_into_libs=yes
19545: dynamic_linker='ldqnx.so'
19546: ;;
19547:
19548: openbsd*)
19549: version_type=sunos
1.237 moko 19550: sys_lib_dlsearch_path_spec=/usr/lib
1.128 moko 19551: need_lib_prefix=no
1.237 moko 19552: if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
19553: need_version=no
19554: else
19555: need_version=yes
19556: fi
19557: library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
1.128 moko 19558: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19559: shlibpath_var=LD_LIBRARY_PATH
1.237 moko 19560: shlibpath_overrides_runpath=yes
1.128 moko 19561: ;;
19562:
19563: os2*)
19564: libname_spec='$name'
1.237 moko 19565: version_type=windows
19566: shrext_cmds=.dll
19567: need_version=no
1.128 moko 19568: need_lib_prefix=no
1.237 moko 19569: # OS/2 can only load a DLL with a base name of 8 characters or less.
19570: soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
19571: v=$($ECHO $release$versuffix | tr -d .-);
19572: n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
19573: $ECHO $n$v`$shared_ext'
19574: library_names_spec='${libname}_dll.$libext'
1.128 moko 19575: dynamic_linker='OS/2 ld.exe'
1.237 moko 19576: shlibpath_var=BEGINLIBPATH
19577: sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
19578: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19579: postinstall_cmds='base_file=`basename \$file`~
19580: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
19581: dldir=$destdir/`dirname \$dlpath`~
19582: test -d \$dldir || mkdir -p \$dldir~
19583: $install_prog $dir/$dlname \$dldir/$dlname~
19584: chmod a+x \$dldir/$dlname~
19585: if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
19586: eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
19587: fi'
19588: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
19589: dlpath=$dir/\$dldll~
19590: $RM \$dlpath'
1.128 moko 19591: ;;
19592:
19593: osf3* | osf4* | osf5*)
19594: version_type=osf
19595: need_lib_prefix=no
19596: need_version=no
1.237 moko 19597: soname_spec='$libname$release$shared_ext$major'
19598: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
1.128 moko 19599: shlibpath_var=LD_LIBRARY_PATH
19600: sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
1.237 moko 19601: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
1.128 moko 19602: ;;
19603:
19604: rdos*)
19605: dynamic_linker=no
19606: ;;
19607:
1.237 moko 19608: serenity*)
19609: version_type=linux # correct to gnu/linux during the next big refactor
19610: need_lib_prefix=no
19611: need_version=no
19612: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19613: soname_spec='$libname$release$shared_ext$major'
19614: shlibpath_var=LD_LIBRARY_PATH
19615: shlibpath_overrides_runpath=no
19616: dynamic_linker='SerenityOS LibELF'
19617: ;;
19618:
1.128 moko 19619: solaris*)
19620: version_type=linux # correct to gnu/linux during the next big refactor
19621: need_lib_prefix=no
19622: need_version=no
1.237 moko 19623: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19624: soname_spec='$libname$release$shared_ext$major'
1.128 moko 19625: shlibpath_var=LD_LIBRARY_PATH
19626: shlibpath_overrides_runpath=yes
19627: hardcode_into_libs=yes
19628: # ldd complains unless libraries are executable
19629: postinstall_cmds='chmod +x $lib'
19630: ;;
19631:
19632: sunos4*)
19633: version_type=sunos
1.237 moko 19634: library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
1.128 moko 19635: finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19636: shlibpath_var=LD_LIBRARY_PATH
19637: shlibpath_overrides_runpath=yes
1.237 moko 19638: if test yes = "$with_gnu_ld"; then
1.128 moko 19639: need_lib_prefix=no
19640: fi
19641: need_version=yes
19642: ;;
19643:
19644: sysv4 | sysv4.3*)
19645: version_type=linux # correct to gnu/linux during the next big refactor
1.237 moko 19646: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19647: soname_spec='$libname$release$shared_ext$major'
1.128 moko 19648: shlibpath_var=LD_LIBRARY_PATH
19649: case $host_vendor in
19650: sni)
19651: shlibpath_overrides_runpath=no
19652: need_lib_prefix=no
19653: runpath_var=LD_RUN_PATH
1.237 moko 19654: ;;
19655: siemens)
19656: need_lib_prefix=no
19657: ;;
19658: motorola)
19659: need_lib_prefix=no
19660: need_version=no
19661: shlibpath_overrides_runpath=no
19662: sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19663: ;;
19664: esac
19665: ;;
19666:
19667: sysv4*MP*)
19668: if test -d /usr/nec; then
19669: version_type=linux # correct to gnu/linux during the next big refactor
19670: library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
19671: soname_spec='$libname$shared_ext.$major'
19672: shlibpath_var=LD_LIBRARY_PATH
19673: fi
19674: ;;
19675:
19676: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19677: version_type=sco
19678: need_lib_prefix=no
19679: need_version=no
19680: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
19681: soname_spec='$libname$release$shared_ext$major'
19682: shlibpath_var=LD_LIBRARY_PATH
19683: shlibpath_overrides_runpath=yes
19684: hardcode_into_libs=yes
19685: if test yes = "$with_gnu_ld"; then
19686: sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19687: else
19688: sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19689: case $host_os in
19690: sco3.2v5*)
19691: sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19692: ;;
19693: esac
19694: fi
19695: sys_lib_dlsearch_path_spec='/usr/lib'
19696: ;;
19697:
19698: tpf*)
19699: # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
19700: version_type=linux # correct to gnu/linux during the next big refactor
19701: need_lib_prefix=no
19702: need_version=no
19703: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19704: shlibpath_var=LD_LIBRARY_PATH
19705: shlibpath_overrides_runpath=no
19706: hardcode_into_libs=yes
19707: ;;
19708:
19709: uts4*)
19710: version_type=linux # correct to gnu/linux during the next big refactor
19711: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19712: soname_spec='$libname$release$shared_ext$major'
19713: shlibpath_var=LD_LIBRARY_PATH
19714: ;;
19715:
19716: emscripten*)
19717: version_type=none
19718: need_lib_prefix=no
19719: need_version=no
19720: library_names_spec='$libname$release$shared_ext'
19721: soname_spec='$libname$release$shared_ext'
19722: finish_cmds=
19723: dynamic_linker="Emscripten linker"
19724: lt_prog_compiler_wl_CXX=
19725: lt_prog_compiler_pic_CXX=
19726: lt_prog_compiler_static_CXX=
19727:
19728:
19729: # C++ specific cases for pic, static, wl, etc.
19730: if test yes = "$GXX"; then
19731: lt_prog_compiler_wl_CXX='-Wl,'
19732: lt_prog_compiler_static_CXX='-static'
19733:
19734: case $host_os in
19735: aix*)
19736: # All AIX code is PIC.
19737: if test ia64 = "$host_cpu"; then
19738: # AIX 5 now supports IA64 processor
19739: lt_prog_compiler_static_CXX='-Bstatic'
19740: fi
19741: lt_prog_compiler_pic_CXX='-fPIC'
19742: ;;
19743:
19744: amigaos*)
19745: case $host_cpu in
19746: powerpc)
19747: # see comment about AmigaOS4 .so support
19748: lt_prog_compiler_pic_CXX='-fPIC'
19749: ;;
19750: m68k)
19751: # FIXME: we need at least 68020 code to build shared libraries, but
19752: # adding the '-m68020' flag to GCC prevents building anything better,
19753: # like '-m68040'.
19754: lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19755: ;;
19756: esac
19757: ;;
19758:
19759: beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19760: # PIC is the default for these OSes.
19761: ;;
19762: mingw* | windows* | cygwin* | os2* | pw32* | cegcc*)
19763: # This hack is so that the source file can tell whether it is being
19764: # built for inclusion in a dll (and should export symbols for example).
19765: # Although the cygwin gcc ignores -fPIC, still need this for old-style
19766: # (--disable-auto-import) libraries
19767: lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19768: case $host_os in
19769: os2*)
19770: lt_prog_compiler_static_CXX='$wl-static'
19771: ;;
19772: esac
19773: ;;
19774: darwin* | rhapsody*)
19775: # PIC is the default on this platform
19776: # Common symbols not allowed in MH_DYLIB files
19777: lt_prog_compiler_pic_CXX='-fno-common'
19778: ;;
19779: *djgpp*)
19780: # DJGPP does not support shared libraries at all
19781: lt_prog_compiler_pic_CXX=
19782: ;;
19783: haiku*)
19784: # PIC is the default for Haiku.
19785: # The "-static" flag exists, but is broken.
19786: lt_prog_compiler_static_CXX=
19787: ;;
19788: interix[3-9]*)
19789: # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19790: # Instead, we relocate shared libraries at runtime.
19791: ;;
19792: sysv4*MP*)
19793: if test -d /usr/nec; then
19794: lt_prog_compiler_pic_CXX=-Kconform_pic
19795: fi
19796: ;;
19797: hpux*)
19798: # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
19799: # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
19800: # sets the default TLS model and affects inlining.
19801: case $host_cpu in
19802: hppa*64*)
19803: ;;
19804: *)
19805: lt_prog_compiler_pic_CXX='-fPIC'
19806: ;;
19807: esac
19808: ;;
19809: *qnx* | *nto*)
19810: # QNX uses GNU C++, but need to define -shared option too, otherwise
19811: # it will coredump.
19812: lt_prog_compiler_pic_CXX='-fPIC -shared'
19813: ;;
19814: *)
19815: lt_prog_compiler_pic_CXX='-fPIC'
19816: ;;
19817: esac
19818: else
19819: case $host_os in
19820: aix[4-9]*)
19821: # All AIX code is PIC.
19822: if test ia64 = "$host_cpu"; then
19823: # AIX 5 now supports IA64 processor
19824: lt_prog_compiler_static_CXX='-Bstatic'
19825: else
19826: lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19827: fi
19828: ;;
19829: chorus*)
19830: case $cc_basename in
19831: cxch68*)
19832: # Green Hills C++ Compiler
19833: # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
19834: ;;
19835: esac
19836: ;;
19837: mingw* | windows* | cygwin* | os2* | pw32* | cegcc*)
19838: # This hack is so that the source file can tell whether it is being
19839: # built for inclusion in a dll (and should export symbols for example).
19840: lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19841: ;;
19842: dgux*)
19843: case $cc_basename in
19844: ec++*)
19845: lt_prog_compiler_pic_CXX='-KPIC'
19846: ;;
19847: ghcx*)
19848: # Green Hills C++ Compiler
19849: lt_prog_compiler_pic_CXX='-pic'
19850: ;;
19851: *)
19852: ;;
19853: esac
19854: ;;
19855: freebsd* | dragonfly* | midnightbsd*)
19856: # FreeBSD uses GNU C++
19857: ;;
19858: hpux9* | hpux10* | hpux11*)
19859: case $cc_basename in
19860: CC*)
19861: lt_prog_compiler_wl_CXX='-Wl,'
19862: lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
19863: if test ia64 != "$host_cpu"; then
19864: lt_prog_compiler_pic_CXX='+Z'
19865: fi
19866: ;;
19867: aCC*)
19868: lt_prog_compiler_wl_CXX='-Wl,'
19869: lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
19870: case $host_cpu in
19871: hppa*64*|ia64*)
19872: # +Z the default
19873: ;;
19874: *)
19875: lt_prog_compiler_pic_CXX='+Z'
19876: ;;
19877: esac
19878: ;;
19879: *)
19880: ;;
19881: esac
19882: ;;
19883: interix*)
19884: # This is c89, which is MS Visual C++ (no shared libs)
19885: # Anyone wants to do a port?
19886: ;;
19887: irix5* | irix6* | nonstopux*)
19888: case $cc_basename in
19889: CC*)
19890: lt_prog_compiler_wl_CXX='-Wl,'
19891: lt_prog_compiler_static_CXX='-non_shared'
19892: # CC pic flag -KPIC is the default.
19893: ;;
19894: *)
19895: ;;
19896: esac
19897: ;;
19898: linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
19899: case $cc_basename in
19900: KCC*)
19901: # KAI C++ Compiler
19902: lt_prog_compiler_wl_CXX='--backend -Wl,'
19903: lt_prog_compiler_pic_CXX='-fPIC'
19904: ;;
19905: ecpc* )
19906: # old Intel C++ for x86_64, which still supported -KPIC.
19907: lt_prog_compiler_wl_CXX='-Wl,'
19908: lt_prog_compiler_pic_CXX='-KPIC'
19909: lt_prog_compiler_static_CXX='-static'
19910: ;;
19911: icpc* )
19912: # Intel C++, used to be incompatible with GCC.
19913: # ICC 10 doesn't accept -KPIC any more.
19914: lt_prog_compiler_wl_CXX='-Wl,'
19915: lt_prog_compiler_pic_CXX='-fPIC'
19916: lt_prog_compiler_static_CXX='-static'
19917: ;;
19918: pgCC* | pgcpp*)
19919: # Portland Group C++ compiler
19920: lt_prog_compiler_wl_CXX='-Wl,'
19921: lt_prog_compiler_pic_CXX='-fpic'
19922: lt_prog_compiler_static_CXX='-Bstatic'
19923: ;;
19924: cxx*)
19925: # Compaq C++
19926: # Make sure the PIC flag is empty. It appears that all Alpha
19927: # Linux and Compaq Tru64 Unix objects are PIC.
19928: lt_prog_compiler_pic_CXX=
19929: lt_prog_compiler_static_CXX='-non_shared'
19930: ;;
19931: xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
19932: # IBM XL 8.0, 9.0 on PPC and BlueGene
19933: lt_prog_compiler_wl_CXX='-Wl,'
19934: lt_prog_compiler_pic_CXX='-qpic'
19935: lt_prog_compiler_static_CXX='-qstaticlink'
19936: ;;
19937: *)
19938: case `$CC -V 2>&1 | $SED 5q` in
19939: *Sun\ C*)
19940: # Sun C++ 5.9
19941: lt_prog_compiler_pic_CXX='-KPIC'
19942: lt_prog_compiler_static_CXX='-Bstatic'
19943: lt_prog_compiler_wl_CXX='-Qoption ld '
19944: ;;
19945: esac
19946: ;;
19947: esac
19948: ;;
19949: lynxos*)
19950: ;;
19951: m88k*)
19952: ;;
19953: mvs*)
19954: case $cc_basename in
19955: cxx*)
19956: lt_prog_compiler_pic_CXX='-W c,exportall'
19957: ;;
19958: *)
19959: ;;
19960: esac
19961: ;;
19962: netbsd* | netbsdelf*-gnu)
19963: ;;
19964: *-mlibc)
19965: ;;
19966: *qnx* | *nto*)
19967: # QNX uses GNU C++, but need to define -shared option too, otherwise
19968: # it will coredump.
19969: lt_prog_compiler_pic_CXX='-fPIC -shared'
19970: ;;
19971: osf3* | osf4* | osf5*)
19972: case $cc_basename in
19973: KCC*)
19974: lt_prog_compiler_wl_CXX='--backend -Wl,'
19975: ;;
19976: RCC*)
19977: # Rational C++ 2.4.1
19978: lt_prog_compiler_pic_CXX='-pic'
19979: ;;
19980: cxx*)
19981: # Digital/Compaq C++
19982: lt_prog_compiler_wl_CXX='-Wl,'
19983: # Make sure the PIC flag is empty. It appears that all Alpha
19984: # Linux and Compaq Tru64 Unix objects are PIC.
19985: lt_prog_compiler_pic_CXX=
19986: lt_prog_compiler_static_CXX='-non_shared'
19987: ;;
19988: *)
19989: ;;
19990: esac
19991: ;;
19992: psos*)
19993: ;;
19994: serenity*)
19995: ;;
19996: solaris*)
19997: case $cc_basename in
19998: CC* | sunCC*)
19999: # Sun C++ 4.2, 5.x and Centerline C++
20000: lt_prog_compiler_pic_CXX='-KPIC'
20001: lt_prog_compiler_static_CXX='-Bstatic'
20002: lt_prog_compiler_wl_CXX='-Qoption ld '
20003: ;;
20004: gcx*)
20005: # Green Hills C++ Compiler
20006: lt_prog_compiler_pic_CXX='-PIC'
20007: ;;
20008: *)
20009: ;;
20010: esac
20011: ;;
20012: sunos4*)
20013: case $cc_basename in
20014: CC*)
20015: # Sun C++ 4.x
20016: lt_prog_compiler_pic_CXX='-pic'
20017: lt_prog_compiler_static_CXX='-Bstatic'
20018: ;;
20019: lcc*)
20020: # Lucid
20021: lt_prog_compiler_pic_CXX='-pic'
20022: ;;
20023: *)
20024: ;;
20025: esac
20026: ;;
20027: sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
20028: case $cc_basename in
20029: CC*)
20030: lt_prog_compiler_wl_CXX='-Wl,'
20031: lt_prog_compiler_pic_CXX='-KPIC'
20032: lt_prog_compiler_static_CXX='-Bstatic'
20033: ;;
20034: esac
20035: ;;
20036: tandem*)
20037: case $cc_basename in
20038: NCC*)
20039: # NonStop-UX NCC 3.20
20040: lt_prog_compiler_pic_CXX='-KPIC'
20041: ;;
20042: *)
20043: ;;
20044: esac
20045: ;;
20046: vxworks*)
20047: ;;
20048: *)
20049: lt_prog_compiler_can_build_shared_CXX=no
20050: ;;
20051: esac
20052: fi
20053:
20054: case $host_os in
20055: # For platforms that do not support PIC, -DPIC is meaningless:
20056: *djgpp*)
20057: lt_prog_compiler_pic_CXX=
20058: ;;
20059: *)
20060: lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
20061: ;;
20062: esac
20063:
20064: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
20065: printf %s "checking for $compiler option to produce PIC... " >&6; }
20066: if test ${lt_cv_prog_compiler_pic_CXX+y}
20067: then :
20068: printf %s "(cached) " >&6
20069: else case e in #(
20070: e) lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX ;;
20071: esac
20072: fi
20073: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
20074: printf "%s\n" "$lt_cv_prog_compiler_pic_CXX" >&6; }
20075: lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
20076:
20077: #
20078: # Check to make sure the PIC flag actually works.
20079: #
20080: if test -n "$lt_prog_compiler_pic_CXX"; then
20081: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20082: printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
20083: if test ${lt_cv_prog_compiler_pic_works_CXX+y}
20084: then :
20085: printf %s "(cached) " >&6
20086: else case e in #(
20087: e) lt_cv_prog_compiler_pic_works_CXX=no
20088: ac_outfile=conftest.$ac_objext
20089: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20090: lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment
20091: # Insert the option either (1) after the last *FLAGS variable, or
20092: # (2) before a word containing "conftest.", or (3) at the end.
20093: # Note that $ac_compile itself does not contain backslashes and begins
20094: # with a dollar sign (not a hyphen), so the echo should work correctly.
20095: # The option is referenced via a variable to avoid confusing sed.
20096: lt_compile=`echo "$ac_compile" | $SED \
20097: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20098: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20099: -e 's:$: $lt_compiler_flag:'`
20100: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20101: (eval "$lt_compile" 2>conftest.err)
20102: ac_status=$?
20103: cat conftest.err >&5
20104: echo "$as_me:$LINENO: \$? = $ac_status" >&5
20105: if (exit $ac_status) && test -s "$ac_outfile"; then
20106: # The compiler can only warn and ignore the option if not recognized
20107: # So say no if there are warnings other than the usual output.
20108: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
20109: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20110: if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
20111: lt_cv_prog_compiler_pic_works_CXX=yes
20112: fi
20113: fi
20114: $RM conftest*
20115: ;;
20116: esac
20117: fi
20118: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
20119: printf "%s\n" "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
20120:
20121: if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
20122: case $lt_prog_compiler_pic_CXX in
20123: "" | " "*) ;;
20124: *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
20125: esac
20126: else
20127: lt_prog_compiler_pic_CXX=
20128: lt_prog_compiler_can_build_shared_CXX=no
20129: fi
20130:
20131: fi
20132:
20133:
20134:
20135:
20136:
20137: #
20138: # Check to make sure the static flag actually works.
20139: #
20140: wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
20141: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20142: printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
20143: if test ${lt_cv_prog_compiler_static_works_CXX+y}
20144: then :
20145: printf %s "(cached) " >&6
20146: else case e in #(
20147: e) lt_cv_prog_compiler_static_works_CXX=no
20148: save_LDFLAGS=$LDFLAGS
20149: LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
20150: echo "$lt_simple_link_test_code" > conftest.$ac_ext
20151: if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20152: # The linker can only warn and ignore the option if not recognized
20153: # So say no if there are warnings
20154: if test -s conftest.err; then
20155: # Append any errors to the config.log.
20156: cat conftest.err 1>&5
20157: $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
20158: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20159: if diff conftest.exp conftest.er2 >/dev/null; then
20160: lt_cv_prog_compiler_static_works_CXX=yes
20161: fi
20162: else
20163: lt_cv_prog_compiler_static_works_CXX=yes
20164: fi
20165: fi
20166: $RM -r conftest*
20167: LDFLAGS=$save_LDFLAGS
20168: ;;
20169: esac
20170: fi
20171: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
20172: printf "%s\n" "$lt_cv_prog_compiler_static_works_CXX" >&6; }
1.128 moko 20173:
1.237 moko 20174: if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
20175: :
20176: else
20177: lt_prog_compiler_static_CXX=
20178: fi
1.128 moko 20179:
20180:
20181:
1.237 moko 20182: ='-fPIC'
20183: archive_cmds_CXX='$CC -sSIDE_MODULE=2 -shared $libobjs $deplibs $compiler_flags -o $lib'
20184: archive_expsym_cmds_CXX='$SED "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -sSIDE_MODULE=2 -shared $libobjs $deplibs $compiler_flags -o $lib -s EXPORTED_FUNCTIONS=@$output_objdir/$soname.expsym'
20185: archive_cmds_need_lc_CXX=no
20186: no_undefined_flag_CXX=
1.128 moko 20187: ;;
20188:
20189: *)
20190: dynamic_linker=no
20191: ;;
20192: esac
1.237 moko 20193: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
20194: printf "%s\n" "$dynamic_linker" >&6; }
20195: test no = "$dynamic_linker" && can_build_shared=no
1.128 moko 20196:
20197: variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
1.237 moko 20198: if test yes = "$GCC"; then
1.128 moko 20199: variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20200: fi
20201:
1.237 moko 20202: if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
20203: sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
1.128 moko 20204: fi
1.237 moko 20205:
20206: if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
20207: sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
1.128 moko 20208: fi
20209:
1.237 moko 20210: # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
20211: configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
20212:
20213: # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
20214: func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
20215:
20216: # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
20217: configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
1.128 moko 20218:
20219:
20220:
20221:
20222:
20223:
20224:
20225:
20226:
20227:
20228:
20229:
20230:
20231:
20232:
20233:
20234:
20235:
20236:
20237:
20238:
20239:
20240:
20241:
20242:
20243:
20244:
20245:
20246:
20247:
20248:
20249:
20250:
20251:
20252:
20253:
20254:
1.237 moko 20255:
20256:
20257:
20258: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
20259: printf %s "checking how to hardcode library paths into programs... " >&6; }
1.128 moko 20260: hardcode_action_CXX=
20261: if test -n "$hardcode_libdir_flag_spec_CXX" ||
20262: test -n "$runpath_var_CXX" ||
1.237 moko 20263: test yes = "$hardcode_automatic_CXX"; then
1.128 moko 20264:
20265: # We can hardcode non-existent directories.
1.237 moko 20266: if test no != "$hardcode_direct_CXX" &&
1.128 moko 20267: # If the only mechanism to avoid hardcoding is shlibpath_var, we
20268: # have to relink, otherwise we might link with an installed library
20269: # when we should be linking with a yet-to-be-installed one
1.237 moko 20270: ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
20271: test no != "$hardcode_minus_L_CXX"; then
1.128 moko 20272: # Linking always hardcodes the temporary library directory.
20273: hardcode_action_CXX=relink
20274: else
20275: # We can link without hardcoding, and we can hardcode nonexisting dirs.
20276: hardcode_action_CXX=immediate
20277: fi
20278: else
20279: # We cannot hardcode anything, or else we can only hardcode existing
20280: # directories.
20281: hardcode_action_CXX=unsupported
20282: fi
1.237 moko 20283: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
20284: printf "%s\n" "$hardcode_action_CXX" >&6; }
1.128 moko 20285:
1.237 moko 20286: if test relink = "$hardcode_action_CXX" ||
20287: test yes = "$inherit_rpath_CXX"; then
1.128 moko 20288: # Fast installation is not supported
20289: enable_fast_install=no
1.237 moko 20290: elif test yes = "$shlibpath_overrides_runpath" ||
20291: test no = "$enable_shared"; then
1.128 moko 20292: # Fast installation is not necessary
20293: enable_fast_install=needless
20294: fi
20295:
20296:
20297:
20298:
20299:
20300:
20301:
20302: fi # test -n "$compiler"
20303:
20304: CC=$lt_save_CC
20305: CFLAGS=$lt_save_CFLAGS
20306: LDCXX=$LD
20307: LD=$lt_save_LD
20308: GCC=$lt_save_GCC
20309: with_gnu_ld=$lt_save_with_gnu_ld
20310: lt_cv_path_LDCXX=$lt_cv_path_LD
20311: lt_cv_path_LD=$lt_save_path_LD
20312: lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
20313: lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
1.237 moko 20314: fi # test yes != "$_lt_caught_CXX_error"
1.128 moko 20315:
20316: ac_ext=c
20317: ac_cpp='$CPP $CPPFLAGS'
20318: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20319: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20320: ac_compiler_gnu=$ac_cv_c_compiler_gnu
20321:
20322:
20323:
20324:
20325:
20326:
20327:
20328:
20329:
20330:
20331:
20332:
20333:
20334:
20335:
1.150 moko 20336: ac_config_commands="$ac_config_commands libtool"
1.128 moko 20337:
20338:
20339:
20340:
20341: # Only expand once:
20342:
20343:
1.237 moko 20344: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
20345: printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
20346: if test ${ac_cv_c_undeclared_builtin_options+y}
20347: then :
20348: printf %s "(cached) " >&6
20349: else case e in #(
20350: e) ac_save_CFLAGS=$CFLAGS
20351: ac_cv_c_undeclared_builtin_options='cannot detect'
20352: for ac_arg in '' -fno-builtin; do
20353: CFLAGS="$ac_save_CFLAGS $ac_arg"
20354: # This test program should *not* compile successfully.
20355: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20356: /* end confdefs.h. */
20357:
20358: int
20359: main (void)
20360: {
20361: (void) strchr;
20362: ;
20363: return 0;
20364: }
20365: _ACEOF
20366: if ac_fn_c_try_compile "$LINENO"
20367: then :
20368:
20369: else case e in #(
20370: e) # This test program should compile successfully.
20371: # No library function is consistently available on
20372: # freestanding implementations, so test against a dummy
20373: # declaration. Include always-available headers on the
20374: # off chance that they somehow elicit warnings.
20375: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20376: /* end confdefs.h. */
20377: #include <float.h>
20378: #include <limits.h>
20379: #include <stdarg.h>
20380: #include <stddef.h>
20381: extern void ac_decl (int, char *);
20382:
20383: int
20384: main (void)
20385: {
20386: (void) ac_decl (0, (char *) 0);
20387: (void) ac_decl;
20388:
20389: ;
20390: return 0;
20391: }
20392: _ACEOF
20393: if ac_fn_c_try_compile "$LINENO"
20394: then :
20395: if test x"$ac_arg" = x
20396: then :
20397: ac_cv_c_undeclared_builtin_options='none needed'
20398: else case e in #(
20399: e) ac_cv_c_undeclared_builtin_options=$ac_arg ;;
20400: esac
20401: fi
20402: break
20403: fi
20404: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
20405: esac
20406: fi
20407: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20408: done
20409: CFLAGS=$ac_save_CFLAGS
20410: ;;
20411: esac
20412: fi
20413: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
20414: printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
20415: case $ac_cv_c_undeclared_builtin_options in #(
20416: 'cannot detect') :
20417: { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
20418: printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
20419: as_fn_error $? "cannot make $CC report undeclared builtins
20420: See 'config.log' for more details" "$LINENO" 5; } ;; #(
20421: 'none needed') :
20422: ac_c_undeclared_builtin_options='' ;; #(
20423: *) :
20424: ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
20425: esac
1.128 moko 20426:
1.237 moko 20427: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking what extension is used for runtime loadable modules" >&5
20428: printf %s "checking what extension is used for runtime loadable modules... " >&6; }
20429: if test ${libltdl_cv_shlibext+y}
20430: then :
20431: printf %s "(cached) " >&6
20432: else case e in #(
20433: e)
1.128 moko 20434: module=yes
20435: eval libltdl_cv_shlibext=$shrext_cmds
20436: module=no
20437: eval libltdl_cv_shrext=$shrext_cmds
1.237 moko 20438: ;;
20439: esac
1.128 moko 20440: fi
1.237 moko 20441: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibext" >&5
20442: printf "%s\n" "$libltdl_cv_shlibext" >&6; }
1.128 moko 20443: if test -n "$libltdl_cv_shlibext"; then
20444:
1.237 moko 20445: printf "%s\n" "#define LT_MODULE_EXT \"$libltdl_cv_shlibext\"" >>confdefs.h
1.128 moko 20446:
20447: fi
20448: if test "$libltdl_cv_shrext" != "$libltdl_cv_shlibext"; then
20449:
1.237 moko 20450: printf "%s\n" "#define LT_SHARED_EXT \"$libltdl_cv_shrext\"" >>confdefs.h
20451:
20452: fi
20453: if test -n "$shared_archive_member_spec"; then
20454:
20455: printf "%s\n" "#define LT_SHARED_LIB_MEMBER \"($shared_archive_member_spec.o)\"" >>confdefs.h
1.128 moko 20456:
20457: fi
20458:
1.237 moko 20459: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking what variable specifies run-time module search path" >&5
20460: printf %s "checking what variable specifies run-time module search path... " >&6; }
20461: if test ${lt_cv_module_path_var+y}
20462: then :
20463: printf %s "(cached) " >&6
20464: else case e in #(
20465: e) lt_cv_module_path_var=$shlibpath_var ;;
20466: esac
1.128 moko 20467: fi
1.237 moko 20468: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_module_path_var" >&5
20469: printf "%s\n" "$lt_cv_module_path_var" >&6; }
1.128 moko 20470: if test -n "$lt_cv_module_path_var"; then
20471:
1.237 moko 20472: printf "%s\n" "#define LT_MODULE_PATH_VAR \"$lt_cv_module_path_var\"" >>confdefs.h
1.128 moko 20473:
20474: fi
20475:
1.237 moko 20476: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the default library search path" >&5
20477: printf %s "checking for the default library search path... " >&6; }
20478: if test ${lt_cv_sys_dlsearch_path+y}
20479: then :
20480: printf %s "(cached) " >&6
20481: else case e in #(
20482: e) lt_cv_sys_dlsearch_path=$sys_lib_dlsearch_path_spec ;;
20483: esac
1.128 moko 20484: fi
1.237 moko 20485: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlsearch_path" >&5
20486: printf "%s\n" "$lt_cv_sys_dlsearch_path" >&6; }
1.128 moko 20487: if test -n "$lt_cv_sys_dlsearch_path"; then
20488: sys_dlsearch_path=
20489: for dir in $lt_cv_sys_dlsearch_path; do
20490: if test -z "$sys_dlsearch_path"; then
1.237 moko 20491: sys_dlsearch_path=$dir
1.128 moko 20492: else
1.237 moko 20493: sys_dlsearch_path=$sys_dlsearch_path$PATH_SEPARATOR$dir
1.128 moko 20494: fi
20495: done
20496:
1.237 moko 20497: printf "%s\n" "#define LT_DLSEARCH_PATH \"$sys_dlsearch_path\"" >>confdefs.h
1.128 moko 20498:
20499: fi
20500:
20501:
20502: LT_DLLOADERS=
20503:
20504:
20505: ac_ext=c
20506: ac_cpp='$CPP $CPPFLAGS'
20507: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20508: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20509: ac_compiler_gnu=$ac_cv_c_compiler_gnu
20510:
1.237 moko 20511: lt_dlload_save_LIBS=$LIBS
1.128 moko 20512:
20513: LIBADD_DLOPEN=
1.237 moko 20514: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
20515: printf %s "checking for library containing dlopen... " >&6; }
20516: if test ${ac_cv_search_dlopen+y}
20517: then :
20518: printf %s "(cached) " >&6
20519: else case e in #(
20520: e) ac_func_search_save_LIBS=$LIBS
1.150 moko 20521: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 20522: /* end confdefs.h. */
20523:
1.150 moko 20524: /* Override any GCC internal prototype to avoid an error.
20525: Use char because int might match the return type of a GCC
1.237 moko 20526: builtin and then its argument prototype would still apply.
20527: The 'extern "C"' is for builds by C++ compilers;
20528: although this is not generally supported in C code supporting it here
20529: has little cost and some practical benefit (sr 110532). */
1.128 moko 20530: #ifdef __cplusplus
20531: extern "C"
20532: #endif
1.237 moko 20533: char dlopen (void);
1.128 moko 20534: int
1.237 moko 20535: main (void)
1.128 moko 20536: {
1.150 moko 20537: return dlopen ();
1.128 moko 20538: ;
20539: return 0;
20540: }
20541: _ACEOF
1.237 moko 20542: for ac_lib in '' dl
20543: do
1.150 moko 20544: if test -z "$ac_lib"; then
20545: ac_res="none required"
20546: else
20547: ac_res=-l$ac_lib
20548: LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20549: fi
1.237 moko 20550: if ac_fn_c_try_link "$LINENO"
20551: then :
1.150 moko 20552: ac_cv_search_dlopen=$ac_res
20553: fi
1.237 moko 20554: rm -f core conftest.err conftest.$ac_objext conftest.beam \
1.150 moko 20555: conftest$ac_exeext
1.237 moko 20556: if test ${ac_cv_search_dlopen+y}
20557: then :
1.150 moko 20558: break
1.128 moko 20559: fi
1.150 moko 20560: done
1.237 moko 20561: if test ${ac_cv_search_dlopen+y}
20562: then :
1.128 moko 20563:
1.237 moko 20564: else case e in #(
20565: e) ac_cv_search_dlopen=no ;;
20566: esac
1.128 moko 20567: fi
1.150 moko 20568: rm conftest.$ac_ext
1.237 moko 20569: LIBS=$ac_func_search_save_LIBS ;;
20570: esac
1.128 moko 20571: fi
1.237 moko 20572: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
20573: printf "%s\n" "$ac_cv_search_dlopen" >&6; }
1.150 moko 20574: ac_res=$ac_cv_search_dlopen
1.237 moko 20575: if test "$ac_res" != no
20576: then :
1.150 moko 20577: test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
1.128 moko 20578:
1.237 moko 20579: printf "%s\n" "#define HAVE_LIBDL 1" >>confdefs.h
1.128 moko 20580:
1.237 moko 20581: if test "$ac_cv_search_dlopen" != "none required"; then
20582: LIBADD_DLOPEN=-ldl
1.128 moko 20583: fi
1.237 moko 20584: libltdl_cv_lib_dl_dlopen=yes
1.128 moko 20585: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
1.237 moko 20586: else case e in #(
20587: e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 20588: /* end confdefs.h. */
20589: #if HAVE_DLFCN_H
20590: # include <dlfcn.h>
20591: #endif
20592:
20593: int
1.237 moko 20594: main (void)
1.128 moko 20595: {
20596: dlopen(0, 0);
20597: ;
20598: return 0;
20599: }
20600: _ACEOF
1.237 moko 20601: if ac_fn_c_try_link "$LINENO"
20602: then :
1.128 moko 20603:
1.237 moko 20604: printf "%s\n" "#define HAVE_LIBDL 1" >>confdefs.h
1.128 moko 20605:
1.237 moko 20606: libltdl_cv_func_dlopen=yes
1.128 moko 20607: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
1.237 moko 20608: else case e in #(
20609: e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
20610: printf %s "checking for dlopen in -lsvld... " >&6; }
20611: if test ${ac_cv_lib_svld_dlopen+y}
20612: then :
20613: printf %s "(cached) " >&6
20614: else case e in #(
20615: e) ac_check_lib_save_LIBS=$LIBS
1.128 moko 20616: LIBS="-lsvld $LIBS"
1.150 moko 20617: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 20618: /* end confdefs.h. */
20619:
1.150 moko 20620: /* Override any GCC internal prototype to avoid an error.
20621: Use char because int might match the return type of a GCC
1.237 moko 20622: builtin and then its argument prototype would still apply.
20623: The 'extern "C"' is for builds by C++ compilers;
20624: although this is not generally supported in C code supporting it here
20625: has little cost and some practical benefit (sr 110532). */
1.128 moko 20626: #ifdef __cplusplus
20627: extern "C"
20628: #endif
1.237 moko 20629: char dlopen (void);
1.128 moko 20630: int
1.237 moko 20631: main (void)
1.128 moko 20632: {
1.150 moko 20633: return dlopen ();
1.128 moko 20634: ;
20635: return 0;
20636: }
20637: _ACEOF
1.237 moko 20638: if ac_fn_c_try_link "$LINENO"
20639: then :
1.128 moko 20640: ac_cv_lib_svld_dlopen=yes
1.237 moko 20641: else case e in #(
20642: e) ac_cv_lib_svld_dlopen=no ;;
20643: esac
1.128 moko 20644: fi
1.237 moko 20645: rm -f core conftest.err conftest.$ac_objext conftest.beam \
1.150 moko 20646: conftest$ac_exeext conftest.$ac_ext
1.237 moko 20647: LIBS=$ac_check_lib_save_LIBS ;;
20648: esac
1.128 moko 20649: fi
1.237 moko 20650: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
20651: printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
20652: if test "x$ac_cv_lib_svld_dlopen" = xyes
20653: then :
1.128 moko 20654:
1.237 moko 20655: printf "%s\n" "#define HAVE_LIBDL 1" >>confdefs.h
1.128 moko 20656:
1.237 moko 20657: LIBADD_DLOPEN=-lsvld libltdl_cv_func_dlopen=yes
1.128 moko 20658: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
20659: fi
1.237 moko 20660: ;;
20661: esac
1.128 moko 20662: fi
1.237 moko 20663: rm -f core conftest.err conftest.$ac_objext conftest.beam \
20664: conftest$ac_exeext conftest.$ac_ext ;;
20665: esac
1.128 moko 20666: fi
20667:
1.237 moko 20668: if test yes = "$libltdl_cv_func_dlopen" || test yes = "$libltdl_cv_lib_dl_dlopen"
1.128 moko 20669: then
1.237 moko 20670: lt_save_LIBS=$LIBS
1.128 moko 20671: LIBS="$LIBS $LIBADD_DLOPEN"
1.150 moko 20672: ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror"
1.237 moko 20673: if test "x$ac_cv_func_dlerror" = xyes
20674: then :
20675: printf "%s\n" "#define HAVE_DLERROR 1" >>confdefs.h
1.128 moko 20676:
20677: fi
20678:
1.237 moko 20679: LIBS=$lt_save_LIBS
1.128 moko 20680: fi
20681:
20682:
20683: LIBADD_SHL_LOAD=
1.150 moko 20684: ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
1.237 moko 20685: if test "x$ac_cv_func_shl_load" = xyes
20686: then :
1.128 moko 20687:
1.237 moko 20688: printf "%s\n" "#define HAVE_SHL_LOAD 1" >>confdefs.h
1.128 moko 20689:
20690: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
1.237 moko 20691: else case e in #(
20692: e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
20693: printf %s "checking for shl_load in -ldld... " >&6; }
20694: if test ${ac_cv_lib_dld_shl_load+y}
20695: then :
20696: printf %s "(cached) " >&6
20697: else case e in #(
20698: e) ac_check_lib_save_LIBS=$LIBS
1.66 paf 20699: LIBS="-ldld $LIBS"
1.150 moko 20700: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.66 paf 20701: /* end confdefs.h. */
1.10 paf 20702:
1.150 moko 20703: /* Override any GCC internal prototype to avoid an error.
20704: Use char because int might match the return type of a GCC
1.237 moko 20705: builtin and then its argument prototype would still apply.
20706: The 'extern "C"' is for builds by C++ compilers;
20707: although this is not generally supported in C code supporting it here
20708: has little cost and some practical benefit (sr 110532). */
1.66 paf 20709: #ifdef __cplusplus
20710: extern "C"
20711: #endif
1.237 moko 20712: char shl_load (void);
1.66 paf 20713: int
1.237 moko 20714: main (void)
1.66 paf 20715: {
1.150 moko 20716: return shl_load ();
1.66 paf 20717: ;
20718: return 0;
20719: }
20720: _ACEOF
1.237 moko 20721: if ac_fn_c_try_link "$LINENO"
20722: then :
1.66 paf 20723: ac_cv_lib_dld_shl_load=yes
1.237 moko 20724: else case e in #(
20725: e) ac_cv_lib_dld_shl_load=no ;;
20726: esac
1.66 paf 20727: fi
1.237 moko 20728: rm -f core conftest.err conftest.$ac_objext conftest.beam \
1.150 moko 20729: conftest$ac_exeext conftest.$ac_ext
1.237 moko 20730: LIBS=$ac_check_lib_save_LIBS ;;
20731: esac
1.66 paf 20732: fi
1.237 moko 20733: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
20734: printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
20735: if test "x$ac_cv_lib_dld_shl_load" = xyes
20736: then :
1.1 paf 20737:
1.237 moko 20738: printf "%s\n" "#define HAVE_SHL_LOAD 1" >>confdefs.h
1.1 paf 20739:
1.128 moko 20740: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
1.237 moko 20741: LIBADD_SHL_LOAD=-ldld
1.128 moko 20742: fi
1.237 moko 20743: ;;
20744: esac
1.128 moko 20745: fi
20746:
20747:
20748:
20749: case $host_os in
20750: darwin[1567].*)
20751: # We only want this for pre-Mac OS X 10.4.
1.150 moko 20752: ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup"
1.237 moko 20753: if test "x$ac_cv_func__dyld_func_lookup" = xyes
20754: then :
1.150 moko 20755:
1.237 moko 20756: printf "%s\n" "#define HAVE_DYLD 1" >>confdefs.h
1.128 moko 20757:
1.150 moko 20758: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"
20759: fi
1.128 moko 20760:
1.150 moko 20761: ;;
20762: beos*)
1.128 moko 20763: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
20764: ;;
1.237 moko 20765: cygwin* | mingw* | windows* | pw32*)
20766: ac_fn_check_decl "$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include <sys/cygwin.h>
20767: " "$ac_c_undeclared_builtin_options" "CFLAGS"
20768: if test "x$ac_cv_have_decl_cygwin_conv_path" = xyes
20769: then :
1.150 moko 20770: ac_have_decl=1
1.237 moko 20771: else case e in #(
20772: e) ac_have_decl=0 ;;
20773: esac
1.128 moko 20774: fi
1.237 moko 20775: printf "%s\n" "#define HAVE_DECL_CYGWIN_CONV_PATH $ac_have_decl" >>confdefs.h
1.128 moko 20776:
20777: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
20778: ;;
20779: esac
20780:
1.237 moko 20781: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
20782: printf %s "checking for dld_link in -ldld... " >&6; }
20783: if test ${ac_cv_lib_dld_dld_link+y}
20784: then :
20785: printf %s "(cached) " >&6
20786: else case e in #(
20787: e) ac_check_lib_save_LIBS=$LIBS
1.128 moko 20788: LIBS="-ldld $LIBS"
1.150 moko 20789: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.66 paf 20790: /* end confdefs.h. */
1.62 paf 20791:
1.150 moko 20792: /* Override any GCC internal prototype to avoid an error.
20793: Use char because int might match the return type of a GCC
1.237 moko 20794: builtin and then its argument prototype would still apply.
20795: The 'extern "C"' is for builds by C++ compilers;
20796: although this is not generally supported in C code supporting it here
20797: has little cost and some practical benefit (sr 110532). */
1.66 paf 20798: #ifdef __cplusplus
20799: extern "C"
20800: #endif
1.237 moko 20801: char dld_link (void);
1.66 paf 20802: int
1.237 moko 20803: main (void)
1.66 paf 20804: {
1.150 moko 20805: return dld_link ();
1.66 paf 20806: ;
20807: return 0;
20808: }
20809: _ACEOF
1.237 moko 20810: if ac_fn_c_try_link "$LINENO"
20811: then :
1.128 moko 20812: ac_cv_lib_dld_dld_link=yes
1.237 moko 20813: else case e in #(
20814: e) ac_cv_lib_dld_dld_link=no ;;
20815: esac
1.128 moko 20816: fi
1.237 moko 20817: rm -f core conftest.err conftest.$ac_objext conftest.beam \
1.150 moko 20818: conftest$ac_exeext conftest.$ac_ext
1.237 moko 20819: LIBS=$ac_check_lib_save_LIBS ;;
20820: esac
1.128 moko 20821: fi
1.237 moko 20822: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
20823: printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
20824: if test "x$ac_cv_lib_dld_dld_link" = xyes
20825: then :
1.128 moko 20826:
1.237 moko 20827: printf "%s\n" "#define HAVE_DLD 1" >>confdefs.h
1.128 moko 20828:
20829: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"
20830: fi
20831:
20832:
20833:
20834:
20835: LT_DLPREOPEN=
20836: if test -n "$LT_DLLOADERS"
20837: then
20838: for lt_loader in $LT_DLLOADERS; do
20839: LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
20840: done
20841:
1.237 moko 20842: printf "%s\n" "#define HAVE_LIBDLLOADER 1" >>confdefs.h
1.128 moko 20843:
20844: fi
20845:
20846:
20847: LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
20848:
20849:
1.237 moko 20850: LIBS=$lt_dlload_save_LIBS
1.128 moko 20851: ac_ext=c
20852: ac_cpp='$CPP $CPPFLAGS'
20853: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20854: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20855: ac_compiler_gnu=$ac_cv_c_compiler_gnu
20856:
20857:
1.237 moko 20858: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5
20859: printf %s "checking for _ prefix in compiled symbols... " >&6; }
20860: if test ${lt_cv_sys_symbol_underscore+y}
20861: then :
20862: printf %s "(cached) " >&6
20863: else case e in #(
20864: e) lt_cv_sys_symbol_underscore=no
1.128 moko 20865: cat > conftest.$ac_ext <<_LT_EOF
20866: void nm_test_func(){}
1.237 moko 20867: int main(void){nm_test_func;return 0;}
1.128 moko 20868: _LT_EOF
1.150 moko 20869: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1.128 moko 20870: (eval $ac_compile) 2>&5
20871: ac_status=$?
1.237 moko 20872: printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1.150 moko 20873: test $ac_status = 0; }; then
1.128 moko 20874: # Now try to grab the symbols.
20875: ac_nlist=conftest.nm
1.150 moko 20876: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\""; } >&5
1.128 moko 20877: (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
20878: ac_status=$?
1.237 moko 20879: printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1.150 moko 20880: test $ac_status = 0; } && test -s "$ac_nlist"; then
1.128 moko 20881: # See whether the symbols have a leading underscore.
20882: if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
20883: lt_cv_sys_symbol_underscore=yes
20884: else
20885: if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
20886: :
20887: else
20888: echo "configure: cannot find nm_test_func in $ac_nlist" >&5
20889: fi
20890: fi
20891: else
20892: echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
20893: fi
20894: else
20895: echo "configure: failed program was:" >&5
20896: cat conftest.c >&5
20897: fi
20898: rm -rf conftest*
1.237 moko 20899: ;;
20900: esac
1.66 paf 20901: fi
1.237 moko 20902: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_symbol_underscore" >&5
20903: printf "%s\n" "$lt_cv_sys_symbol_underscore" >&6; }
1.128 moko 20904: sys_symbol_underscore=$lt_cv_sys_symbol_underscore
1.29 paf 20905:
1.62 paf 20906:
1.237 moko 20907: if test yes = "$lt_cv_sys_symbol_underscore"; then
20908: if test yes = "$libltdl_cv_func_dlopen" || test yes = "$libltdl_cv_lib_dl_dlopen"; then
20909: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we have to add an underscore for dlsym" >&5
20910: printf %s "checking whether we have to add an underscore for dlsym... " >&6; }
20911: if test ${libltdl_cv_need_uscore+y}
20912: then :
20913: printf %s "(cached) " >&6
20914: else case e in #(
20915: e) libltdl_cv_need_uscore=unknown
20916: dlsym_uscore_save_LIBS=$LIBS
20917: LIBS="$LIBS $LIBADD_DLOPEN"
20918: libname=conftmod # stay within 8.3 filename limits!
20919: cat >$libname.$ac_ext <<_LT_EOF
1.128 moko 20920: #line $LINENO "configure"
20921: #include "confdefs.h"
1.237 moko 20922: /* When -fvisibility=hidden is used, assume the code has been annotated
20923: correspondingly for the symbols needed. */
20924: #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
20925: int fnord () __attribute__((visibility("default")));
20926: #endif
20927: int fnord () { return 42; }
20928: _LT_EOF
1.128 moko 20929:
1.237 moko 20930: # ltfn_module_cmds module_cmds
20931: # Execute tilde-delimited MODULE_CMDS with environment primed for
20932: # $module_cmds or $archive_cmds type content.
20933: ltfn_module_cmds ()
20934: {( # subshell avoids polluting parent global environment
20935: module_cmds_save_ifs=$IFS; IFS='~'
20936: for cmd in $1; do
20937: IFS=$module_cmds_save_ifs
20938: libobjs=$libname.$ac_objext; lib=$libname$libltdl_cv_shlibext
20939: rpath=/not-exists; soname=$libname$libltdl_cv_shlibext; output_objdir=.
20940: major=; versuffix=; verstring=; deplibs=
20941: ECHO=echo; wl=$lt_prog_compiler_wl; allow_undefined_flag=
20942: eval $cmd
20943: done
20944: IFS=$module_cmds_save_ifs
20945: )}
20946:
20947: # Compile a loadable module using libtool macro expansion results.
20948: $CC $pic_flag -c $libname.$ac_ext
20949: ltfn_module_cmds "${module_cmds:-$archive_cmds}"
20950:
20951: # Try to fetch fnord with dlsym().
20952: libltdl_dlunknown=0; libltdl_dlnouscore=1; libltdl_dluscore=2
20953: cat >conftest.$ac_ext <<_LT_EOF
20954: #line $LINENO "configure"
20955: #include "confdefs.h"
1.66 paf 20956: #if HAVE_DLFCN_H
1.128 moko 20957: #include <dlfcn.h>
20958: #endif
20959: #include <stdio.h>
1.237 moko 20960: #ifndef RTLD_GLOBAL
1.128 moko 20961: # ifdef DL_GLOBAL
1.237 moko 20962: # define RTLD_GLOBAL DL_GLOBAL
1.128 moko 20963: # else
1.237 moko 20964: # define RTLD_GLOBAL 0
1.128 moko 20965: # endif
20966: #endif
1.237 moko 20967: #ifndef RTLD_NOW
20968: # ifdef DL_NOW
20969: # define RTLD_NOW DL_NOW
1.128 moko 20970: # else
1.237 moko 20971: # define RTLD_NOW 0
1.128 moko 20972: # endif
20973: #endif
1.237 moko 20974: int main (void) {
20975: void *handle = dlopen ("`pwd`/$libname$libltdl_cv_shlibext", RTLD_GLOBAL|RTLD_NOW);
20976: int status = $libltdl_dlunknown;
20977: if (handle) {
20978: if (dlsym (handle, "fnord"))
20979: status = $libltdl_dlnouscore;
20980: else {
20981: if (dlsym (handle, "_fnord"))
20982: status = $libltdl_dluscore;
1.128 moko 20983: else
1.237 moko 20984: puts (dlerror ());
1.128 moko 20985: }
1.237 moko 20986: dlclose (handle);
20987: } else
1.128 moko 20988: puts (dlerror ());
20989: return status;
1.66 paf 20990: }
1.128 moko 20991: _LT_EOF
1.237 moko 20992: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
1.128 moko 20993: (eval $ac_link) 2>&5
1.66 paf 20994: ac_status=$?
1.237 moko 20995: printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20996: test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
20997: (./conftest; exit; ) >&5 2>/dev/null
20998: libltdl_status=$?
20999: case x$libltdl_status in
21000: x$libltdl_dlnouscore) libltdl_cv_need_uscore=no ;;
21001: x$libltdl_dluscore) libltdl_cv_need_uscore=yes ;;
21002: x*) libltdl_cv_need_uscore=unknown ;;
21003: esac
21004: fi
21005: rm -rf conftest* $libname*
21006: LIBS=$dlsym_uscore_save_LIBS
21007: ;;
21008: esac
1.128 moko 21009: fi
1.237 moko 21010: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_need_uscore" >&5
21011: printf "%s\n" "$libltdl_cv_need_uscore" >&6; }
1.128 moko 21012: fi
21013: fi
21014:
1.237 moko 21015: if test yes = "$libltdl_cv_need_uscore"; then
1.29 paf 21016:
1.237 moko 21017: printf "%s\n" "#define NEED_USCORE 1" >>confdefs.h
1.29 paf 21018:
1.128 moko 21019: fi
21020:
1.237 moko 21021: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether deplibs are loaded by dlopen" >&5
21022: printf %s "checking whether deplibs are loaded by dlopen... " >&6; }
21023: if test ${lt_cv_sys_dlopen_deplibs+y}
21024: then :
21025: printf %s "(cached) " >&6
21026: else case e in #(
21027: e) # PORTME does your system automatically load deplibs for dlopen?
1.128 moko 21028: # or its logical equivalent (e.g. shl_load for HP-UX < 11)
21029: # For now, we just catch OSes we know something about -- in the
21030: # future, we'll try test this programmatically.
21031: lt_cv_sys_dlopen_deplibs=unknown
21032: case $host_os in
21033: aix3*|aix4.1.*|aix4.2.*)
21034: # Unknown whether this is true for these versions of AIX, but
1.237 moko 21035: # we want this 'case' here to explicitly catch those versions.
1.128 moko 21036: lt_cv_sys_dlopen_deplibs=unknown
21037: ;;
21038: aix[4-9]*)
21039: lt_cv_sys_dlopen_deplibs=yes
21040: ;;
21041: amigaos*)
21042: case $host_cpu in
21043: powerpc)
21044: lt_cv_sys_dlopen_deplibs=no
21045: ;;
21046: esac
21047: ;;
21048: darwin*)
21049: # Assuming the user has installed a libdl from somewhere, this is true
21050: # If you are looking for one http://www.opendarwin.org/projects/dlcompat
21051: lt_cv_sys_dlopen_deplibs=yes
21052: ;;
1.237 moko 21053: freebsd* | dragonfly* | midnightbsd*)
1.128 moko 21054: lt_cv_sys_dlopen_deplibs=yes
21055: ;;
21056: gnu* | linux* | k*bsd*-gnu | kopensolaris*-gnu)
21057: # GNU and its variants, using gnu ld.so (Glibc)
21058: lt_cv_sys_dlopen_deplibs=yes
21059: ;;
21060: hpux10*|hpux11*)
21061: lt_cv_sys_dlopen_deplibs=yes
21062: ;;
21063: interix*)
21064: lt_cv_sys_dlopen_deplibs=yes
21065: ;;
21066: irix[12345]*|irix6.[01]*)
21067: # Catch all versions of IRIX before 6.2, and indicate that we don't
21068: # know how it worked for any of those versions.
21069: lt_cv_sys_dlopen_deplibs=unknown
21070: ;;
21071: irix*)
21072: # The case above catches anything before 6.2, and it's known that
21073: # at 6.2 and later dlopen does load deplibs.
21074: lt_cv_sys_dlopen_deplibs=yes
21075: ;;
1.237 moko 21076: *-mlibc)
21077: lt_cv_sys_dlopen_deplibs=yes
21078: ;;
21079: netbsd* | netbsdelf*-gnu)
1.128 moko 21080: lt_cv_sys_dlopen_deplibs=yes
21081: ;;
21082: openbsd*)
21083: lt_cv_sys_dlopen_deplibs=yes
21084: ;;
21085: osf[1234]*)
21086: # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
21087: # it did *not* use an RPATH in a shared library to find objects the
1.237 moko 21088: # library depends on, so we explicitly say 'no'.
1.128 moko 21089: lt_cv_sys_dlopen_deplibs=no
21090: ;;
21091: osf5.0|osf5.0a|osf5.1)
21092: # dlopen *does* load deplibs and with the right loader patch applied
21093: # it even uses RPATH in a shared library to search for shared objects
21094: # that the library depends on, but there's no easy way to know if that
21095: # patch is installed. Since this is the case, all we can really
21096: # say is unknown -- it depends on the patch being installed. If
1.237 moko 21097: # it is, this changes to 'yes'. Without it, it would be 'no'.
1.128 moko 21098: lt_cv_sys_dlopen_deplibs=unknown
21099: ;;
21100: osf*)
21101: # the two cases above should catch all versions of osf <= 5.1. Read
21102: # the comments above for what we know about them.
21103: # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
1.237 moko 21104: # is used to find them so we can finally say 'yes'.
1.128 moko 21105: lt_cv_sys_dlopen_deplibs=yes
21106: ;;
21107: qnx*)
21108: lt_cv_sys_dlopen_deplibs=yes
21109: ;;
21110: solaris*)
21111: lt_cv_sys_dlopen_deplibs=yes
21112: ;;
21113: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
21114: libltdl_cv_sys_dlopen_deplibs=yes
21115: ;;
21116: esac
1.237 moko 21117: ;;
21118: esac
1.128 moko 21119: fi
1.237 moko 21120: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlopen_deplibs" >&5
21121: printf "%s\n" "$lt_cv_sys_dlopen_deplibs" >&6; }
21122: if test yes != "$lt_cv_sys_dlopen_deplibs"; then
1.128 moko 21123:
1.237 moko 21124: printf "%s\n" "#define LTDL_DLOPEN_DEPLIBS 1" >>confdefs.h
1.128 moko 21125:
1.243 moko 21126: fi
1.128 moko 21127:
21128:
1.243 moko 21129: ac_fn_c_check_header_compile "$LINENO" "argz.h" "ac_cv_header_argz_h" "$ac_includes_default
1.237 moko 21130: "
1.243 moko 21131: if test "x$ac_cv_header_argz_h" = xyes
1.237 moko 21132: then :
1.243 moko 21133: printf "%s\n" "#define HAVE_ARGZ_H 1" >>confdefs.h
1.237 moko 21134:
21135: fi
1.243 moko 21136:
21137:
21138: ac_fn_c_check_type "$LINENO" "error_t" "ac_cv_type_error_t" "#if defined(HAVE_ARGZ_H)
21139: # include <argz.h>
21140: #endif
1.237 moko 21141: "
1.243 moko 21142: if test "x$ac_cv_type_error_t" = xyes
1.237 moko 21143: then :
21144:
1.243 moko 21145: printf "%s\n" "#define HAVE_ERROR_T 1" >>confdefs.h
1.237 moko 21146:
21147:
1.243 moko 21148: else case e in #(
21149: e)
21150: printf "%s\n" "#define error_t int" >>confdefs.h
1.237 moko 21151:
1.128 moko 21152:
1.243 moko 21153: printf "%s\n" "#define __error_t_defined 1" >>confdefs.h
21154: ;;
21155: esac
1.150 moko 21156: fi
1.128 moko 21157:
21158:
1.243 moko 21159: LT_ARGZ_H=
1.128 moko 21160:
1.243 moko 21161: for ac_func in argz_add argz_append argz_count argz_create_sep argz_insert argz_next argz_stringify
1.150 moko 21162: do :
1.237 moko 21163: as_ac_var=`printf "%s\n" "ac_cv_func_$ac_func" | sed "$as_sed_sh"`
1.150 moko 21164: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
1.237 moko 21165: if eval test \"x\$"$as_ac_var"\" = x"yes"
21166: then :
1.150 moko 21167: cat >>confdefs.h <<_ACEOF
1.237 moko 21168: #define `printf "%s\n" "HAVE_$ac_func" | sed "$as_sed_cpp"` 1
1.150 moko 21169: _ACEOF
1.66 paf 21170:
1.237 moko 21171: else case e in #(
1.243 moko 21172: e) LT_ARGZ_H=lt__argz.h;
1.66 paf 21173:
1.243 moko 21174: _LT_LIBOBJS="$_LT_LIBOBJS lt__argz.$ac_objext"
1.237 moko 21175: ;;
21176: esac
21177: fi
1.1 paf 21178:
1.128 moko 21179: done
21180:
1.243 moko 21181: if test -z "$LT_ARGZ_H"
21182: then :
21183: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if argz actually works" >&5
21184: printf %s "checking if argz actually works... " >&6; }
21185: if test ${lt_cv_sys_argz_works+y}
21186: then :
21187: printf %s "(cached) " >&6
21188: else case e in #(
21189: e) case $host_os in #(
21190: *cygwin*)
21191: lt_cv_sys_argz_works=no
21192: if test no != "$cross_compiling"; then
21193: lt_cv_sys_argz_works="guessing no"
21194: else
21195: lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/'
21196: save_IFS=$IFS
21197: IFS=-.
21198: set x `uname -r | $SED -e "$lt_sed_extract_leading_digits"`
21199: IFS=$save_IFS
21200: lt_os_major=${2-0}
21201: lt_os_minor=${3-0}
21202: lt_os_micro=${4-0}
21203: if test 1 -lt "$lt_os_major" \
21204: || { test 1 -eq "$lt_os_major" \
21205: && { test 5 -lt "$lt_os_minor" \
21206: || { test 5 -eq "$lt_os_minor" \
21207: && test 24 -lt "$lt_os_micro"; }; }; }; then
21208: lt_cv_sys_argz_works=yes
21209: fi
21210: fi
21211: ;; #(
21212: *) lt_cv_sys_argz_works=yes ;;
21213: esac ;;
21214: esac
21215: fi
21216: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_argz_works" >&5
21217: printf "%s\n" "$lt_cv_sys_argz_works" >&6; }
21218: if test yes = "$lt_cv_sys_argz_works"
1.237 moko 21219: then :
1.243 moko 21220:
21221: printf "%s\n" "#define HAVE_WORKING_ARGZ 1" >>confdefs.h
1.128 moko 21222:
1.237 moko 21223: else case e in #(
1.243 moko 21224: e) LT_ARGZ_H=lt__argz.h
21225:
1.128 moko 21226:
1.243 moko 21227: _LT_LIBOBJS="$_LT_LIBOBJS lt__argz.$ac_objext"
1.237 moko 21228: ;;
21229: esac
21230: fi
1.243 moko 21231: fi
1.128 moko 21232:
21233:
21234:
1.243 moko 21235: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether libtool supports -dlopen/-dlpreopen" >&5
21236: printf %s "checking whether libtool supports -dlopen/-dlpreopen... " >&6; }
21237: if test ${libltdl_cv_preloaded_symbols+y}
21238: then :
21239: printf %s "(cached) " >&6
21240: else case e in #(
21241: e) if test -n "$lt_cv_sys_global_symbol_pipe"; then
21242: libltdl_cv_preloaded_symbols=yes
21243: else
21244: libltdl_cv_preloaded_symbols=no
21245: fi
21246: ;;
21247: esac
21248: fi
21249: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_preloaded_symbols" >&5
21250: printf "%s\n" "$libltdl_cv_preloaded_symbols" >&6; }
21251: if test yes = "$libltdl_cv_preloaded_symbols"; then
1.64 paf 21252:
1.243 moko 21253: printf "%s\n" "#define HAVE_PRELOADED_SYMBOLS 1" >>confdefs.h
1.128 moko 21254:
1.243 moko 21255: fi
1.128 moko 21256:
21257:
21258:
1.243 moko 21259: # Set options
1.128 moko 21260:
21261:
21262:
21263:
21264:
21265:
21266:
21267:
21268:
21269:
21270:
21271:
1.243 moko 21272: # Check whether --with-included_ltdl was given.
21273: if test ${with_included_ltdl+y}
1.237 moko 21274: then :
1.243 moko 21275: withval=$with_included_ltdl;
21276: fi
1.150 moko 21277:
21278:
1.243 moko 21279: if test yes != "$with_included_ltdl"; then
21280: # We are not being forced to use the included libltdl sources, so
21281: # decide whether there is a useful installed version we can use.
21282: ac_fn_c_check_header_compile "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default
1.128 moko 21283:
1.243 moko 21284: "
21285: if test "x$ac_cv_header_ltdl_h" = xyes
1.237 moko 21286: then :
1.243 moko 21287: ac_fn_check_decl "$LINENO" "lt_dlinterface_register" "ac_cv_have_decl_lt_dlinterface_register" "$ac_includes_default
21288: #include <ltdl.h>
21289: " "$ac_c_undeclared_builtin_options" "CFLAGS"
21290: if test "x$ac_cv_have_decl_lt_dlinterface_register" = xyes
1.237 moko 21291: then :
1.243 moko 21292: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lt_dladvise_preload in -lltdl" >&5
21293: printf %s "checking for lt_dladvise_preload in -lltdl... " >&6; }
21294: if test ${ac_cv_lib_ltdl_lt_dladvise_preload+y}
1.237 moko 21295: then :
1.243 moko 21296: printf %s "(cached) " >&6
21297: else case e in #(
21298: e) ac_check_lib_save_LIBS=$LIBS
21299: LIBS="-lltdl $LIBS"
21300: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.62 paf 21301: /* end confdefs.h. */
1.150 moko 21302:
1.243 moko 21303: /* Override any GCC internal prototype to avoid an error.
21304: Use char because int might match the return type of a GCC
21305: builtin and then its argument prototype would still apply.
21306: The 'extern "C"' is for builds by C++ compilers;
21307: although this is not generally supported in C code supporting it here
21308: has little cost and some practical benefit (sr 110532). */
21309: #ifdef __cplusplus
21310: extern "C"
21311: #endif
21312: char lt_dladvise_preload (void);
1.128 moko 21313: int
1.237 moko 21314: main (void)
1.128 moko 21315: {
1.243 moko 21316: return lt_dladvise_preload ();
1.128 moko 21317: ;
21318: return 0;
21319: }
1.62 paf 21320: _ACEOF
1.243 moko 21321: if ac_fn_c_try_link "$LINENO"
1.237 moko 21322: then :
1.243 moko 21323: ac_cv_lib_ltdl_lt_dladvise_preload=yes
1.237 moko 21324: else case e in #(
1.243 moko 21325: e) ac_cv_lib_ltdl_lt_dladvise_preload=no ;;
1.237 moko 21326: esac
1.128 moko 21327: fi
1.243 moko 21328: rm -f core conftest.err conftest.$ac_objext conftest.beam \
21329: conftest$ac_exeext conftest.$ac_ext
21330: LIBS=$ac_check_lib_save_LIBS ;;
21331: esac
1.128 moko 21332: fi
1.243 moko 21333: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dladvise_preload" >&5
21334: printf "%s\n" "$ac_cv_lib_ltdl_lt_dladvise_preload" >&6; }
21335: if test "x$ac_cv_lib_ltdl_lt_dladvise_preload" = xyes
1.237 moko 21336: then :
1.243 moko 21337: with_included_ltdl=no
21338: else case e in #(
21339: e) with_included_ltdl=yes ;;
21340: esac
1.128 moko 21341: fi
1.150 moko 21342:
1.237 moko 21343: else case e in #(
1.243 moko 21344: e) with_included_ltdl=yes ;;
1.237 moko 21345: esac
1.128 moko 21346: fi
1.243 moko 21347: else case e in #(
21348: e) with_included_ltdl=yes ;;
1.237 moko 21349: esac
1.128 moko 21350: fi
1.150 moko 21351:
1.66 paf 21352: fi
1.150 moko 21353:
21354:
1.128 moko 21355:
1.66 paf 21356:
1.243 moko 21357: # Check whether --with-ltdl_include was given.
21358: if test ${with_ltdl_include+y}
21359: then :
21360: withval=$with_ltdl_include;
21361: fi
1.128 moko 21362:
1.1 paf 21363:
1.243 moko 21364: if test -n "$with_ltdl_include"; then
21365: if test -f "$with_ltdl_include/ltdl.h"; then :
21366: else
21367: as_fn_error $? "invalid ltdl include directory: '$with_ltdl_include'" "$LINENO" 5
21368: fi
21369: else
21370: with_ltdl_include=no
21371: fi
1.66 paf 21372:
21373:
1.243 moko 21374: # Check whether --with-ltdl_lib was given.
21375: if test ${with_ltdl_lib+y}
1.237 moko 21376: then :
1.243 moko 21377: withval=$with_ltdl_lib;
21378: fi
21379:
21380:
21381: if test -n "$with_ltdl_lib"; then
21382: if test -f "$with_ltdl_lib/libltdl.la"; then :
21383: else
21384: as_fn_error $? "invalid ltdl library directory: '$with_ltdl_lib'" "$LINENO" 5
21385: fi
21386: else
21387: with_ltdl_lib=no
21388: fi
1.62 paf 21389:
1.243 moko 21390: case ,$with_included_ltdl,$with_ltdl_include,$with_ltdl_lib, in
21391: ,yes,no,no,)
21392: case $enable_ltdl_convenience in
21393: no) as_fn_error $? "this package needs a convenience libltdl" "$LINENO" 5 ;;
21394: "") enable_ltdl_convenience=yes
21395: ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
1.237 moko 21396: esac
1.243 moko 21397: LIBLTDL='$(top_build_prefix)'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la"
21398: LTDLDEPS=$LIBLTDL
21399: LTDLINCL='-I$(top_srcdir)'"${lt_ltdl_dir+/$lt_ltdl_dir}"
21400:
21401:
21402:
21403:
21404:
21405: # For backwards non-gettext consistent compatibility...
21406: INCLTDL=$LTDLINCL
21407:
21408:
21409: ;;
21410: ,no,no,no,)
21411: # If the included ltdl is not to be used, then use the
21412: # preinstalled libltdl we found.
1.66 paf 21413:
1.243 moko 21414: printf "%s\n" "#define HAVE_LTDL 1" >>confdefs.h
1.156 moko 21415:
1.243 moko 21416: LIBLTDL=-lltdl
21417: LTDLDEPS=
21418: LTDLINCL=
21419: ;;
21420: ,no*,no,*)
21421: as_fn_error $? "'--with-ltdl-include' and '--with-ltdl-lib' options must be used together" "$LINENO" 5
21422: ;;
21423: *) with_included_ltdl=no
21424: LIBLTDL="-L$with_ltdl_lib -lltdl"
21425: LTDLDEPS=
21426: LTDLINCL=-I$with_ltdl_include
21427: ;;
1.237 moko 21428: esac
1.243 moko 21429: INCLTDL=$LTDLINCL
1.156 moko 21430:
1.243 moko 21431: # Report our decision...
21432: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking where to find libltdl headers" >&5
21433: printf %s "checking where to find libltdl headers... " >&6; }
21434: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LTDLINCL" >&5
21435: printf "%s\n" "$LTDLINCL" >&6; }
21436: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking where to find libltdl library" >&5
21437: printf %s "checking where to find libltdl library... " >&6; }
21438: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIBLTDL" >&5
21439: printf "%s\n" "$LIBLTDL" >&6; }
1.159 moko 21440:
21441:
21442:
1.243 moko 21443: # Check whether --enable-ltdl-install was given.
21444: if test ${enable_ltdl_install+y}
21445: then :
21446: enableval=$enable_ltdl_install;
21447: fi
1.159 moko 21448:
1.165 moko 21449:
1.243 moko 21450: case ,$enable_ltdl_install,$enable_ltdl_convenience in
21451: *yes*) ;;
21452: *) enable_ltdl_convenience=yes ;;
21453: esac
1.165 moko 21454:
1.243 moko 21455: if test no != "${enable_ltdl_install-no}"; then
21456: INSTALL_LTDL_TRUE=
21457: INSTALL_LTDL_FALSE='#'
21458: else
21459: INSTALL_LTDL_TRUE='#'
21460: INSTALL_LTDL_FALSE=
21461: fi
1.165 moko 21462:
1.243 moko 21463: if test no != "${enable_ltdl_convenience-no}"; then
21464: CONVENIENCE_LTDL_TRUE=
21465: CONVENIENCE_LTDL_FALSE='#'
21466: else
21467: CONVENIENCE_LTDL_TRUE='#'
21468: CONVENIENCE_LTDL_FALSE=
21469: fi
1.156 moko 21470:
1.243 moko 21471: if test -n "$LT_ARGZ_H"; then
21472: LTARGZH_EXISTS_TRUE=
21473: LTARGZH_EXISTS_FALSE='#'
21474: else
21475: LTARGZH_EXISTS_TRUE='#'
21476: LTARGZH_EXISTS_FALSE=
21477: fi
1.156 moko 21478:
21479:
1.128 moko 21480:
1.243 moko 21481: subdirs="$subdirs src/lib/ltdl"
1.159 moko 21482:
21483:
21484:
21485:
1.243 moko 21486: # In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS
21487: # the user used. This is so that ltdl.h can pick up the parent projects
21488: # config.h file, The first file in AC_CONFIG_HEADERS must contain the
21489: # definitions required by ltdl.c.
21490: # FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility).
1.234 moko 21491:
21492:
1.159 moko 21493:
1.243 moko 21494: ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default
21495: "
21496: if test "x$ac_cv_header_unistd_h" = xyes
1.237 moko 21497: then :
1.243 moko 21498: printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h
1.161 moko 21499:
1.243 moko 21500: fi
21501: ac_fn_c_check_header_compile "$LINENO" "dl.h" "ac_cv_header_dl_h" "$ac_includes_default
21502: "
21503: if test "x$ac_cv_header_dl_h" = xyes
1.237 moko 21504: then :
1.243 moko 21505: printf "%s\n" "#define HAVE_DL_H 1" >>confdefs.h
21506:
1.161 moko 21507: fi
1.243 moko 21508: ac_fn_c_check_header_compile "$LINENO" "sys/dl.h" "ac_cv_header_sys_dl_h" "$ac_includes_default
21509: "
21510: if test "x$ac_cv_header_sys_dl_h" = xyes
21511: then :
21512: printf "%s\n" "#define HAVE_SYS_DL_H 1" >>confdefs.h
21513:
1.161 moko 21514: fi
1.243 moko 21515: ac_fn_c_check_header_compile "$LINENO" "dld.h" "ac_cv_header_dld_h" "$ac_includes_default
21516: "
21517: if test "x$ac_cv_header_dld_h" = xyes
1.237 moko 21518: then :
1.243 moko 21519: printf "%s\n" "#define HAVE_DLD_H 1" >>confdefs.h
1.161 moko 21520:
21521: fi
1.243 moko 21522: ac_fn_c_check_header_compile "$LINENO" "mach-o/dyld.h" "ac_cv_header_mach_o_dyld_h" "$ac_includes_default
21523: "
21524: if test "x$ac_cv_header_mach_o_dyld_h" = xyes
1.237 moko 21525: then :
1.243 moko 21526: printf "%s\n" "#define HAVE_MACH_O_DYLD_H 1" >>confdefs.h
1.161 moko 21527:
21528: fi
1.243 moko 21529: ac_fn_c_check_header_compile "$LINENO" "dirent.h" "ac_cv_header_dirent_h" "$ac_includes_default
21530: "
21531: if test "x$ac_cv_header_dirent_h" = xyes
1.237 moko 21532: then :
1.243 moko 21533: printf "%s\n" "#define HAVE_DIRENT_H 1" >>confdefs.h
21534:
1.161 moko 21535: fi
1.243 moko 21536:
21537:
21538:
21539: for ac_func in closedir opendir readdir
21540: do :
21541: as_ac_var=`printf "%s\n" "ac_cv_func_$ac_func" | sed "$as_sed_sh"`
21542: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21543: if eval test \"x\$"$as_ac_var"\" = x"yes"
1.237 moko 21544: then :
1.243 moko 21545: cat >>confdefs.h <<_ACEOF
21546: #define `printf "%s\n" "HAVE_$ac_func" | sed "$as_sed_cpp"` 1
21547: _ACEOF
1.161 moko 21548:
1.237 moko 21549: else case e in #(
1.243 moko 21550: e)
21551:
21552: _LT_LIBOBJS="$_LT_LIBOBJS lt__dirent.$ac_objext"
21553: ;;
1.237 moko 21554: esac
1.161 moko 21555: fi
21556:
1.243 moko 21557: done
1.161 moko 21558:
1.243 moko 21559: for ac_func in strlcat strlcpy
21560: do :
21561: as_ac_var=`printf "%s\n" "ac_cv_func_$ac_func" | sed "$as_sed_sh"`
21562: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21563: if eval test \"x\$"$as_ac_var"\" = x"yes"
1.237 moko 21564: then :
1.243 moko 21565: cat >>confdefs.h <<_ACEOF
21566: #define `printf "%s\n" "HAVE_$ac_func" | sed "$as_sed_cpp"` 1
21567: _ACEOF
21568:
1.237 moko 21569: else case e in #(
1.243 moko 21570: e)
1.161 moko 21571:
1.243 moko 21572: _LT_LIBOBJS="$_LT_LIBOBJS lt__strl.$ac_objext"
21573: ;;
21574: esac
1.161 moko 21575: fi
1.243 moko 21576:
1.161 moko 21577: done
21578:
21579:
1.243 moko 21580: printf "%s\n" "#define LT_LIBEXT \"$libext\"" >>confdefs.h
21581:
21582:
21583: name=
21584: eval "lt_libprefix=\"$libname_spec\""
21585:
21586: printf "%s\n" "#define LT_LIBPREFIX \"$lt_libprefix\"" >>confdefs.h
21587:
21588:
21589: name=ltdl
21590: eval "LTDLOPEN=\"$libname_spec\""
21591:
1.161 moko 21592:
21593:
21594:
21595:
21596:
21597:
21598:
1.243 moko 21599: # Only expand once:
1.161 moko 21600:
21601:
21602:
1.159 moko 21603:
1.243 moko 21604: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
21605: printf %s "checking whether byte ordering is bigendian... " >&6; }
21606: if test ${ac_cv_c_bigendian+y}
1.237 moko 21607: then :
21608: printf %s "(cached) " >&6
21609: else case e in #(
1.243 moko 21610: e) ac_cv_c_bigendian=unknown
21611: # See if we're dealing with a universal compiler.
21612: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21613: /* end confdefs.h. */
21614: #ifndef __APPLE_CC__
21615: not a universal capable compiler
21616: #endif
21617: typedef int dummy;
21618:
21619: _ACEOF
21620: if ac_fn_c_try_compile "$LINENO"
1.237 moko 21621: then :
1.243 moko 21622:
21623: # Check for potential -arch flags. It is not universal unless
21624: # there are at least two -arch flags with different values.
21625: ac_arch=
21626: ac_prev=
21627: for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
21628: if test -n "$ac_prev"; then
21629: case $ac_word in
21630: i?86 | x86_64 | ppc | ppc64)
21631: if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
21632: ac_arch=$ac_word
21633: else
21634: ac_cv_c_bigendian=universal
21635: break
21636: fi
21637: ;;
21638: esac
21639: ac_prev=
21640: elif test "x$ac_word" = "x-arch"; then
21641: ac_prev=arch
21642: fi
21643: done
1.237 moko 21644: fi
1.243 moko 21645: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21646: if test $ac_cv_c_bigendian = unknown; then
21647: # See if sys/param.h defines the BYTE_ORDER macro.
21648: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.171 moko 21649: /* end confdefs.h. */
21650: #include <sys/types.h>
1.243 moko 21651: #include <sys/param.h>
21652:
1.171 moko 21653: int
1.237 moko 21654: main (void)
1.171 moko 21655: {
1.243 moko 21656: #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \\
21657: && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \\
21658: && LITTLE_ENDIAN)
21659: bogus endian macros
21660: #endif
1.171 moko 21661:
21662: ;
21663: return 0;
21664: }
21665: _ACEOF
1.237 moko 21666: if ac_fn_c_try_compile "$LINENO"
21667: then :
1.243 moko 21668: # It does; now see whether it defined to BIG_ENDIAN or not.
21669: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21670: /* end confdefs.h. */
21671: #include <sys/types.h>
21672: #include <sys/param.h>
21673:
21674: int
21675: main (void)
21676: {
21677: #if BYTE_ORDER != BIG_ENDIAN
21678: not big endian
21679: #endif
21680:
21681: ;
21682: return 0;
21683: }
21684: _ACEOF
21685: if ac_fn_c_try_compile "$LINENO"
1.237 moko 21686: then :
1.243 moko 21687: ac_cv_c_bigendian=yes
1.237 moko 21688: else case e in #(
1.243 moko 21689: e) ac_cv_c_bigendian=no ;;
1.237 moko 21690: esac
21691: fi
1.243 moko 21692: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1.171 moko 21693: fi
1.237 moko 21694: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1.243 moko 21695: fi
21696: if test $ac_cv_c_bigendian = unknown; then
21697: # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
21698: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21699: /* end confdefs.h. */
21700: #include <limits.h>
1.237 moko 21701:
1.243 moko 21702: int
21703: main (void)
21704: {
21705: #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
21706: bogus endian macros
21707: #endif
1.237 moko 21708:
1.243 moko 21709: ;
21710: return 0;
21711: }
21712: _ACEOF
21713: if ac_fn_c_try_compile "$LINENO"
21714: then :
21715: # It does; now see whether it defined to _BIG_ENDIAN or not.
21716: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21717: /* end confdefs.h. */
21718: #include <limits.h>
1.237 moko 21719:
1.243 moko 21720: int
21721: main (void)
21722: {
21723: #ifndef _BIG_ENDIAN
21724: not big endian
21725: #endif
1.171 moko 21726:
1.243 moko 21727: ;
21728: return 0;
21729: }
21730: _ACEOF
21731: if ac_fn_c_try_compile "$LINENO"
21732: then :
21733: ac_cv_c_bigendian=yes
21734: else case e in #(
21735: e) ac_cv_c_bigendian=no ;;
1.237 moko 21736: esac
1.243 moko 21737: fi
21738: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21739: fi
21740: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21741: fi
21742: if test $ac_cv_c_bigendian = unknown; then
21743: # Compile a test program.
21744: if test "$cross_compiling" = yes
1.237 moko 21745: then :
1.243 moko 21746: # Try to guess by grepping values from an object file.
21747: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21748: /* end confdefs.h. */
21749: unsigned short int ascii_mm[] =
21750: { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
21751: unsigned short int ascii_ii[] =
21752: { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
21753: int use_ascii (int i) {
21754: return ascii_mm[i] + ascii_ii[i];
21755: }
21756: unsigned short int ebcdic_ii[] =
21757: { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
21758: unsigned short int ebcdic_mm[] =
21759: { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
21760: int use_ebcdic (int i) {
21761: return ebcdic_mm[i] + ebcdic_ii[i];
21762: }
21763: int
21764: main (int argc, char **argv)
21765: {
21766: /* Intimidate the compiler so that it does not
21767: optimize the arrays away. */
21768: char *p = argv[0];
21769: ascii_mm[1] = *p++; ebcdic_mm[1] = *p++;
21770: ascii_ii[1] = *p++; ebcdic_ii[1] = *p++;
21771: return use_ascii (argc) == use_ebcdic (*p);
21772: }
21773: _ACEOF
21774: if ac_fn_c_try_link "$LINENO"
1.237 moko 21775: then :
1.243 moko 21776: if grep BIGenDianSyS conftest$ac_exeext >/dev/null; then
21777: ac_cv_c_bigendian=yes
21778: fi
21779: if grep LiTTleEnDian conftest$ac_exeext >/dev/null ; then
21780: if test "$ac_cv_c_bigendian" = unknown; then
21781: ac_cv_c_bigendian=no
21782: else
21783: # finding both strings is unlikely to happen, but who knows?
21784: ac_cv_c_bigendian=unknown
21785: fi
21786: fi
1.171 moko 21787: fi
1.243 moko 21788: rm -f core conftest.err conftest.$ac_objext conftest.beam \
21789: conftest$ac_exeext conftest.$ac_ext
21790: else case e in #(
21791: e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.171 moko 21792: /* end confdefs.h. */
1.243 moko 21793: $ac_includes_default
1.171 moko 21794: int
1.237 moko 21795: main (void)
1.171 moko 21796: {
21797:
1.243 moko 21798: /* Are we little or big endian? From Harbison&Steele. */
21799: union
21800: {
21801: long int l;
21802: char c[sizeof (long int)];
21803: } u;
21804: u.l = 1;
21805: return u.c[sizeof (long int) - 1] == 1;
21806:
1.171 moko 21807: ;
21808: return 0;
21809: }
21810: _ACEOF
1.243 moko 21811: if ac_fn_c_try_run "$LINENO"
1.237 moko 21812: then :
1.243 moko 21813: ac_cv_c_bigendian=no
21814: else case e in #(
21815: e) ac_cv_c_bigendian=yes ;;
21816: esac
21817: fi
21818: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21819: conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
21820: esac
1.171 moko 21821: fi
1.243 moko 21822:
21823: fi ;;
1.237 moko 21824: esac
1.171 moko 21825: fi
1.243 moko 21826: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
21827: printf "%s\n" "$ac_cv_c_bigendian" >&6; }
21828: case $ac_cv_c_bigendian in #(
21829: yes)
21830:
21831: printf "%s\n" "#define PA_BIG_ENDIAN /**/" >>confdefs.h
21832:
21833: ;; #(
21834: no)
1.237 moko 21835:
1.243 moko 21836: printf "%s\n" "#define PA_LITTLE_ENDIAN /**/" >>confdefs.h
1.237 moko 21837:
21838: ;; #(
1.243 moko 21839: universal)
1.237 moko 21840:
1.243 moko 21841: printf "%s\n" "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
1.171 moko 21842:
1.243 moko 21843: ;; #(
21844: *)
21845: as_fn_error $? "word endianness not determined for some obscure reason" "$LINENO" 5
21846: ;;
21847: esac
1.171 moko 21848:
1.237 moko 21849:
1.243 moko 21850: ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
21851: if test "x$ac_cv_type_size_t" = xyes
1.237 moko 21852: then :
21853:
1.243 moko 21854: else case e in #(
21855: e)
21856: printf "%s\n" "#define size_t unsigned int" >>confdefs.h
21857: ;;
21858: esac
1.237 moko 21859: fi
1.243 moko 21860:
21861: ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
21862: if test "x$ac_cv_type_ssize_t" = xyes
1.237 moko 21863: then :
21864:
1.243 moko 21865: else case e in #(
21866: e)
21867: printf "%s\n" "#define ssize_t int" >>confdefs.h
21868: ;;
21869: esac
1.237 moko 21870: fi
21871:
1.243 moko 21872: ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
21873: case $ac_cv_c_uint8_t in #(
21874: no|yes) ;; #(
21875: *)
21876:
21877: printf "%s\n" "#define _UINT8_T 1" >>confdefs.h
21878:
21879:
21880: printf "%s\n" "#define uint8_t $ac_cv_c_uint8_t" >>confdefs.h
21881: ;;
21882: esac
21883:
21884: ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
21885: case $ac_cv_c_uint16_t in #(
21886: no|yes) ;; #(
21887: *)
21888:
21889:
21890: printf "%s\n" "#define uint16_t $ac_cv_c_uint16_t" >>confdefs.h
21891: ;;
21892: esac
21893:
21894: ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
21895: case $ac_cv_c_uint32_t in #(
21896: no|yes) ;; #(
21897: *)
21898:
21899: printf "%s\n" "#define _UINT32_T 1" >>confdefs.h
21900:
1.237 moko 21901:
1.243 moko 21902: printf "%s\n" "#define uint32_t $ac_cv_c_uint32_t" >>confdefs.h
21903: ;;
21904: esac
1.237 moko 21905:
1.243 moko 21906: ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
21907: case $ac_cv_c_uint64_t in #(
21908: no|yes) ;; #(
21909: *)
1.237 moko 21910:
1.243 moko 21911: printf "%s\n" "#define _UINT64_T 1" >>confdefs.h
1.237 moko 21912:
21913:
1.243 moko 21914: printf "%s\n" "#define uint64_t $ac_cv_c_uint64_t" >>confdefs.h
21915: ;;
21916: esac
1.237 moko 21917:
1.243 moko 21918: ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
21919: case $ac_cv_c_int64_t in #(
21920: no|yes) ;; #(
21921: *)
1.237 moko 21922:
1.243 moko 21923: printf "%s\n" "#define int64_t $ac_cv_c_int64_t" >>confdefs.h
21924: ;;
21925: esac
1.237 moko 21926:
21927:
1.243 moko 21928: ac_header_dirent=no
21929: for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
21930: as_ac_Header=`printf "%s\n" "ac_cv_header_dirent_$ac_hdr" | sed "$as_sed_sh"`
21931: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
21932: printf %s "checking for $ac_hdr that defines DIR... " >&6; }
21933: if eval test \${$as_ac_Header+y}
1.237 moko 21934: then :
1.243 moko 21935: printf %s "(cached) " >&6
21936: else case e in #(
21937: e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21938: /* end confdefs.h. */
21939: #include <sys/types.h>
21940: #include <$ac_hdr>
1.237 moko 21941:
1.243 moko 21942: int
21943: main (void)
21944: {
21945: if ((DIR *) 0)
21946: return 0;
21947: ;
21948: return 0;
21949: }
21950: _ACEOF
21951: if ac_fn_c_try_compile "$LINENO"
21952: then :
21953: eval "$as_ac_Header=yes"
21954: else case e in #(
21955: e) eval "$as_ac_Header=no" ;;
21956: esac
1.237 moko 21957: fi
1.243 moko 21958: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
21959: esac
1.237 moko 21960: fi
1.243 moko 21961: eval ac_res=\$$as_ac_Header
21962: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
21963: printf "%s\n" "$ac_res" >&6; }
21964: if eval test \"x\$"$as_ac_Header"\" = x"yes"
1.237 moko 21965: then :
1.243 moko 21966: cat >>confdefs.h <<_ACEOF
21967: #define `printf "%s\n" "HAVE_$ac_hdr" | sed "$as_sed_cpp"` 1
21968: _ACEOF
1.237 moko 21969:
1.243 moko 21970: ac_header_dirent=$ac_hdr; break
1.237 moko 21971: fi
21972:
1.243 moko 21973: done
21974: # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
21975: if test $ac_header_dirent = dirent.h; then
21976: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
21977: printf %s "checking for library containing opendir... " >&6; }
21978: if test ${ac_cv_search_opendir+y}
1.237 moko 21979: then :
1.243 moko 21980: printf %s "(cached) " >&6
21981: else case e in #(
21982: e) ac_func_search_save_LIBS=$LIBS
21983: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21984: /* end confdefs.h. */
1.237 moko 21985:
1.243 moko 21986: /* Override any GCC internal prototype to avoid an error.
21987: Use char because int might match the return type of a GCC
21988: builtin and then its argument prototype would still apply.
21989: The 'extern "C"' is for builds by C++ compilers;
21990: although this is not generally supported in C code supporting it here
21991: has little cost and some practical benefit (sr 110532). */
21992: #ifdef __cplusplus
21993: extern "C"
21994: #endif
21995: char opendir (void);
21996: int
21997: main (void)
21998: {
21999: return opendir ();
22000: ;
22001: return 0;
22002: }
22003: _ACEOF
22004: for ac_lib in '' dir
22005: do
22006: if test -z "$ac_lib"; then
22007: ac_res="none required"
22008: else
22009: ac_res=-l$ac_lib
22010: LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22011: fi
22012: if ac_fn_c_try_link "$LINENO"
1.237 moko 22013: then :
1.243 moko 22014: ac_cv_search_opendir=$ac_res
1.237 moko 22015: fi
1.243 moko 22016: rm -f core conftest.err conftest.$ac_objext conftest.beam \
22017: conftest$ac_exeext
22018: if test ${ac_cv_search_opendir+y}
1.237 moko 22019: then :
1.243 moko 22020: break
1.237 moko 22021: fi
1.243 moko 22022: done
22023: if test ${ac_cv_search_opendir+y}
1.237 moko 22024: then :
22025:
1.243 moko 22026: else case e in #(
22027: e) ac_cv_search_opendir=no ;;
22028: esac
1.171 moko 22029: fi
1.243 moko 22030: rm conftest.$ac_ext
22031: LIBS=$ac_func_search_save_LIBS ;;
22032: esac
1.237 moko 22033: fi
1.243 moko 22034: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
22035: printf "%s\n" "$ac_cv_search_opendir" >&6; }
22036: ac_res=$ac_cv_search_opendir
22037: if test "$ac_res" != no
1.237 moko 22038: then :
1.243 moko 22039: test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
1.171 moko 22040:
22041: fi
22042:
1.243 moko 22043: else
22044: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
22045: printf %s "checking for library containing opendir... " >&6; }
22046: if test ${ac_cv_search_opendir+y}
1.237 moko 22047: then :
1.243 moko 22048: printf %s "(cached) " >&6
22049: else case e in #(
22050: e) ac_func_search_save_LIBS=$LIBS
22051: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22052: /* end confdefs.h. */
1.237 moko 22053:
1.243 moko 22054: /* Override any GCC internal prototype to avoid an error.
22055: Use char because int might match the return type of a GCC
22056: builtin and then its argument prototype would still apply.
22057: The 'extern "C"' is for builds by C++ compilers;
22058: although this is not generally supported in C code supporting it here
22059: has little cost and some practical benefit (sr 110532). */
22060: #ifdef __cplusplus
22061: extern "C"
22062: #endif
22063: char opendir (void);
22064: int
22065: main (void)
22066: {
22067: return opendir ();
22068: ;
22069: return 0;
22070: }
22071: _ACEOF
22072: for ac_lib in '' x
22073: do
22074: if test -z "$ac_lib"; then
22075: ac_res="none required"
22076: else
22077: ac_res=-l$ac_lib
22078: LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22079: fi
22080: if ac_fn_c_try_link "$LINENO"
1.237 moko 22081: then :
1.243 moko 22082: ac_cv_search_opendir=$ac_res
1.237 moko 22083: fi
1.243 moko 22084: rm -f core conftest.err conftest.$ac_objext conftest.beam \
22085: conftest$ac_exeext
22086: if test ${ac_cv_search_opendir+y}
1.237 moko 22087: then :
1.243 moko 22088: break
1.159 moko 22089: fi
1.243 moko 22090: done
22091: if test ${ac_cv_search_opendir+y}
1.237 moko 22092: then :
1.150 moko 22093:
1.243 moko 22094: else case e in #(
22095: e) ac_cv_search_opendir=no ;;
22096: esac
1.237 moko 22097: fi
1.243 moko 22098: rm conftest.$ac_ext
22099: LIBS=$ac_func_search_save_LIBS ;;
22100: esac
1.237 moko 22101: fi
1.243 moko 22102: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
22103: printf "%s\n" "$ac_cv_search_opendir" >&6; }
22104: ac_res=$ac_cv_search_opendir
22105: if test "$ac_res" != no
1.237 moko 22106: then :
1.243 moko 22107: test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
1.159 moko 22108:
22109: fi
22110:
1.237 moko 22111: fi
1.159 moko 22112:
22113:
22114:
1.243 moko 22115: ac_fn_c_check_member "$LINENO" "struct dirent" "d_type" "ac_cv_member_struct_dirent_d_type" "
22116: #include <sys/types.h>
22117: #ifdef HAVE_DIRENT_H
22118: # include <dirent.h>
22119: #else
22120: # define dirent direct
22121: # ifdef HAVE_SYS_NDIR_H
22122: # include <sys/ndir.h>
22123: # endif
22124: # ifdef HAVE_SYS_DIR_H
22125: # include <sys/dir.h>
22126: # endif
22127: # ifdef HAVE_NDIR_H
22128: # include <ndir.h>
22129: # endif
22130: #endif
1.237 moko 22131:
1.243 moko 22132: "
22133: if test "x$ac_cv_member_struct_dirent_d_type" = xyes
1.237 moko 22134: then :
1.159 moko 22135:
1.243 moko 22136: printf "%s\n" "#define HAVE_STRUCT_DIRENT_D_TYPE 1" >>confdefs.h
1.62 paf 22137:
22138:
1.237 moko 22139: fi
1.62 paf 22140:
22141:
22142:
1.243 moko 22143: # Check whether --enable-largefile was given.
22144: if test ${enable_largefile+y}
22145: then :
22146: enableval=$enable_largefile;
22147: fi
22148: if test "$enable_largefile,$enable_year2038" != no,no
22149: then :
22150: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CPPFLAGS option for large files" >&5
22151: printf %s "checking for $CPPFLAGS option for large files... " >&6; }
22152: if test ${ac_cv_sys_largefile_opts+y}
1.237 moko 22153: then :
22154: printf %s "(cached) " >&6
22155: else case e in #(
1.243 moko 22156: e) ac_save_CPPFLAGS=$CPPFLAGS
22157: ac_opt_found=no
22158: for ac_opt in "none needed" "-D_FILE_OFFSET_BITS=64" "-D_LARGE_FILES=1"; do
22159: if test x"$ac_opt" != x"none needed"
22160: then :
22161: CPPFLAGS="$ac_save_CPPFLAGS $ac_opt"
22162: fi
22163: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.62 paf 22164: /* end confdefs.h. */
1.243 moko 22165: #include <sys/types.h>
22166: #ifndef FTYPE
22167: # define FTYPE off_t
22168: #endif
22169: /* Check that FTYPE can represent 2**63 - 1 correctly.
22170: We can't simply define LARGE_FTYPE to be 9223372036854775807,
22171: since some C++ compilers masquerading as C compilers
22172: incorrectly reject 9223372036854775807. */
22173: #define LARGE_FTYPE (((FTYPE) 1 << 31 << 31) - 1 + ((FTYPE) 1 << 31 << 31))
22174: int FTYPE_is_large[(LARGE_FTYPE % 2147483629 == 721
22175: && LARGE_FTYPE % 2147483647 == 1)
22176: ? 1 : -1];
1.66 paf 22177: int
1.237 moko 22178: main (void)
1.66 paf 22179: {
1.243 moko 22180:
1.66 paf 22181: ;
22182: return 0;
22183: }
1.62 paf 22184: _ACEOF
1.243 moko 22185: if ac_fn_c_try_compile "$LINENO"
22186: then :
22187: if test x"$ac_opt" = x"none needed"
22188: then :
22189: # GNU/Linux s390x and alpha need _FILE_OFFSET_BITS=64 for wide ino_t.
22190: CPPFLAGS="$CPPFLAGS -DFTYPE=ino_t"
22191: if ac_fn_c_try_compile "$LINENO"
1.237 moko 22192: then :
1.243 moko 22193:
1.237 moko 22194: else case e in #(
1.243 moko 22195: e) CPPFLAGS="$CPPFLAGS -D_FILE_OFFSET_BITS=64"
22196: if ac_fn_c_try_compile "$LINENO"
22197: then :
22198: ac_opt='-D_FILE_OFFSET_BITS=64'
22199: fi
22200: rm -f core conftest.err conftest.$ac_objext conftest.beam ;;
1.237 moko 22201: esac
1.62 paf 22202: fi
1.243 moko 22203: rm -f core conftest.err conftest.$ac_objext conftest.beam
22204: fi
22205: ac_cv_sys_largefile_opts=$ac_opt
22206: ac_opt_found=yes
22207: fi
22208: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
22209: test $ac_opt_found = no || break
22210: done
22211: CPPFLAGS=$ac_save_CPPFLAGS
22212:
22213: test $ac_opt_found = yes || ac_cv_sys_largefile_opts="support not detected" ;;
1.237 moko 22214: esac
1.62 paf 22215: fi
1.243 moko 22216: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_opts" >&5
22217: printf "%s\n" "$ac_cv_sys_largefile_opts" >&6; }
22218:
22219: ac_have_largefile=yes
22220: case $ac_cv_sys_largefile_opts in #(
22221: "none needed") :
22222: ;; #(
22223: "supported through gnulib") :
22224: ;; #(
22225: "support not detected") :
22226: ac_have_largefile=no ;; #(
22227: "-D_FILE_OFFSET_BITS=64") :
1.1 paf 22228:
1.243 moko 22229: printf "%s\n" "#define _FILE_OFFSET_BITS 64" >>confdefs.h
22230: ;; #(
22231: "-D_LARGE_FILES=1") :
1.66 paf 22232:
1.243 moko 22233: printf "%s\n" "#define _LARGE_FILES 1" >>confdefs.h
22234: ;; #(
22235: *) :
22236: as_fn_error $? "internal error: bad value for \$ac_cv_sys_largefile_opts" "$LINENO" 5 ;;
22237: esac
1.1 paf 22238:
1.243 moko 22239: if test "$enable_year2038" != no
22240: then :
22241: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CPPFLAGS option for timestamps after 2038" >&5
22242: printf %s "checking for $CPPFLAGS option for timestamps after 2038... " >&6; }
22243: if test ${ac_cv_sys_year2038_opts+y}
1.237 moko 22244: then :
22245: printf %s "(cached) " >&6
22246: else case e in #(
1.243 moko 22247: e) ac_save_CPPFLAGS="$CPPFLAGS"
22248: ac_opt_found=no
22249: for ac_opt in "none needed" "-D_TIME_BITS=64" "-D__MINGW_USE_VC2005_COMPAT" "-U_USE_32_BIT_TIME_T -D__MINGW_USE_VC2005_COMPAT"; do
22250: if test x"$ac_opt" != x"none needed"
22251: then :
22252: CPPFLAGS="$ac_save_CPPFLAGS $ac_opt"
22253: fi
22254: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.62 paf 22255: /* end confdefs.h. */
1.66 paf 22256:
1.243 moko 22257: #include <time.h>
22258: /* Check that time_t can represent 2**32 - 1 correctly. */
22259: #define LARGE_TIME_T \\
22260: ((time_t) (((time_t) 1 << 30) - 1 + 3 * ((time_t) 1 << 30)))
22261: int verify_time_t_range[(LARGE_TIME_T / 65537 == 65535
22262: && LARGE_TIME_T % 65537 == 0)
22263: ? 1 : -1];
1.66 paf 22264:
1.62 paf 22265: int
1.237 moko 22266: main (void)
1.62 paf 22267: {
1.243 moko 22268:
1.62 paf 22269: ;
22270: return 0;
22271: }
22272: _ACEOF
1.243 moko 22273: if ac_fn_c_try_compile "$LINENO"
1.237 moko 22274: then :
1.243 moko 22275: ac_cv_sys_year2038_opts="$ac_opt"
22276: ac_opt_found=yes
22277: fi
22278: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
22279: test $ac_opt_found = no || break
22280: done
22281: CPPFLAGS="$ac_save_CPPFLAGS"
22282: test $ac_opt_found = yes || ac_cv_sys_year2038_opts="support not detected" ;;
1.237 moko 22283: esac
1.1 paf 22284: fi
1.243 moko 22285: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_year2038_opts" >&5
22286: printf "%s\n" "$ac_cv_sys_year2038_opts" >&6; }
22287:
22288: ac_have_year2038=yes
22289: case $ac_cv_sys_year2038_opts in #(
22290: "none needed") :
22291: ;; #(
22292: "support not detected") :
22293: ac_have_year2038=no ;; #(
22294: "-D_TIME_BITS=64") :
22295:
22296: printf "%s\n" "#define _TIME_BITS 64" >>confdefs.h
22297: ;; #(
22298: "-D__MINGW_USE_VC2005_COMPAT") :
22299:
22300: printf "%s\n" "#define __MINGW_USE_VC2005_COMPAT 1" >>confdefs.h
22301: ;; #(
22302: "-U_USE_32_BIT_TIME_T"*) :
22303: { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
22304: printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
22305: as_fn_error $? "the 'time_t' type is currently forced to be 32-bit. It
22306: will stop working after mid-January 2038. Remove
22307: _USE_32BIT_TIME_T from the compiler flags.
22308: See 'config.log' for more details" "$LINENO" 5; } ;; #(
22309: *) :
22310: as_fn_error $? "internal error: bad value for \$ac_cv_sys_year2038_opts" "$LINENO" 5 ;;
1.237 moko 22311: esac
1.243 moko 22312:
22313: fi
22314:
1.62 paf 22315: fi
1.243 moko 22316:
22317: ac_fn_c_check_header_compile "$LINENO" "stdio.h" "ac_cv_header_stdio_h" "$ac_includes_default"
22318: if test "x$ac_cv_header_stdio_h" = xyes
1.237 moko 22319: then :
1.243 moko 22320: printf "%s\n" "#define HAVE_STDIO_H 1" >>confdefs.h
1.1 paf 22321:
1.243 moko 22322: fi
22323: ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
22324: if test "x$ac_cv_header_sys_types_h" = xyes
22325: then :
22326: printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
1.1 paf 22327:
22328: fi
1.243 moko 22329: ac_fn_c_check_header_compile "$LINENO" "sys/stat.h" "ac_cv_header_sys_stat_h" "$ac_includes_default"
22330: if test "x$ac_cv_header_sys_stat_h" = xyes
22331: then :
22332: printf "%s\n" "#define HAVE_SYS_STAT_H 1" >>confdefs.h
1.1 paf 22333:
1.243 moko 22334: fi
22335: ac_fn_c_check_header_compile "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
22336: if test "x$ac_cv_header_stdlib_h" = xyes
1.237 moko 22337: then :
1.243 moko 22338: printf "%s\n" "#define HAVE_STDLIB_H 1" >>confdefs.h
1.66 paf 22339:
1.243 moko 22340: fi
22341: ac_fn_c_check_header_compile "$LINENO" "stddef.h" "ac_cv_header_stddef_h" "$ac_includes_default"
22342: if test "x$ac_cv_header_stddef_h" = xyes
22343: then :
22344: printf "%s\n" "#define HAVE_STDDEF_H 1" >>confdefs.h
1.66 paf 22345:
1.243 moko 22346: fi
22347: ac_fn_c_check_header_compile "$LINENO" "memory.h" "ac_cv_header_memory_h" "$ac_includes_default"
22348: if test "x$ac_cv_header_memory_h" = xyes
1.237 moko 22349: then :
1.243 moko 22350: printf "%s\n" "#define HAVE_MEMORY_H 1" >>confdefs.h
22351:
1.30 paf 22352: fi
1.243 moko 22353: ac_fn_c_check_header_compile "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
22354: if test "x$ac_cv_header_string_h" = xyes
22355: then :
22356: printf "%s\n" "#define HAVE_STRING_H 1" >>confdefs.h
22357:
1.62 paf 22358: fi
1.243 moko 22359: ac_fn_c_check_header_compile "$LINENO" "strings.h" "ac_cv_header_strings_h" "$ac_includes_default"
22360: if test "x$ac_cv_header_strings_h" = xyes
1.237 moko 22361: then :
1.243 moko 22362: printf "%s\n" "#define HAVE_STRINGS_H 1" >>confdefs.h
1.30 paf 22363:
1.243 moko 22364: fi
22365: ac_fn_c_check_header_compile "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
22366: if test "x$ac_cv_header_inttypes_h" = xyes
22367: then :
22368: printf "%s\n" "#define HAVE_INTTYPES_H 1" >>confdefs.h
1.30 paf 22369:
22370: fi
1.243 moko 22371: ac_fn_c_check_header_compile "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
22372: if test "x$ac_cv_header_stdint_h" = xyes
22373: then :
22374: printf "%s\n" "#define HAVE_STDINT_H 1" >>confdefs.h
1.30 paf 22375:
1.243 moko 22376: fi
22377: ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
22378: if test "x$ac_cv_header_unistd_h" = xyes
1.237 moko 22379: then :
1.243 moko 22380: printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h
22381:
22382: fi
1.66 paf 22383:
1.243 moko 22384: ac_fn_c_check_header_compile "$LINENO" "time.h" "ac_cv_header_time_h" "$ac_includes_default"
22385: if test "x$ac_cv_header_time_h" = xyes
1.237 moko 22386: then :
1.243 moko 22387: printf "%s\n" "#define HAVE_TIME_H 1" >>confdefs.h
22388:
1.30 paf 22389: fi
1.243 moko 22390: ac_fn_c_check_header_compile "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
22391: if test "x$ac_cv_header_sys_time_h" = xyes
22392: then :
22393: printf "%s\n" "#define HAVE_SYS_TIME_H 1" >>confdefs.h
22394:
1.62 paf 22395: fi
1.243 moko 22396: ac_fn_c_check_header_compile "$LINENO" "assert.h" "ac_cv_header_assert_h" "$ac_includes_default"
22397: if test "x$ac_cv_header_assert_h" = xyes
1.237 moko 22398: then :
1.243 moko 22399: printf "%s\n" "#define HAVE_ASSERT_H 1" >>confdefs.h
1.30 paf 22400:
1.243 moko 22401: fi
22402: ac_fn_c_check_header_compile "$LINENO" "limits.h" "ac_cv_header_limits_h" "$ac_includes_default"
22403: if test "x$ac_cv_header_limits_h" = xyes
22404: then :
22405: printf "%s\n" "#define HAVE_LIMITS_H 1" >>confdefs.h
1.30 paf 22406:
22407: fi
1.243 moko 22408: ac_fn_c_check_header_compile "$LINENO" "ctype.h" "ac_cv_header_ctype_h" "$ac_includes_default"
22409: if test "x$ac_cv_header_ctype_h" = xyes
22410: then :
22411: printf "%s\n" "#define HAVE_CTYPE_H 1" >>confdefs.h
1.30 paf 22412:
1.243 moko 22413: fi
22414: ac_fn_c_check_header_compile "$LINENO" "math.h" "ac_cv_header_math_h" "$ac_includes_default"
22415: if test "x$ac_cv_header_math_h" = xyes
1.237 moko 22416: then :
1.243 moko 22417: printf "%s\n" "#define HAVE_MATH_H 1" >>confdefs.h
1.62 paf 22418:
1.243 moko 22419: fi
22420: ac_fn_c_check_header_compile "$LINENO" "process.h" "ac_cv_header_process_h" "$ac_includes_default"
22421: if test "x$ac_cv_header_process_h" = xyes
1.237 moko 22422: then :
1.243 moko 22423: printf "%s\n" "#define HAVE_PROCESS_H 1" >>confdefs.h
22424:
1.8 paf 22425: fi
1.243 moko 22426: ac_fn_c_check_header_compile "$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac_includes_default"
22427: if test "x$ac_cv_header_stdarg_h" = xyes
22428: then :
22429: printf "%s\n" "#define HAVE_STDARG_H 1" >>confdefs.h
22430:
1.8 paf 22431: fi
1.243 moko 22432: ac_fn_c_check_header_compile "$LINENO" "setjmp.h" "ac_cv_header_setjmp_h" "$ac_includes_default"
22433: if test "x$ac_cv_header_setjmp_h" = xyes
1.237 moko 22434: then :
1.243 moko 22435: printf "%s\n" "#define HAVE_SETJMP_H 1" >>confdefs.h
1.66 paf 22436:
1.243 moko 22437: fi
22438: ac_fn_c_check_header_compile "$LINENO" "signal.h" "ac_cv_header_signal_h" "$ac_includes_default"
22439: if test "x$ac_cv_header_signal_h" = xyes
22440: then :
22441: printf "%s\n" "#define HAVE_SIGNAL_H 1" >>confdefs.h
1.66 paf 22442:
1.62 paf 22443: fi
1.243 moko 22444: ac_fn_c_check_header_compile "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
22445: if test "x$ac_cv_header_pthread_h" = xyes
22446: then :
22447: printf "%s\n" "#define HAVE_PTHREAD_H 1" >>confdefs.h
1.62 paf 22448:
1.243 moko 22449: fi
1.128 moko 22450:
1.243 moko 22451: ac_fn_c_check_header_compile "$LINENO" "errno.h" "ac_cv_header_errno_h" "$ac_includes_default"
22452: if test "x$ac_cv_header_errno_h" = xyes
22453: then :
22454: printf "%s\n" "#define HAVE_ERRNO_H 1" >>confdefs.h
1.128 moko 22455:
1.243 moko 22456: fi
22457: ac_fn_c_check_header_compile "$LINENO" "dirent.h" "ac_cv_header_dirent_h" "$ac_includes_default"
22458: if test "x$ac_cv_header_dirent_h" = xyes
22459: then :
22460: printf "%s\n" "#define HAVE_DIRENT_H 1" >>confdefs.h
1.1 paf 22461:
1.243 moko 22462: fi
22463: ac_fn_c_check_header_compile "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$ac_includes_default"
22464: if test "x$ac_cv_header_fcntl_h" = xyes
1.237 moko 22465: then :
1.243 moko 22466: printf "%s\n" "#define HAVE_FCNTL_H 1" >>confdefs.h
1.62 paf 22467:
1.243 moko 22468: fi
22469: ac_fn_c_check_header_compile "$LINENO" "io.h" "ac_cv_header_io_h" "$ac_includes_default"
22470: if test "x$ac_cv_header_io_h" = xyes
1.237 moko 22471: then :
1.243 moko 22472: printf "%s\n" "#define HAVE_IO_H 1" >>confdefs.h
22473:
1.62 paf 22474: fi
1.243 moko 22475: ac_fn_c_check_header_compile "$LINENO" "sys/file.h" "ac_cv_header_sys_file_h" "$ac_includes_default"
22476: if test "x$ac_cv_header_sys_file_h" = xyes
22477: then :
22478: printf "%s\n" "#define HAVE_SYS_FILE_H 1" >>confdefs.h
22479:
1.62 paf 22480: fi
1.243 moko 22481: ac_fn_c_check_header_compile "$LINENO" "sys/locking.h" "ac_cv_header_sys_locking_h" "$ac_includes_default"
22482: if test "x$ac_cv_header_sys_locking_h" = xyes
1.237 moko 22483: then :
1.243 moko 22484: printf "%s\n" "#define HAVE_SYS_LOCKING_H 1" >>confdefs.h
1.1 paf 22485:
1.243 moko 22486: fi
22487: ac_fn_c_check_header_compile "$LINENO" "sys/select.h" "ac_cv_header_sys_select_h" "$ac_includes_default"
22488: if test "x$ac_cv_header_sys_select_h" = xyes
22489: then :
22490: printf "%s\n" "#define HAVE_SYS_SELECT_H 1" >>confdefs.h
1.1 paf 22491:
22492: fi
1.243 moko 22493: ac_fn_c_check_header_compile "$LINENO" "sys/resource.h" "ac_cv_header_sys_resource_h" "$ac_includes_default"
22494: if test "x$ac_cv_header_sys_resource_h" = xyes
22495: then :
22496: printf "%s\n" "#define HAVE_SYS_RESOURCE_H 1" >>confdefs.h
1.1 paf 22497:
1.243 moko 22498: fi
22499: ac_fn_c_check_header_compile "$LINENO" "sys/wait.h" "ac_cv_header_sys_wait_h" "$ac_includes_default"
22500: if test "x$ac_cv_header_sys_wait_h" = xyes
1.237 moko 22501: then :
1.243 moko 22502: printf "%s\n" "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
22503:
22504: fi
1.62 paf 22505:
1.243 moko 22506: ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
22507: if test "x$ac_cv_header_sys_socket_h" = xyes
1.237 moko 22508: then :
1.243 moko 22509: printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h
22510:
1.62 paf 22511: fi
1.243 moko 22512: ac_fn_c_check_header_compile "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
22513: if test "x$ac_cv_header_netinet_in_h" = xyes
22514: then :
22515: printf "%s\n" "#define HAVE_NETINET_IN_H 1" >>confdefs.h
22516:
1.62 paf 22517: fi
1.243 moko 22518: ac_fn_c_check_header_compile "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
22519: if test "x$ac_cv_header_arpa_inet_h" = xyes
1.237 moko 22520: then :
1.243 moko 22521: printf "%s\n" "#define HAVE_ARPA_INET_H 1" >>confdefs.h
1.1 paf 22522:
1.243 moko 22523: fi
22524: ac_fn_c_check_header_compile "$LINENO" "netdb.h" "ac_cv_header_netdb_h" "$ac_includes_default"
22525: if test "x$ac_cv_header_netdb_h" = xyes
22526: then :
22527: printf "%s\n" "#define HAVE_NETDB_H 1" >>confdefs.h
1.66 paf 22528:
22529: fi
22530:
22531:
22532:
1.237 moko 22533: ac_fn_c_check_func "$LINENO" "flock" "ac_cv_func_flock"
22534: if test "x$ac_cv_func_flock" = xyes
22535: then :
22536: printf "%s\n" "#define HAVE_FLOCK 1" >>confdefs.h
22537:
22538: fi
22539: ac_fn_c_check_func "$LINENO" "fcntl" "ac_cv_func_fcntl"
22540: if test "x$ac_cv_func_fcntl" = xyes
22541: then :
22542: printf "%s\n" "#define HAVE_FCNTL 1" >>confdefs.h
22543:
22544: fi
22545: ac_fn_c_check_func "$LINENO" "lockf" "ac_cv_func_lockf"
22546: if test "x$ac_cv_func_lockf" = xyes
22547: then :
22548: printf "%s\n" "#define HAVE_LOCKF 1" >>confdefs.h
22549:
22550: fi
22551: ac_fn_c_check_func "$LINENO" "ftruncate" "ac_cv_func_ftruncate"
22552: if test "x$ac_cv_func_ftruncate" = xyes
22553: then :
22554: printf "%s\n" "#define HAVE_FTRUNCATE 1" >>confdefs.h
22555:
22556: fi
22557: ac_fn_c_check_func "$LINENO" "fchmod" "ac_cv_func_fchmod"
22558: if test "x$ac_cv_func_fchmod" = xyes
22559: then :
22560: printf "%s\n" "#define HAVE_FCHMOD 1" >>confdefs.h
22561:
22562: fi
22563:
22564: ac_fn_c_check_func "$LINENO" "getrusage" "ac_cv_func_getrusage"
22565: if test "x$ac_cv_func_getrusage" = xyes
22566: then :
22567: printf "%s\n" "#define HAVE_GETRUSAGE 1" >>confdefs.h
22568:
22569: fi
22570: ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
22571: if test "x$ac_cv_func_gettimeofday" = xyes
22572: then :
22573: printf "%s\n" "#define HAVE_GETTIMEOFDAY 1" >>confdefs.h
22574:
22575: fi
22576: ac_fn_c_check_func "$LINENO" "crypt" "ac_cv_func_crypt"
22577: if test "x$ac_cv_func_crypt" = xyes
22578: then :
22579: printf "%s\n" "#define HAVE_CRYPT 1" >>confdefs.h
22580:
22581: fi
22582: ac_fn_c_check_func "$LINENO" "sigsetjmp" "ac_cv_func_sigsetjmp"
22583: if test "x$ac_cv_func_sigsetjmp" = xyes
22584: then :
22585: printf "%s\n" "#define HAVE_SIGSETJMP 1" >>confdefs.h
22586:
22587: fi
22588: ac_fn_c_check_func "$LINENO" "siglongjmp" "ac_cv_func_siglongjmp"
22589: if test "x$ac_cv_func_siglongjmp" = xyes
22590: then :
22591: printf "%s\n" "#define HAVE_SIGLONGJMP 1" >>confdefs.h
1.159 moko 22592:
22593: fi
1.237 moko 22594: ac_fn_c_check_func "$LINENO" "unsetenv" "ac_cv_func_unsetenv"
22595: if test "x$ac_cv_func_unsetenv" = xyes
22596: then :
22597: printf "%s\n" "#define HAVE_UNSETENV 1" >>confdefs.h
1.66 paf 22598:
1.237 moko 22599: fi
22600: ac_fn_c_check_func "$LINENO" "syslog" "ac_cv_func_syslog"
22601: if test "x$ac_cv_func_syslog" = xyes
22602: then :
22603: printf "%s\n" "#define HAVE_SYSLOG 1" >>confdefs.h
1.1 paf 22604:
1.66 paf 22605: fi
22606:
1.1 paf 22607:
22608:
1.159 moko 22609:
1.67 paf 22610: pa_func=sigsetjmp
1.237 moko 22611: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for (maybe built-in) function $pa_func" >&5
22612: printf %s "checking for (maybe built-in) function $pa_func... " >&6; }
1.229 moko 22613:
22614: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.67 paf 22615: /* end confdefs.h. */
22616:
22617: #ifdef HAVE_SETJMP_H
22618: # include <setjmp.h>
22619: #endif
22620:
22621: int
1.237 moko 22622: main (void)
1.67 paf 22623: {
22624:
22625: $pa_func(0,0);
22626:
22627: ;
22628: return 0;
22629: }
22630: _ACEOF
1.237 moko 22631: if ac_fn_c_try_compile "$LINENO"
22632: then :
22633: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22634: printf "%s\n" "yes" >&6; }
1.67 paf 22635: cat >>confdefs.h <<_ACEOF
1.237 moko 22636: #define `printf "%s\n" "HAVE_$pa_func" | sed "$as_sed_cpp"` 1
1.67 paf 22637: _ACEOF
22638:
22639:
1.237 moko 22640: else case e in #(
22641: e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22642: printf "%s\n" "no" >&6; }
1.229 moko 22643:
1.237 moko 22644: ;;
22645: esac
1.67 paf 22646: fi
1.237 moko 22647: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1.67 paf 22648:
22649:
22650:
1.159 moko 22651:
1.229 moko 22652:
1.150 moko 22653: ac_ext=cpp
1.67 paf 22654: ac_cpp='$CXXCPP $CPPFLAGS'
22655: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22656: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22657: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22658:
22659:
22660:
1.188 moko 22661: for pa_func in trunc round sign isfinite
1.67 paf 22662: do
22663:
1.237 moko 22664: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for (maybe built-in) math function $pa_func" >&5
22665: printf %s "checking for (maybe built-in) math function $pa_func... " >&6; }
1.229 moko 22666:
22667: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.67 paf 22668: /* end confdefs.h. */
22669:
22670: #ifdef HAVE_MATH_H
22671: # include <math.h>
22672: #endif
22673:
22674: int
1.237 moko 22675: main (void)
1.67 paf 22676: {
22677:
22678: double result=$pa_func(1.6);
22679:
22680: ;
22681: return 0;
22682: }
22683: _ACEOF
1.237 moko 22684: if ac_fn_cxx_try_compile "$LINENO"
22685: then :
22686: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22687: printf "%s\n" "yes" >&6; }
1.67 paf 22688: cat >>confdefs.h <<_ACEOF
1.237 moko 22689: #define `printf "%s\n" "HAVE_$pa_func" | sed "$as_sed_cpp"` 1
1.62 paf 22690: _ACEOF
1.66 paf 22691:
1.237 moko 22692: else case e in #(
22693: e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22694: printf "%s\n" "no" >&6; }
1.229 moko 22695:
1.237 moko 22696: ;;
22697: esac
1.62 paf 22698: fi
1.237 moko 22699: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1.150 moko 22700:
1.229 moko 22701:
1.150 moko 22702: done
22703:
22704: ac_ext=c
22705: ac_cpp='$CPP $CPPFLAGS'
22706: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22707: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22708: ac_compiler_gnu=$ac_cv_c_compiler_gnu
22709:
22710:
22711:
1.237 moko 22712:
22713: for ac_func in qsort
1.150 moko 22714: do :
22715: ac_fn_c_check_func "$LINENO" "qsort" "ac_cv_func_qsort"
1.237 moko 22716: if test "x$ac_cv_func_qsort" = xyes
22717: then :
22718: printf "%s\n" "#define HAVE_QSORT 1" >>confdefs.h
1.1 paf 22719:
1.237 moko 22720: else case e in #(
22721: e) as_fn_error $? "No qsort library function." "$LINENO" 5 ;;
22722: esac
1.1 paf 22723: fi
1.237 moko 22724:
1.66 paf 22725: done
1.1 paf 22726:
22727:
1.62 paf 22728:
1.177 moko 22729: ac_ext=cpp
22730: ac_cpp='$CXXCPP $CPPFLAGS'
22731: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22732: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22733: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22734:
1.237 moko 22735: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for timezone variable" >&5
22736: printf %s "checking for timezone variable... " >&6; }
1.229 moko 22737:
22738: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.62 paf 22739: /* end confdefs.h. */
1.66 paf 22740: #include <time.h>
1.62 paf 22741: int
1.237 moko 22742: main (void)
1.62 paf 22743: {
1.177 moko 22744: int test=timezone;
1.62 paf 22745: ;
22746: return 0;
22747: }
22748: _ACEOF
1.237 moko 22749: if ac_fn_cxx_try_compile "$LINENO"
22750: then :
22751: printf "%s\n" "#define HAVE_TIMEZONE 1" >>confdefs.h
22752: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22753: printf "%s\n" "yes" >&6; }
22754: else case e in #(
22755: e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22756: printf "%s\n" "no" >&6; }
22757: ;;
22758: esac
1.62 paf 22759: fi
1.237 moko 22760: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1.229 moko 22761:
1.177 moko 22762: ac_ext=c
22763: ac_cpp='$CPP $CPPFLAGS'
22764: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22765: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22766: ac_compiler_gnu=$ac_cv_c_compiler_gnu
22767:
1.1 paf 22768:
1.237 moko 22769: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for tm_gmtoff in struct tm" >&5
22770: printf %s "checking for tm_gmtoff in struct tm... " >&6; }
1.229 moko 22771:
22772: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.62 paf 22773: /* end confdefs.h. */
1.66 paf 22774: #include <time.h>
1.62 paf 22775: int
1.237 moko 22776: main (void)
1.62 paf 22777: {
1.176 moko 22778: struct tm tm; tm.tm_gmtoff=0;
1.62 paf 22779: ;
22780: return 0;
22781: }
22782: _ACEOF
1.237 moko 22783: if ac_fn_c_try_compile "$LINENO"
22784: then :
22785: printf "%s\n" "#define HAVE_TM_GMTOFF 1" >>confdefs.h
22786: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22787: printf "%s\n" "yes" >&6; }
22788: else case e in #(
22789: e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22790: printf "%s\n" "no" >&6; }
22791: ;;
22792: esac
1.62 paf 22793: fi
1.237 moko 22794: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1.62 paf 22795:
1.229 moko 22796:
1.237 moko 22797: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for tm_tzadj in struct tm" >&5
22798: printf %s "checking for tm_tzadj in struct tm... " >&6; }
1.229 moko 22799:
22800: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.62 paf 22801: /* end confdefs.h. */
1.66 paf 22802: #include <time.h>
1.62 paf 22803: int
1.237 moko 22804: main (void)
1.62 paf 22805: {
1.176 moko 22806: struct tm tm; tm.tm_tzadj=0;
1.62 paf 22807: ;
22808: return 0;
22809: }
22810: _ACEOF
1.237 moko 22811: if ac_fn_c_try_compile "$LINENO"
22812: then :
22813: printf "%s\n" "#define HAVE_TM_TZADJ 1" >>confdefs.h
22814: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22815: printf "%s\n" "yes" >&6; }
22816: else case e in #(
22817: e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22818: printf "%s\n" "no" >&6; }
22819: ;;
22820: esac
1.62 paf 22821: fi
1.237 moko 22822: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1.1 paf 22823:
1.229 moko 22824:
1.237 moko 22825: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gettid" >&5
22826: printf %s "checking for gettid... " >&6; }
1.229 moko 22827:
22828: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.206 moko 22829: /* end confdefs.h. */
22830:
22831: #include <sys/types.h>
22832: #include <sys/syscall.h>
22833:
22834: int
1.237 moko 22835: main (void)
1.206 moko 22836: {
22837: uint tid=syscall(__NR_gettid);
22838: ;
22839: return 0;
22840: }
22841: _ACEOF
1.237 moko 22842: if ac_fn_c_try_compile "$LINENO"
22843: then :
22844: printf "%s\n" "#define HAVE_GETTID 1" >>confdefs.h
22845: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22846: printf "%s\n" "yes" >&6; }
22847: else case e in #(
22848: e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22849: printf "%s\n" "no" >&6; }
22850: ;;
22851: esac
1.206 moko 22852: fi
1.237 moko 22853: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1.206 moko 22854:
1.229 moko 22855:
1.237 moko 22856: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for TLS" >&5
22857: printf %s "checking for TLS... " >&6; }
1.229 moko 22858:
22859: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.208 moko 22860: /* end confdefs.h. */
1.209 moko 22861: __thread int i=0;
1.208 moko 22862: int
1.237 moko 22863: main (void)
1.208 moko 22864: {
1.209 moko 22865:
1.208 moko 22866: ;
22867: return 0;
22868: }
22869: _ACEOF
1.237 moko 22870: if ac_fn_c_try_compile "$LINENO"
22871: then :
22872: printf "%s\n" "#define HAVE_TLS 1" >>confdefs.h
22873: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22874: printf "%s\n" "yes" >&6; }
22875: else case e in #(
22876: e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22877: printf "%s\n" "no" >&6; }
22878: ;;
22879: esac
1.208 moko 22880: fi
1.237 moko 22881: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1.208 moko 22882:
1.229 moko 22883:
1.237 moko 22884: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for 0..9999 year date range support" >&5
22885: printf %s "checking for 0..9999 year date range support... " >&6; }
22886: if test "$cross_compiling" = yes
22887: then :
22888: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22889: printf "%s\n" "no" >&6; }
22890: else case e in #(
22891: e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.62 paf 22892: /* end confdefs.h. */
1.176 moko 22893:
22894: #include <string.h>
1.66 paf 22895: #include <time.h>
1.176 moko 22896:
22897: int main() {
22898: struct tm tmL,tmH;
22899: memset(&tmL, 0, sizeof(tmL));
22900: memset(&tmH, 0, sizeof(tmH));
22901: tmL.tm_year=-1900;
22902: tmL.tm_mon=-1;
22903: tmH.tm_year=9999-1900;
22904: tmH.tm_mon=12-1;
22905: tmH.tm_mday=31;
22906: return mktime(&tmL)==-1 || mktime(&tmH)==-1;
1.62 paf 22907: }
1.176 moko 22908:
1.62 paf 22909: _ACEOF
1.237 moko 22910: if ac_fn_c_try_run "$LINENO"
22911: then :
22912: printf "%s\n" "#define PA_DATE64 1" >>confdefs.h
22913: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22914: printf "%s\n" "yes" >&6; }
22915: else case e in #(
22916: e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22917: printf "%s\n" "no" >&6; } ;;
22918: esac
1.62 paf 22919: fi
1.176 moko 22920: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
1.237 moko 22921: conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
22922: esac
1.176 moko 22923: fi
1.31 paf 22924:
1.1 paf 22925:
22926:
22927:
1.62 paf 22928:
22929:
22930:
1.206 moko 22931:
1.208 moko 22932:
1.150 moko 22933: ac_config_headers="$ac_config_headers src/include/pa_config_auto.h"
1.62 paf 22934:
22935:
1.200 moko 22936: ac_config_files="$ac_config_files Makefile src/Makefile src/types/Makefile src/classes/Makefile src/include/Makefile src/main/Makefile src/sql/Makefile src/lib/Makefile src/lib/gd/Makefile src/lib/smtp/Makefile src/lib/gc/Makefile src/lib/gc/include/Makefile src/lib/pcre/Makefile src/lib/cord/Makefile src/lib/cord/include/Makefile src/lib/cord/include/private/Makefile src/lib/md5/Makefile src/lib/sdbm/Makefile src/lib/sdbm/pa-include/Makefile src/lib/json/Makefile src/lib/curl/Makefile src/lib/punycode/Makefile src/lib/memcached/Makefile src/targets/Makefile src/targets/cgi/Makefile src/targets/apache/Makefile src/targets/isapi/Makefile etc/Makefile etc/parser3.charsets/Makefile etc/auto.p"
1.62 paf 22937:
22938: cat >confcache <<\_ACEOF
1.1 paf 22939: # This file is a shell script that caches the results of configure
22940: # tests run on this system so they can be shared between configure
1.62 paf 22941: # scripts and configure runs, see configure's option --config-cache.
22942: # It is not useful on other systems. If it contains results you don't
22943: # want to keep, you may remove or edit it.
1.1 paf 22944: #
1.62 paf 22945: # config.status only pays attention to the cache file if you give it
22946: # the --recheck option to rerun configure.
1.1 paf 22947: #
1.237 moko 22948: # 'ac_cv_env_foo' variables (set or unset) will be overridden when
22949: # loading this file, other *unset* 'ac_cv_foo' will be assigned the
1.62 paf 22950: # following values.
22951:
22952: _ACEOF
22953:
1.1 paf 22954: # The following way of writing the cache mishandles newlines in values,
22955: # but we know of no workaround that is simple, portable, and efficient.
1.150 moko 22956: # So, we kill variables containing newlines.
1.1 paf 22957: # Ultrix sh set writes to stderr and can't be redirected directly,
22958: # and sets the high bit in the cache file unless we assign to the vars.
1.150 moko 22959: (
22960: for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
22961: eval ac_val=\$$ac_var
22962: case $ac_val in #(
22963: *${as_nl}*)
22964: case $ac_var in #(
1.237 moko 22965: *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
22966: printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1.150 moko 22967: esac
22968: case $ac_var in #(
22969: _ | IFS | as_nl) ;; #(
22970: BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
22971: *) { eval $ac_var=; unset $ac_var;} ;;
22972: esac ;;
22973: esac
22974: done
22975:
1.62 paf 22976: (set) 2>&1 |
1.150 moko 22977: case $as_nl`(ac_space=' '; set) 2>&1` in #(
22978: *${as_nl}ac_space=\ *)
1.237 moko 22979: # 'set' does not quote correctly, so add quotes: double-quote
1.150 moko 22980: # substitution turns \\\\ into \\, and sed turns \\ into \.
1.62 paf 22981: sed -n \
1.86 paf 22982: "s/'/'\\\\''/g;
22983: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
1.150 moko 22984: ;; #(
1.62 paf 22985: *)
1.237 moko 22986: # 'set' quotes correctly as required by POSIX, so do not add quotes.
1.150 moko 22987: sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1.62 paf 22988: ;;
1.150 moko 22989: esac |
22990: sort
22991: ) |
1.62 paf 22992: sed '
1.150 moko 22993: /^ac_cv_env_/b end
1.62 paf 22994: t clear
1.150 moko 22995: :clear
1.237 moko 22996: s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
1.62 paf 22997: t end
1.150 moko 22998: s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22999: :end' >>confcache
23000: if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
23001: if test -w "$cache_file"; then
23002: if test "x$cache_file" != "x/dev/null"; then
1.237 moko 23003: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
23004: printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
1.150 moko 23005: if test ! -f "$cache_file" || test -h "$cache_file"; then
23006: cat confcache >"$cache_file"
23007: else
23008: case $cache_file in #(
23009: */* | ?:*)
23010: mv -f confcache "$cache_file"$$ &&
23011: mv -f "$cache_file"$$ "$cache_file" ;; #(
23012: *)
23013: mv -f confcache "$cache_file" ;;
23014: esac
23015: fi
23016: fi
1.1 paf 23017: else
1.237 moko 23018: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
23019: printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
1.1 paf 23020: fi
23021: fi
23022: rm -f confcache
23023:
23024: test "x$prefix" = xNONE && prefix=$ac_default_prefix
23025: # Let make expand exec_prefix.
23026: test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23027:
1.62 paf 23028: DEFS=-DHAVE_CONFIG_H
23029:
23030: ac_libobjs=
23031: ac_ltlibobjs=
1.229 moko 23032: U=
1.62 paf 23033: for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23034: # 1. Remove the extension, and $U if already installed.
1.150 moko 23035: ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
1.237 moko 23036: ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
1.150 moko 23037: # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
23038: # will be set to the directory where LIBOBJS objects are built.
23039: as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
23040: as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
1.62 paf 23041: done
23042: LIBOBJS=$ac_libobjs
23043:
23044: LTLIBOBJS=$ac_ltlibobjs
1.1 paf 23045:
23046:
1.237 moko 23047: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
23048: printf %s "checking that generated files are newer than configure... " >&6; }
1.187 moko 23049: if test -n "$am_sleep_pid"; then
23050: # Hide warnings about reused PIDs.
23051: wait $am_sleep_pid 2>/dev/null
23052: fi
1.237 moko 23053: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
23054: printf "%s\n" "done" >&6; }
23055: case $enable_silent_rules in # (((
23056: yes) AM_DEFAULT_VERBOSITY=0;;
23057: no) AM_DEFAULT_VERBOSITY=1;;
23058: esac
23059: if test $am_cv_make_support_nested_variables = yes; then
23060: AM_V='$(V)'
23061: AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
23062: else
23063: AM_V=$AM_DEFAULT_VERBOSITY
23064: AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
23065: fi
23066:
1.150 moko 23067: if test -n "$EXEEXT"; then
23068: am__EXEEXT_TRUE=
23069: am__EXEEXT_FALSE='#'
23070: else
23071: am__EXEEXT_TRUE='#'
23072: am__EXEEXT_FALSE=
23073: fi
23074:
1.62 paf 23075: if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
1.150 moko 23076: as_fn_error $? "conditional \"AMDEP\" was never defined.
23077: Usually this means the macro was only invoked conditionally." "$LINENO" 5
1.62 paf 23078: fi
1.66 paf 23079: if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
1.150 moko 23080: as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
23081: Usually this means the macro was only invoked conditionally." "$LINENO" 5
1.62 paf 23082: fi
1.66 paf 23083: if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
1.150 moko 23084: as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
23085: Usually this means the macro was only invoked conditionally." "$LINENO" 5
1.62 paf 23086: fi
1.122 moko 23087: if test -z "${COMPILE_APACHE_MODULE_TRUE}" && test -z "${COMPILE_APACHE_MODULE_FALSE}"; then
1.150 moko 23088: as_fn_error $? "conditional \"COMPILE_APACHE_MODULE\" was never defined.
23089: Usually this means the macro was only invoked conditionally." "$LINENO" 5
1.62 paf 23090: fi
1.128 moko 23091: if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
1.150 moko 23092: as_fn_error $? "conditional \"INSTALL_LTDL\" was never defined.
23093: Usually this means the macro was only invoked conditionally." "$LINENO" 5
1.128 moko 23094: fi
23095: if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
1.150 moko 23096: as_fn_error $? "conditional \"CONVENIENCE_LTDL\" was never defined.
23097: Usually this means the macro was only invoked conditionally." "$LINENO" 5
1.128 moko 23098: fi
1.237 moko 23099: if test -z "${LTARGZH_EXISTS_TRUE}" && test -z "${LTARGZH_EXISTS_FALSE}"; then
23100: as_fn_error $? "conditional \"LTARGZH_EXISTS\" was never defined.
23101: Usually this means the macro was only invoked conditionally." "$LINENO" 5
23102: fi
1.150 moko 23103: LT_CONFIG_H=src/include/pa_config_auto.h
1.128 moko 23104:
23105: _ltdl_libobjs=
23106: _ltdl_ltlibobjs=
23107: if test -n "$_LT_LIBOBJS"; then
23108: # Remove the extension.
23109: _lt_sed_drop_objext='s/\.o$//;s/\.obj$//'
1.237 moko 23110: for i in `for i in $_LT_LIBOBJS; do echo "$i"; done | $SED "$_lt_sed_drop_objext" | sort -u`; do
1.128 moko 23111: _ltdl_libobjs="$_ltdl_libobjs $lt_libobj_prefix$i.$ac_objext"
23112: _ltdl_ltlibobjs="$_ltdl_ltlibobjs $lt_libobj_prefix$i.lo"
23113: done
23114: fi
23115: ltdl_LIBOBJS=$_ltdl_libobjs
23116:
23117: ltdl_LTLIBOBJS=$_ltdl_ltlibobjs
23118:
23119:
1.62 paf 23120:
1.237 moko 23121: # Check whether --enable-year2038 was given.
23122: if test ${enable_year2038+y}
23123: then :
23124: enableval=$enable_year2038;
23125: fi
23126:
1.150 moko 23127:
23128: : "${CONFIG_STATUS=./config.status}"
23129: ac_write_fail=0
1.62 paf 23130: ac_clean_files_save=$ac_clean_files
23131: ac_clean_files="$ac_clean_files $CONFIG_STATUS"
1.237 moko 23132: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
23133: printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
1.150 moko 23134: as_write_fail=0
23135: cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
1.62 paf 23136: #! $SHELL
23137: # Generated by $as_me.
23138: # Run this file to recreate the current configuration.
23139: # Compiler output produced by configure, useful for debugging
23140: # configure, is in config.log if it exists.
23141:
23142: debug=false
23143: ac_cs_recheck=false
23144: ac_cs_silent=false
1.150 moko 23145:
1.62 paf 23146: SHELL=\${CONFIG_SHELL-$SHELL}
1.150 moko 23147: export SHELL
23148: _ASEOF
23149: cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
23150: ## -------------------- ##
23151: ## M4sh Initialization. ##
23152: ## -------------------- ##
1.62 paf 23153:
1.150 moko 23154: # Be more Bourne compatible
23155: DUALCASE=1; export DUALCASE # for MKS sh
1.237 moko 23156: if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
23157: then :
1.62 paf 23158: emulate sh
23159: NULLCMD=:
1.150 moko 23160: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
1.62 paf 23161: # is contrary to our usage. Disable this feature.
23162: alias -g '${1+"$@"}'='"$@"'
1.150 moko 23163: setopt NO_GLOB_SUBST
1.237 moko 23164: else case e in #(
23165: e) case `(set -o) 2>/dev/null` in #(
1.150 moko 23166: *posix*) :
23167: set -o posix ;; #(
23168: *) :
23169: ;;
1.237 moko 23170: esac ;;
1.150 moko 23171: esac
23172: fi
23173:
23174:
1.237 moko 23175:
23176: # Reset variables that may have inherited troublesome values from
23177: # the environment.
23178:
23179: # IFS needs to be set, to space, tab, and newline, in precisely that order.
23180: # (If _AS_PATH_WALK were called with IFS unset, it would have the
23181: # side effect of setting IFS to empty, thus disabling word splitting.)
23182: # Quoting is to prevent editors from complaining about space-tab.
1.150 moko 23183: as_nl='
23184: '
23185: export as_nl
1.237 moko 23186: IFS=" "" $as_nl"
23187:
23188: PS1='$ '
23189: PS2='> '
23190: PS4='+ '
23191:
23192: # Ensure predictable behavior from utilities with locale-dependent output.
23193: LC_ALL=C
23194: export LC_ALL
23195: LANGUAGE=C
23196: export LANGUAGE
23197:
23198: # We cannot yet rely on "unset" to work, but we need these variables
23199: # to be unset--not just set to an empty or harmless value--now, to
23200: # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
23201: # also avoids known problems related to "unset" and subshell syntax
23202: # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
23203: for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
23204: do eval test \${$as_var+y} \
23205: && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
23206: done
23207:
23208: # Ensure that fds 0, 1, and 2 are open.
23209: if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
23210: if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
23211: if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
1.62 paf 23212:
1.150 moko 23213: # The user is always right.
1.237 moko 23214: if ${PATH_SEPARATOR+false} :; then
1.150 moko 23215: PATH_SEPARATOR=:
23216: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
23217: (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
23218: PATH_SEPARATOR=';'
23219: }
1.62 paf 23220: fi
23221:
23222:
1.150 moko 23223: # Find who we are. Look in the path if we contain no directory separator.
23224: as_myself=
23225: case $0 in #((
23226: *[\\/]* ) as_myself=$0 ;;
23227: *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23228: for as_dir in $PATH
23229: do
23230: IFS=$as_save_IFS
1.237 moko 23231: case $as_dir in #(((
23232: '') as_dir=./ ;;
23233: */) ;;
23234: *) as_dir=$as_dir/ ;;
23235: esac
23236: test -r "$as_dir$0" && as_myself=$as_dir$0 && break
1.150 moko 23237: done
23238: IFS=$as_save_IFS
23239:
23240: ;;
23241: esac
1.237 moko 23242: # We did not find ourselves, most probably we were run as 'sh COMMAND'
1.150 moko 23243: # in which case we are not to be found in the path.
23244: if test "x$as_myself" = x; then
23245: as_myself=$0
23246: fi
23247: if test ! -f "$as_myself"; then
1.237 moko 23248: printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
1.150 moko 23249: exit 1
23250: fi
23251:
23252:
23253:
23254: # as_fn_error STATUS ERROR [LINENO LOG_FD]
23255: # ----------------------------------------
23256: # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
23257: # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
23258: # script with STATUS, using 1 if that was 0.
23259: as_fn_error ()
23260: {
23261: as_status=$1; test $as_status -eq 0 && as_status=1
23262: if test "$4"; then
23263: as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1.237 moko 23264: printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
1.150 moko 23265: fi
1.237 moko 23266: printf "%s\n" "$as_me: error: $2" >&2
1.150 moko 23267: as_fn_exit $as_status
23268: } # as_fn_error
23269:
23270:
23271: # as_fn_set_status STATUS
23272: # -----------------------
23273: # Set $? to STATUS, without forking.
23274: as_fn_set_status ()
23275: {
23276: return $1
23277: } # as_fn_set_status
23278:
23279: # as_fn_exit STATUS
23280: # -----------------
23281: # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
23282: as_fn_exit ()
23283: {
23284: set +e
23285: as_fn_set_status $1
23286: exit $1
23287: } # as_fn_exit
23288:
23289: # as_fn_unset VAR
23290: # ---------------
23291: # Portably unset VAR.
23292: as_fn_unset ()
23293: {
23294: { eval $1=; unset $1;}
23295: }
23296: as_unset=as_fn_unset
1.237 moko 23297:
1.150 moko 23298: # as_fn_append VAR VALUE
23299: # ----------------------
23300: # Append the text in VALUE to the end of the definition contained in VAR. Take
23301: # advantage of any shell optimizations that allow amortized linear growth over
23302: # repeated appends, instead of the typical quadratic growth present in naive
23303: # implementations.
1.237 moko 23304: if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
23305: then :
1.150 moko 23306: eval 'as_fn_append ()
23307: {
23308: eval $1+=\$2
23309: }'
1.237 moko 23310: else case e in #(
23311: e) as_fn_append ()
1.150 moko 23312: {
23313: eval $1=\$$1\$2
1.237 moko 23314: } ;;
23315: esac
1.150 moko 23316: fi # as_fn_append
23317:
23318: # as_fn_arith ARG...
23319: # ------------------
23320: # Perform arithmetic evaluation on the ARGs, and store the result in the
23321: # global $as_val. Take advantage of shells that can avoid forks. The arguments
23322: # must be portable across $(()) and expr.
1.237 moko 23323: if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
23324: then :
1.150 moko 23325: eval 'as_fn_arith ()
23326: {
23327: as_val=$(( $* ))
23328: }'
1.237 moko 23329: else case e in #(
23330: e) as_fn_arith ()
1.150 moko 23331: {
23332: as_val=`expr "$@" || test $? -eq 1`
1.237 moko 23333: } ;;
23334: esac
1.150 moko 23335: fi # as_fn_arith
23336:
1.1 paf 23337:
1.150 moko 23338: if expr a : '\(a\)' >/dev/null 2>&1 &&
23339: test "X`expr 00001 : '.*\(...\)'`" = X001; then
1.62 paf 23340: as_expr=expr
23341: else
23342: as_expr=false
23343: fi
23344:
1.150 moko 23345: if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
1.62 paf 23346: as_basename=basename
23347: else
23348: as_basename=false
23349: fi
23350:
1.150 moko 23351: if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
23352: as_dirname=dirname
23353: else
23354: as_dirname=false
23355: fi
1.62 paf 23356:
1.150 moko 23357: as_me=`$as_basename -- "$0" ||
1.62 paf 23358: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23359: X"$0" : 'X\(//\)$' \| \
1.150 moko 23360: X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1.237 moko 23361: printf "%s\n" X/"$0" |
1.150 moko 23362: sed '/^.*\/\([^/][^/]*\)\/*$/{
23363: s//\1/
23364: q
23365: }
23366: /^X\/\(\/\/\)$/{
23367: s//\1/
23368: q
23369: }
23370: /^X\/\(\/\).*/{
23371: s//\1/
23372: q
23373: }
23374: s/.*/./; q'`
1.62 paf 23375:
23376: # Avoid depending upon Character Ranges.
23377: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23378: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23379: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23380: as_cr_digits='0123456789'
23381: as_cr_alnum=$as_cr_Letters$as_cr_digits
23382:
1.237 moko 23383:
23384: # Determine whether it's possible to make 'echo' print without a newline.
23385: # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
23386: # for compatibility with existing Makefiles.
1.150 moko 23387: ECHO_C= ECHO_N= ECHO_T=
23388: case `echo -n x` in #(((((
23389: -n*)
23390: case `echo 'xy\c'` in
23391: *c*) ECHO_T=' ';; # ECHO_T is single tab character.
23392: xy) ECHO_C='\c';;
23393: *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
23394: ECHO_T=' ';;
23395: esac;;
23396: *)
23397: ECHO_N='-n';;
1.62 paf 23398: esac
23399:
1.237 moko 23400: # For backward compatibility with old third-party macros, we provide
23401: # the shell variables $as_echo and $as_echo_n. New code should use
23402: # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
23403: as_echo='printf %s\n'
23404: as_echo_n='printf %s'
23405:
1.150 moko 23406: rm -f conf$$ conf$$.exe conf$$.file
23407: if test -d conf$$.dir; then
23408: rm -f conf$$.dir/conf$$.file
1.62 paf 23409: else
1.150 moko 23410: rm -f conf$$.dir
23411: mkdir conf$$.dir 2>/dev/null
1.62 paf 23412: fi
1.150 moko 23413: if (echo >conf$$.file) 2>/dev/null; then
23414: if ln -s conf$$.file conf$$ 2>/dev/null; then
23415: as_ln_s='ln -s'
23416: # ... but there are two gotchas:
1.237 moko 23417: # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
23418: # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
23419: # In both cases, we have to default to 'cp -pR'.
1.150 moko 23420: ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
1.166 moko 23421: as_ln_s='cp -pR'
1.150 moko 23422: elif ln conf$$.file conf$$ 2>/dev/null; then
23423: as_ln_s=ln
23424: else
1.166 moko 23425: as_ln_s='cp -pR'
1.62 paf 23426: fi
23427: else
1.166 moko 23428: as_ln_s='cp -pR'
1.62 paf 23429: fi
1.150 moko 23430: rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
23431: rmdir conf$$.dir 2>/dev/null
23432:
23433:
23434: # as_fn_mkdir_p
23435: # -------------
23436: # Create "$as_dir" as a directory, including parents if necessary.
23437: as_fn_mkdir_p ()
23438: {
23439:
23440: case $as_dir in #(
23441: -*) as_dir=./$as_dir;;
23442: esac
23443: test -d "$as_dir" || eval $as_mkdir_p || {
23444: as_dirs=
23445: while :; do
23446: case $as_dir in #(
1.237 moko 23447: *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
1.150 moko 23448: *) as_qdir=$as_dir;;
23449: esac
23450: as_dirs="'$as_qdir' $as_dirs"
23451: as_dir=`$as_dirname -- "$as_dir" ||
23452: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23453: X"$as_dir" : 'X\(//\)[^/]' \| \
23454: X"$as_dir" : 'X\(//\)$' \| \
23455: X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
1.237 moko 23456: printf "%s\n" X"$as_dir" |
1.150 moko 23457: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23458: s//\1/
23459: q
23460: }
23461: /^X\(\/\/\)[^/].*/{
23462: s//\1/
23463: q
23464: }
23465: /^X\(\/\/\)$/{
23466: s//\1/
23467: q
23468: }
23469: /^X\(\/\).*/{
23470: s//\1/
23471: q
23472: }
23473: s/.*/./; q'`
23474: test -d "$as_dir" && break
23475: done
23476: test -z "$as_dirs" || eval "mkdir $as_dirs"
23477: } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
23478:
1.62 paf 23479:
1.150 moko 23480: } # as_fn_mkdir_p
1.62 paf 23481: if mkdir -p . 2>/dev/null; then
1.150 moko 23482: as_mkdir_p='mkdir -p "$as_dir"'
1.62 paf 23483: else
1.86 paf 23484: test -d ./-p && rmdir ./-p
1.62 paf 23485: as_mkdir_p=false
23486: fi
23487:
1.166 moko 23488:
23489: # as_fn_executable_p FILE
23490: # -----------------------
23491: # Test if FILE is an executable regular file.
23492: as_fn_executable_p ()
23493: {
23494: test -f "$1" && test -x "$1"
23495: } # as_fn_executable_p
23496: as_test_x='test -x'
23497: as_executable_p=as_fn_executable_p
1.62 paf 23498:
23499: # Sed expression to map a string onto a valid CPP name.
1.237 moko 23500: as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
23501: as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
1.62 paf 23502:
23503: # Sed expression to map a string onto a valid variable name.
1.237 moko 23504: as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
23505: as_tr_sh="eval sed '$as_sed_sh'" # deprecated
1.62 paf 23506:
23507:
23508: exec 6>&1
1.150 moko 23509: ## ----------------------------------- ##
23510: ## Main body of $CONFIG_STATUS script. ##
23511: ## ----------------------------------- ##
23512: _ASEOF
23513: test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
1.62 paf 23514:
1.150 moko 23515: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23516: # Save the log message, to keep $0 and so on meaningful, and to
1.62 paf 23517: # report actual input values of CONFIG_FILES etc. instead of their
1.150 moko 23518: # values after options handling.
23519: ac_log="
1.230 moko 23520: This file was extended by parser $as_me 3.5.2b, which was
1.237 moko 23521: generated by GNU Autoconf 2.72. Invocation command line was
1.62 paf 23522:
23523: CONFIG_FILES = $CONFIG_FILES
23524: CONFIG_HEADERS = $CONFIG_HEADERS
23525: CONFIG_LINKS = $CONFIG_LINKS
23526: CONFIG_COMMANDS = $CONFIG_COMMANDS
23527: $ $0 $@
23528:
1.150 moko 23529: on `(hostname || uname -n) 2>/dev/null | sed 1q`
23530: "
23531:
1.62 paf 23532: _ACEOF
23533:
1.150 moko 23534: case $ac_config_files in *"
23535: "*) set x $ac_config_files; shift; ac_config_files=$*;;
23536: esac
1.62 paf 23537:
1.150 moko 23538: case $ac_config_headers in *"
23539: "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
23540: esac
1.62 paf 23541:
23542:
1.150 moko 23543: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23544: # Files that config.status was made for.
23545: config_files="$ac_config_files"
23546: config_headers="$ac_config_headers"
23547: config_commands="$ac_config_commands"
1.62 paf 23548:
1.150 moko 23549: _ACEOF
1.62 paf 23550:
1.150 moko 23551: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1.62 paf 23552: ac_cs_usage="\
1.237 moko 23553: '$as_me' instantiates files and other configuration actions
1.150 moko 23554: from templates according to the current configuration. Unless the files
23555: and actions are specified as TAGs, all are instantiated by default.
1.62 paf 23556:
1.150 moko 23557: Usage: $0 [OPTION]... [TAG]...
1.62 paf 23558:
23559: -h, --help print this help, then exit
1.150 moko 23560: -V, --version print version number and configuration settings, then exit
23561: --config print configuration, then exit
23562: -q, --quiet, --silent
23563: do not print progress messages
1.62 paf 23564: -d, --debug don't remove temporary files
23565: --recheck update $as_me by reconfiguring in the same conditions
1.150 moko 23566: --file=FILE[:TEMPLATE]
23567: instantiate the configuration file FILE
23568: --header=FILE[:TEMPLATE]
23569: instantiate the configuration header FILE
1.62 paf 23570:
23571: Configuration files:
23572: $config_files
23573:
23574: Configuration headers:
23575: $config_headers
23576:
23577: Configuration commands:
23578: $config_commands
23579:
1.150 moko 23580: Report bugs to the package provider."
23581:
1.62 paf 23582: _ACEOF
1.237 moko 23583: ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
23584: ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
1.150 moko 23585: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1.237 moko 23586: ac_cs_config='$ac_cs_config_escaped'
1.62 paf 23587: ac_cs_version="\\
1.230 moko 23588: parser config.status 3.5.2b
1.237 moko 23589: configured by $0, generated by GNU Autoconf 2.72,
1.150 moko 23590: with options \\"\$ac_cs_config\\"
1.62 paf 23591:
1.237 moko 23592: Copyright (C) 2023 Free Software Foundation, Inc.
1.62 paf 23593: This config.status script is free software; the Free Software Foundation
23594: gives unlimited permission to copy, distribute and modify it."
1.150 moko 23595:
23596: ac_pwd='$ac_pwd'
23597: srcdir='$srcdir'
23598: INSTALL='$INSTALL'
23599: MKDIR_P='$MKDIR_P'
23600: AWK='$AWK'
23601: test -n "\$AWK" || AWK=awk
1.62 paf 23602: _ACEOF
23603:
1.150 moko 23604: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23605: # The default lists apply if the user does not specify any file.
1.62 paf 23606: ac_need_defaults=:
23607: while test $# != 0
23608: do
23609: case $1 in
1.150 moko 23610: --*=?*)
23611: ac_option=`expr "X$1" : 'X\([^=]*\)='`
23612: ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
1.62 paf 23613: ac_shift=:
23614: ;;
1.150 moko 23615: --*=)
23616: ac_option=`expr "X$1" : 'X\([^=]*\)='`
23617: ac_optarg=
23618: ac_shift=:
23619: ;;
23620: *)
1.62 paf 23621: ac_option=$1
23622: ac_optarg=$2
23623: ac_shift=shift
23624: ;;
23625: esac
23626:
23627: case $ac_option in
23628: # Handling of the options.
23629: -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23630: ac_cs_recheck=: ;;
1.150 moko 23631: --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
1.237 moko 23632: printf "%s\n" "$ac_cs_version"; exit ;;
1.150 moko 23633: --config | --confi | --conf | --con | --co | --c )
1.237 moko 23634: printf "%s\n" "$ac_cs_config"; exit ;;
1.150 moko 23635: --debug | --debu | --deb | --de | --d | -d )
1.62 paf 23636: debug=: ;;
23637: --file | --fil | --fi | --f )
23638: $ac_shift
1.150 moko 23639: case $ac_optarg in
1.237 moko 23640: *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
1.150 moko 23641: '') as_fn_error $? "missing file argument" ;;
23642: esac
23643: as_fn_append CONFIG_FILES " '$ac_optarg'"
1.62 paf 23644: ac_need_defaults=false;;
23645: --header | --heade | --head | --hea )
23646: $ac_shift
1.150 moko 23647: case $ac_optarg in
1.237 moko 23648: *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
1.150 moko 23649: esac
23650: as_fn_append CONFIG_HEADERS " '$ac_optarg'"
1.62 paf 23651: ac_need_defaults=false;;
1.150 moko 23652: --he | --h)
23653: # Conflict between --help and --header
1.237 moko 23654: as_fn_error $? "ambiguous option: '$1'
23655: Try '$0 --help' for more information.";;
1.150 moko 23656: --help | --hel | -h )
1.237 moko 23657: printf "%s\n" "$ac_cs_usage"; exit ;;
1.62 paf 23658: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23659: | -silent | --silent | --silen | --sile | --sil | --si | --s)
23660: ac_cs_silent=: ;;
23661:
23662: # This is an error.
1.237 moko 23663: -*) as_fn_error $? "unrecognized option: '$1'
23664: Try '$0 --help' for more information." ;;
1.62 paf 23665:
1.150 moko 23666: *) as_fn_append ac_config_targets " $1"
23667: ac_need_defaults=false ;;
1.62 paf 23668:
23669: esac
23670: shift
23671: done
23672:
23673: ac_configure_extra_args=
23674:
23675: if $ac_cs_silent; then
23676: exec 6>/dev/null
1.150 moko 23677: ac_configure_extra_args="$ac_configure_extra_args --silent"
23678: fi
23679:
23680: _ACEOF
23681: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23682: if \$ac_cs_recheck; then
1.166 moko 23683: set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
1.150 moko 23684: shift
1.237 moko 23685: \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
1.150 moko 23686: CONFIG_SHELL='$SHELL'
23687: export CONFIG_SHELL
23688: exec "\$@"
23689: fi
23690:
23691: _ACEOF
23692: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23693: exec 5>>config.log
23694: {
23695: echo
23696: sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23697: ## Running $as_me. ##
23698: _ASBOX
1.237 moko 23699: printf "%s\n" "$ac_log"
1.150 moko 23700: } >&5
1.62 paf 23701:
23702: _ACEOF
1.150 moko 23703: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1.1 paf 23704: #
1.150 moko 23705: # INIT-COMMANDS
1.1 paf 23706: #
1.199 moko 23707: AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
1.62 paf 23708:
1.128 moko 23709:
23710: # The HP-UX ksh and POSIX shell print the target directory to stdout
23711: # if CDPATH is set.
23712: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
23713:
23714: sed_quote_subst='$sed_quote_subst'
23715: double_quote_subst='$double_quote_subst'
23716: delay_variable_subst='$delay_variable_subst'
23717: macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
23718: macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
23719: AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
23720: DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
23721: OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
1.145 moko 23722: pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
1.128 moko 23723: enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
1.138 moko 23724: enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
1.128 moko 23725: enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
1.237 moko 23726: shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
1.128 moko 23727: SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
23728: ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
23729: PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
23730: host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
23731: host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
23732: host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
23733: build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
23734: build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
23735: build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
23736: SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
23737: Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
23738: GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
23739: EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
23740: FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
23741: LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
23742: NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
23743: LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
23744: max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
23745: ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
23746: exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
23747: lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
23748: lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
23749: lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
23750: lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
23751: lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
23752: reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
23753: reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
1.237 moko 23754: FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
1.128 moko 23755: deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
23756: file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
23757: file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
23758: want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
23759: sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
23760: AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
1.237 moko 23761: lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
1.128 moko 23762: AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
23763: archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
23764: STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
23765: RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
23766: old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
23767: old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
23768: old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
23769: lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
23770: CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
23771: CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
23772: compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
23773: GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
23774: lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
23775: lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
1.237 moko 23776: lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
1.128 moko 23777: lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
23778: 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"`'
1.237 moko 23779: lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
1.128 moko 23780: nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
23781: lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
1.237 moko 23782: lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
1.128 moko 23783: objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
23784: MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
23785: lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
23786: lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
23787: lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
23788: lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
23789: lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
23790: need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
23791: MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
23792: DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
23793: NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
23794: LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
23795: OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
23796: OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
23797: libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
23798: shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
23799: extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
23800: archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
23801: enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
23802: export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
23803: whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
23804: compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
23805: old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
23806: old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
23807: archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
23808: archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
23809: module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
23810: module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
23811: with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
23812: allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
23813: no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
23814: hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
23815: hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
23816: hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
23817: hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
23818: hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
23819: hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
23820: hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
23821: inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
23822: link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
23823: always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
23824: export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
23825: exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
23826: include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
23827: prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
23828: postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
23829: file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
23830: variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
23831: need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
23832: need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
23833: version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
23834: runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
23835: shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
23836: shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
23837: libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
23838: library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
23839: soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
23840: install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
23841: postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
23842: postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
23843: finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
23844: finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
23845: hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
23846: sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
1.237 moko 23847: configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
23848: configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
1.128 moko 23849: hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
23850: enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
23851: enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
23852: enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
23853: old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
23854: striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
23855: compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
23856: predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
23857: postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
23858: predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
23859: postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
23860: compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
23861: LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
23862: reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
23863: reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
23864: old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
23865: compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
23866: GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
23867: lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
23868: lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
23869: lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
23870: lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
23871: lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
23872: archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
23873: enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
23874: export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
23875: whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
23876: compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
23877: old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
23878: old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
23879: archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
23880: archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
23881: module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
23882: module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
23883: with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
23884: allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
23885: no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
23886: hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
23887: hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
23888: hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
23889: hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
23890: hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
23891: hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
23892: hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
23893: inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
23894: link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
23895: always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
23896: export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
23897: exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
23898: include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
23899: prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
23900: postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
23901: file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
23902: hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
23903: compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
23904: predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
23905: postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
23906: predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
23907: postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
23908: compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
23909:
23910: LTCC='$LTCC'
23911: LTCFLAGS='$LTCFLAGS'
23912: compiler='$compiler_DEFAULT'
23913:
23914: # A function that is used when there is no print builtin or printf.
23915: func_fallback_echo ()
23916: {
23917: eval 'cat <<_LTECHO_EOF
23918: \$1
23919: _LTECHO_EOF'
23920: }
23921:
23922: # Quote evaled strings.
23923: for var in AS \
23924: DLLTOOL \
23925: OBJDUMP \
23926: SHELL \
23927: ECHO \
23928: PATH_SEPARATOR \
23929: SED \
23930: GREP \
23931: EGREP \
23932: FGREP \
23933: LD \
23934: NM \
23935: LN_S \
23936: lt_SP2NL \
23937: lt_NL2SP \
23938: reload_flag \
1.237 moko 23939: FILECMD \
1.128 moko 23940: deplibs_check_method \
23941: file_magic_cmd \
23942: file_magic_glob \
23943: want_nocaseglob \
23944: sharedlib_from_linklib_cmd \
23945: AR \
23946: archiver_list_spec \
23947: STRIP \
23948: RANLIB \
23949: CC \
23950: CFLAGS \
23951: compiler \
23952: lt_cv_sys_global_symbol_pipe \
23953: lt_cv_sys_global_symbol_to_cdecl \
1.237 moko 23954: lt_cv_sys_global_symbol_to_import \
1.128 moko 23955: lt_cv_sys_global_symbol_to_c_name_address \
23956: lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
1.237 moko 23957: lt_cv_nm_interface \
1.128 moko 23958: nm_file_list_spec \
1.237 moko 23959: lt_cv_truncate_bin \
1.128 moko 23960: lt_prog_compiler_no_builtin_flag \
23961: lt_prog_compiler_pic \
23962: lt_prog_compiler_wl \
23963: lt_prog_compiler_static \
23964: lt_cv_prog_compiler_c_o \
23965: need_locks \
23966: MANIFEST_TOOL \
23967: DSYMUTIL \
23968: NMEDIT \
23969: LIPO \
23970: OTOOL \
23971: OTOOL64 \
23972: shrext_cmds \
23973: export_dynamic_flag_spec \
23974: whole_archive_flag_spec \
23975: compiler_needs_object \
23976: with_gnu_ld \
23977: allow_undefined_flag \
23978: no_undefined_flag \
23979: hardcode_libdir_flag_spec \
23980: hardcode_libdir_separator \
23981: exclude_expsyms \
23982: include_expsyms \
23983: file_list_spec \
23984: variables_saved_for_relink \
23985: libname_spec \
23986: library_names_spec \
23987: soname_spec \
23988: install_override_mode \
23989: finish_eval \
23990: old_striplib \
23991: striplib \
23992: compiler_lib_search_dirs \
23993: predep_objects \
23994: postdep_objects \
23995: predeps \
23996: postdeps \
23997: compiler_lib_search_path \
23998: LD_CXX \
23999: reload_flag_CXX \
24000: compiler_CXX \
24001: lt_prog_compiler_no_builtin_flag_CXX \
24002: lt_prog_compiler_pic_CXX \
24003: lt_prog_compiler_wl_CXX \
24004: lt_prog_compiler_static_CXX \
24005: lt_cv_prog_compiler_c_o_CXX \
24006: export_dynamic_flag_spec_CXX \
24007: whole_archive_flag_spec_CXX \
24008: compiler_needs_object_CXX \
24009: with_gnu_ld_CXX \
24010: allow_undefined_flag_CXX \
24011: no_undefined_flag_CXX \
24012: hardcode_libdir_flag_spec_CXX \
24013: hardcode_libdir_separator_CXX \
24014: exclude_expsyms_CXX \
24015: include_expsyms_CXX \
24016: file_list_spec_CXX \
24017: compiler_lib_search_dirs_CXX \
24018: predep_objects_CXX \
24019: postdep_objects_CXX \
24020: predeps_CXX \
24021: postdeps_CXX \
24022: compiler_lib_search_path_CXX; do
24023: case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
24024: *[\\\\\\\`\\"\\\$]*)
1.237 moko 24025: eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
1.128 moko 24026: ;;
24027: *)
24028: eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
24029: ;;
24030: esac
24031: done
24032:
24033: # Double-quote double-evaled strings.
24034: for var in reload_cmds \
24035: old_postinstall_cmds \
24036: old_postuninstall_cmds \
24037: old_archive_cmds \
24038: extract_expsyms_cmds \
24039: old_archive_from_new_cmds \
24040: old_archive_from_expsyms_cmds \
24041: archive_cmds \
24042: archive_expsym_cmds \
24043: module_cmds \
24044: module_expsym_cmds \
24045: export_symbols_cmds \
24046: prelink_cmds \
24047: postlink_cmds \
24048: postinstall_cmds \
24049: postuninstall_cmds \
24050: finish_cmds \
24051: sys_lib_search_path_spec \
1.237 moko 24052: configure_time_dlsearch_path \
24053: configure_time_lt_sys_library_path \
1.128 moko 24054: reload_cmds_CXX \
24055: old_archive_cmds_CXX \
24056: old_archive_from_new_cmds_CXX \
24057: old_archive_from_expsyms_cmds_CXX \
24058: archive_cmds_CXX \
24059: archive_expsym_cmds_CXX \
24060: module_cmds_CXX \
24061: module_expsym_cmds_CXX \
24062: export_symbols_cmds_CXX \
24063: prelink_cmds_CXX \
24064: postlink_cmds_CXX; do
24065: case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
24066: *[\\\\\\\`\\"\\\$]*)
1.237 moko 24067: eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
1.128 moko 24068: ;;
24069: *)
24070: eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
24071: ;;
24072: esac
24073: done
24074:
24075: ac_aux_dir='$ac_aux_dir'
24076:
1.237 moko 24077: # See if we are running on zsh, and set the options that allow our
1.128 moko 24078: # commands through without removal of \ escapes INIT.
1.237 moko 24079: if test -n "\${ZSH_VERSION+set}"; then
1.128 moko 24080: setopt NO_GLOB_SUBST
24081: fi
24082:
24083:
24084: PACKAGE='$PACKAGE'
24085: VERSION='$VERSION'
24086: RM='$RM'
24087: ofile='$ofile'
24088:
24089:
24090:
24091:
24092:
24093:
1.62 paf 24094: _ACEOF
24095:
1.150 moko 24096: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1.62 paf 24097:
1.150 moko 24098: # Handling of arguments.
1.62 paf 24099: for ac_config_target in $ac_config_targets
1.1 paf 24100: do
1.150 moko 24101: case $ac_config_target in
24102: "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
24103: "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
24104: "src/include/pa_config_auto.h") CONFIG_HEADERS="$CONFIG_HEADERS src/include/pa_config_auto.h" ;;
24105: "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
24106: "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
24107: "src/types/Makefile") CONFIG_FILES="$CONFIG_FILES src/types/Makefile" ;;
24108: "src/classes/Makefile") CONFIG_FILES="$CONFIG_FILES src/classes/Makefile" ;;
24109: "src/include/Makefile") CONFIG_FILES="$CONFIG_FILES src/include/Makefile" ;;
24110: "src/main/Makefile") CONFIG_FILES="$CONFIG_FILES src/main/Makefile" ;;
24111: "src/sql/Makefile") CONFIG_FILES="$CONFIG_FILES src/sql/Makefile" ;;
24112: "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
24113: "src/lib/gd/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/gd/Makefile" ;;
24114: "src/lib/smtp/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/smtp/Makefile" ;;
24115: "src/lib/gc/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/gc/Makefile" ;;
24116: "src/lib/gc/include/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/gc/include/Makefile" ;;
24117: "src/lib/pcre/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/pcre/Makefile" ;;
24118: "src/lib/cord/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/cord/Makefile" ;;
24119: "src/lib/cord/include/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/cord/include/Makefile" ;;
24120: "src/lib/cord/include/private/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/cord/include/private/Makefile" ;;
24121: "src/lib/md5/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/md5/Makefile" ;;
24122: "src/lib/sdbm/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/sdbm/Makefile" ;;
24123: "src/lib/sdbm/pa-include/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/sdbm/pa-include/Makefile" ;;
24124: "src/lib/json/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/json/Makefile" ;;
1.173 moko 24125: "src/lib/curl/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/curl/Makefile" ;;
24126: "src/lib/punycode/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/punycode/Makefile" ;;
1.150 moko 24127: "src/lib/memcached/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/memcached/Makefile" ;;
24128: "src/targets/Makefile") CONFIG_FILES="$CONFIG_FILES src/targets/Makefile" ;;
24129: "src/targets/cgi/Makefile") CONFIG_FILES="$CONFIG_FILES src/targets/cgi/Makefile" ;;
24130: "src/targets/apache/Makefile") CONFIG_FILES="$CONFIG_FILES src/targets/apache/Makefile" ;;
24131: "src/targets/isapi/Makefile") CONFIG_FILES="$CONFIG_FILES src/targets/isapi/Makefile" ;;
24132: "etc/Makefile") CONFIG_FILES="$CONFIG_FILES etc/Makefile" ;;
24133: "etc/parser3.charsets/Makefile") CONFIG_FILES="$CONFIG_FILES etc/parser3.charsets/Makefile" ;;
1.200 moko 24134: "etc/auto.p") CONFIG_FILES="$CONFIG_FILES etc/auto.p" ;;
1.150 moko 24135:
1.237 moko 24136: *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;;
1.1 paf 24137: esac
24138: done
24139:
1.150 moko 24140:
1.62 paf 24141: # If the user did not use the arguments to specify the items to instantiate,
24142: # then the envvar interface is used. Set only those that are not.
24143: # We use the long form for the default assignment because of an extremely
24144: # bizarre bug on SunOS 4.1.3.
24145: if $ac_need_defaults; then
1.237 moko 24146: test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
24147: test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
24148: test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
1.62 paf 24149: fi
24150:
24151: # Have a temporary directory for convenience. Make it in the build tree
1.150 moko 24152: # simply because there is no reason against having it here, and in addition,
1.62 paf 24153: # creating and moving files from /tmp can sometimes cause problems.
1.150 moko 24154: # Hook for its removal unless debugging.
24155: # Note that there is a small window in which the directory will not be cleaned:
1.237 moko 24156: # after its creation but before its name has been assigned to '$tmp'.
1.62 paf 24157: $debug ||
24158: {
1.150 moko 24159: tmp= ac_tmp=
24160: trap 'exit_status=$?
24161: : "${ac_tmp:=$tmp}"
24162: { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
24163: ' 0
24164: trap 'as_fn_exit 1' 1 2 13 15
1.62 paf 24165: }
24166: # Create a (secure) tmp directory for tmp files.
24167:
24168: {
1.150 moko 24169: tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
24170: test -d "$tmp"
1.62 paf 24171: } ||
24172: {
1.150 moko 24173: tmp=./conf$$-$RANDOM
24174: (umask 077 && mkdir "$tmp")
24175: } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
24176: ac_tmp=$tmp
24177:
24178: # Set up the scripts for CONFIG_FILES section.
24179: # No need to generate them if there are no CONFIG_FILES.
1.237 moko 24180: # This happens for instance with './config.status config.h'.
1.150 moko 24181: if test -n "$CONFIG_FILES"; then
24182:
24183:
24184: ac_cr=`echo X | tr X '\015'`
24185: # On cygwin, bash can eat \r inside `` if the user requested igncr.
24186: # But we know of no other shell where ac_cr would be empty at this
24187: # point, so we can use a bashism as a fallback.
24188: if test "x$ac_cr" = x; then
24189: eval ac_cr=\$\'\\r\'
24190: fi
24191: ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
24192: if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
24193: ac_cs_awk_cr='\\r'
24194: else
24195: ac_cs_awk_cr=$ac_cr
24196: fi
24197:
24198: echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
24199: _ACEOF
24200:
24201:
1.62 paf 24202: {
1.150 moko 24203: echo "cat >conf$$subs.awk <<_ACEOF" &&
24204: echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
24205: echo "_ACEOF"
24206: } >conf$$subs.sh ||
24207: as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
24208: ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
24209: ac_delim='%!_!# '
24210: for ac_last_try in false false false false false :; do
24211: . ./conf$$subs.sh ||
24212: as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
24213:
24214: ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
24215: if test $ac_delim_n = $ac_delim_num; then
24216: break
24217: elif $ac_last_try; then
24218: as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
24219: else
24220: ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24221: fi
24222: done
24223: rm -f conf$$subs.sh
24224:
24225: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24226: cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
24227: _ACEOF
24228: sed -n '
24229: h
24230: s/^/S["/; s/!.*/"]=/
24231: p
24232: g
24233: s/^[^!]*!//
24234: :repl
24235: t repl
24236: s/'"$ac_delim"'$//
24237: t delim
24238: :nl
24239: h
24240: s/\(.\{148\}\)..*/\1/
24241: t more1
24242: s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
24243: p
24244: n
24245: b repl
24246: :more1
24247: s/["\\]/\\&/g; s/^/"/; s/$/"\\/
24248: p
24249: g
24250: s/.\{148\}//
24251: t nl
24252: :delim
24253: h
24254: s/\(.\{148\}\)..*/\1/
24255: t more2
24256: s/["\\]/\\&/g; s/^/"/; s/$/"/
24257: p
24258: b
24259: :more2
24260: s/["\\]/\\&/g; s/^/"/; s/$/"\\/
24261: p
24262: g
24263: s/.\{148\}//
24264: t delim
24265: ' <conf$$subs.awk | sed '
24266: /^[^""]/{
24267: N
24268: s/\n//
24269: }
24270: ' >>$CONFIG_STATUS || ac_write_fail=1
24271: rm -f conf$$subs.awk
24272: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24273: _ACAWK
24274: cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
24275: for (key in S) S_is_set[key] = 1
24276: FS = ""
24277:
24278: }
24279: {
24280: line = $ 0
24281: nfields = split(line, field, "@")
24282: substed = 0
24283: len = length(field[1])
24284: for (i = 2; i < nfields; i++) {
24285: key = field[i]
24286: keylen = length(key)
24287: if (S_is_set[key]) {
24288: value = S[key]
24289: line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
24290: len += length(value) + length(field[++i])
24291: substed = 1
24292: } else
24293: len += 1 + keylen
24294: }
24295:
24296: print line
1.62 paf 24297: }
24298:
1.150 moko 24299: _ACAWK
24300: _ACEOF
24301: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24302: if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
24303: sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
24304: else
24305: cat
24306: fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
24307: || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
1.62 paf 24308: _ACEOF
1.1 paf 24309:
1.150 moko 24310: # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
24311: # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
24312: # trailing colons and then remove the whole line if VPATH becomes empty
24313: # (actually we leave an empty line to preserve line numbers).
24314: if test "x$srcdir" = x.; then
24315: ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
24316: h
24317: s///
24318: s/^/:/
24319: s/[ ]*$/:/
24320: s/:\$(srcdir):/:/g
24321: s/:\${srcdir}:/:/g
24322: s/:@srcdir@:/:/g
24323: s/^:*//
24324: s/:*$//
24325: x
24326: s/\(=[ ]*\).*/\1/
24327: G
24328: s/\n//
24329: s/^[^=]*=[ ]*$//
24330: }'
24331: fi
1.62 paf 24332:
1.150 moko 24333: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24334: fi # test -n "$CONFIG_FILES"
1.1 paf 24335:
1.150 moko 24336: # Set up the scripts for CONFIG_HEADERS section.
24337: # No need to generate them if there are no CONFIG_HEADERS.
1.237 moko 24338: # This happens for instance with './config.status Makefile'.
1.150 moko 24339: if test -n "$CONFIG_HEADERS"; then
24340: cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
24341: BEGIN {
24342: _ACEOF
24343:
1.237 moko 24344: # Transform confdefs.h into an awk script 'defines.awk', embedded as
1.150 moko 24345: # here-document in config.status, that substitutes the proper values into
24346: # config.h.in to produce config.h.
24347:
24348: # Create a delimiter string that does not exist in confdefs.h, to ease
24349: # handling of long lines.
24350: ac_delim='%!_!# '
24351: for ac_last_try in false false :; do
24352: ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
24353: if test -z "$ac_tt"; then
24354: break
24355: elif $ac_last_try; then
24356: as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
24357: else
24358: ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
1.1 paf 24359: fi
1.150 moko 24360: done
1.1 paf 24361:
1.150 moko 24362: # For the awk script, D is an array of macro values keyed by name,
24363: # likewise P contains macro parameters if any. Preserve backslash
24364: # newline sequences.
24365:
24366: ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
24367: sed -n '
24368: s/.\{148\}/&'"$ac_delim"'/g
24369: t rset
24370: :rset
24371: s/^[ ]*#[ ]*define[ ][ ]*/ /
24372: t def
24373: d
24374: :def
24375: s/\\$//
24376: t bsnl
24377: s/["\\]/\\&/g
24378: s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
24379: D["\1"]=" \3"/p
24380: s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
24381: d
24382: :bsnl
24383: s/["\\]/\\&/g
24384: s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
24385: D["\1"]=" \3\\\\\\n"\\/p
24386: t cont
24387: s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
24388: t cont
24389: d
24390: :cont
24391: n
24392: s/.\{148\}/&'"$ac_delim"'/g
24393: t clear
24394: :clear
24395: s/\\$//
24396: t bsnlc
24397: s/["\\]/\\&/g; s/^/"/; s/$/"/p
24398: d
24399: :bsnlc
24400: s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
24401: b cont
24402: ' <confdefs.h | sed '
24403: s/'"$ac_delim"'/"\\\
24404: "/g' >>$CONFIG_STATUS || ac_write_fail=1
24405:
24406: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24407: for (key in D) D_is_set[key] = 1
24408: FS = ""
24409: }
24410: /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
24411: line = \$ 0
24412: split(line, arg, " ")
24413: if (arg[1] == "#") {
24414: defundef = arg[2]
24415: mac1 = arg[3]
24416: } else {
24417: defundef = substr(arg[1], 2)
24418: mac1 = arg[2]
24419: }
24420: split(mac1, mac2, "(") #)
24421: macro = mac2[1]
24422: prefix = substr(line, 1, index(line, defundef) - 1)
24423: if (D_is_set[macro]) {
24424: # Preserve the white space surrounding the "#".
24425: print prefix "define", macro P[macro] D[macro]
24426: next
24427: } else {
24428: # Replace #undef with comments. This is necessary, for example,
24429: # in the case of _POSIX_SOURCE, which is predefined and required
24430: # on some systems where configure will not decide to define it.
24431: if (defundef == "undef") {
24432: print "/*", prefix defundef, macro, "*/"
24433: next
24434: }
24435: }
24436: }
24437: { print }
24438: _ACAWK
1.62 paf 24439: _ACEOF
1.150 moko 24440: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24441: as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
24442: fi # test -n "$CONFIG_HEADERS"
24443:
24444:
24445: eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
24446: shift
24447: for ac_tag
24448: do
24449: case $ac_tag in
24450: :[FHLC]) ac_mode=$ac_tag; continue;;
24451: esac
24452: case $ac_mode$ac_tag in
24453: :[FHL]*:*);;
1.237 moko 24454: :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;;
1.150 moko 24455: :[FH]-) ac_tag=-:-;;
24456: :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
24457: esac
24458: ac_save_IFS=$IFS
24459: IFS=:
24460: set x $ac_tag
24461: IFS=$ac_save_IFS
24462: shift
24463: ac_file=$1
24464: shift
24465:
24466: case $ac_mode in
24467: :L) ac_source=$1;;
24468: :[FH])
24469: ac_file_inputs=
24470: for ac_f
24471: do
24472: case $ac_f in
24473: -) ac_f="$ac_tmp/stdin";;
24474: *) # Look for the file first in the build tree, then in the source tree
24475: # (if the path is not absolute). The absolute path cannot be DOS-style,
1.237 moko 24476: # because $ac_f cannot contain ':'.
1.150 moko 24477: test -f "$ac_f" ||
24478: case $ac_f in
24479: [\\/$]*) false;;
24480: *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
24481: esac ||
1.237 moko 24482: as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;;
1.150 moko 24483: esac
1.237 moko 24484: case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
1.150 moko 24485: as_fn_append ac_file_inputs " '$ac_f'"
24486: done
24487:
1.237 moko 24488: # Let's still pretend it is 'configure' which instantiates (i.e., don't
1.150 moko 24489: # use $as_me), people would be surprised to read:
24490: # /* config.h. Generated by config.status. */
24491: configure_input='Generated from '`
1.237 moko 24492: printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
1.150 moko 24493: `' by configure.'
24494: if test x"$ac_file" != x-; then
24495: configure_input="$ac_file. $configure_input"
1.237 moko 24496: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
24497: printf "%s\n" "$as_me: creating $ac_file" >&6;}
1.150 moko 24498: fi
24499: # Neutralize special characters interpreted by sed in replacement strings.
24500: case $configure_input in #(
24501: *\&* | *\|* | *\\* )
1.237 moko 24502: ac_sed_conf_input=`printf "%s\n" "$configure_input" |
1.150 moko 24503: sed 's/[\\\\&|]/\\\\&/g'`;; #(
24504: *) ac_sed_conf_input=$configure_input;;
24505: esac
24506:
24507: case $ac_tag in
24508: *:-:* | *:-) cat >"$ac_tmp/stdin" \
24509: || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
24510: esac
24511: ;;
1.1 paf 24512: esac
24513:
1.150 moko 24514: ac_dir=`$as_dirname -- "$ac_file" ||
1.62 paf 24515: $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1.86 paf 24516: X"$ac_file" : 'X\(//\)[^/]' \| \
24517: X"$ac_file" : 'X\(//\)$' \| \
1.150 moko 24518: X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
1.237 moko 24519: printf "%s\n" X"$ac_file" |
1.150 moko 24520: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24521: s//\1/
24522: q
24523: }
24524: /^X\(\/\/\)[^/].*/{
24525: s//\1/
24526: q
24527: }
24528: /^X\(\/\/\)$/{
24529: s//\1/
24530: q
24531: }
24532: /^X\(\/\).*/{
24533: s//\1/
24534: q
24535: }
24536: s/.*/./; q'`
24537: as_dir="$ac_dir"; as_fn_mkdir_p
1.62 paf 24538: ac_builddir=.
24539:
1.150 moko 24540: case "$ac_dir" in
24541: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
24542: *)
1.237 moko 24543: ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1.150 moko 24544: # A ".." for each directory in $ac_dir_suffix.
1.237 moko 24545: ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1.150 moko 24546: case $ac_top_builddir_sub in
24547: "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
24548: *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
24549: esac ;;
24550: esac
24551: ac_abs_top_builddir=$ac_pwd
24552: ac_abs_builddir=$ac_pwd$ac_dir_suffix
24553: # for backward compatibility:
24554: ac_top_builddir=$ac_top_build_prefix
1.62 paf 24555:
24556: case $srcdir in
1.150 moko 24557: .) # We are building in place.
1.62 paf 24558: ac_srcdir=.
1.150 moko 24559: ac_top_srcdir=$ac_top_builddir_sub
24560: ac_abs_top_srcdir=$ac_pwd ;;
24561: [\\/]* | ?:[\\/]* ) # Absolute name.
1.62 paf 24562: ac_srcdir=$srcdir$ac_dir_suffix;
1.150 moko 24563: ac_top_srcdir=$srcdir
24564: ac_abs_top_srcdir=$srcdir ;;
24565: *) # Relative name.
24566: ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
24567: ac_top_srcdir=$ac_top_build_prefix$srcdir
24568: ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1.62 paf 24569: esac
1.150 moko 24570: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1.86 paf 24571:
1.62 paf 24572:
1.150 moko 24573: case $ac_mode in
24574: :F)
24575: #
24576: # CONFIG_FILE
24577: #
1.1 paf 24578:
1.62 paf 24579: case $INSTALL in
24580: [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
1.150 moko 24581: *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
1.1 paf 24582: esac
1.150 moko 24583: ac_MKDIR_P=$MKDIR_P
24584: case $MKDIR_P in
24585: [\\/$]* | ?:[\\/]* ) ;;
24586: */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
24587: esac
24588: _ACEOF
1.1 paf 24589:
1.150 moko 24590: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24591: # If the template does not know about datarootdir, expand it.
24592: # FIXME: This hack should be removed a few years after 2.60.
24593: ac_datarootdir_hack=; ac_datarootdir_seen=
24594: ac_sed_dataroot='
24595: /datarootdir/ {
24596: p
24597: q
24598: }
24599: /@datadir@/p
24600: /@docdir@/p
24601: /@infodir@/p
24602: /@localedir@/p
24603: /@mandir@/p'
24604: case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
24605: *datarootdir*) ac_datarootdir_seen=yes;;
24606: *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
1.237 moko 24607: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
24608: printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
1.150 moko 24609: _ACEOF
24610: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24611: ac_datarootdir_hack='
24612: s&@datadir@&$datadir&g
24613: s&@docdir@&$docdir&g
24614: s&@infodir@&$infodir&g
24615: s&@localedir@&$localedir&g
24616: s&@mandir@&$mandir&g
24617: s&\\\${datarootdir}&$datarootdir&g' ;;
24618: esac
24619: _ACEOF
1.62 paf 24620:
1.237 moko 24621: # Neutralize VPATH when '$srcdir' = '.'.
1.150 moko 24622: # Shell code in configure.ac might set extrasub.
24623: # FIXME: do we really want to maintain this feature?
24624: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24625: ac_sed_extra="$ac_vpsub
1.62 paf 24626: $extrasub
24627: _ACEOF
1.150 moko 24628: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1.62 paf 24629: :t
24630: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
1.150 moko 24631: s|@configure_input@|$ac_sed_conf_input|;t t
24632: s&@top_builddir@&$ac_top_builddir_sub&;t t
24633: s&@top_build_prefix@&$ac_top_build_prefix&;t t
24634: s&@srcdir@&$ac_srcdir&;t t
24635: s&@abs_srcdir@&$ac_abs_srcdir&;t t
24636: s&@top_srcdir@&$ac_top_srcdir&;t t
24637: s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
24638: s&@builddir@&$ac_builddir&;t t
24639: s&@abs_builddir@&$ac_abs_builddir&;t t
24640: s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
24641: s&@INSTALL@&$ac_INSTALL&;t t
24642: s&@MKDIR_P@&$ac_MKDIR_P&;t t
24643: $ac_datarootdir_hack
24644: "
24645: eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
24646: >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
24647:
24648: test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
24649: { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
24650: { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
24651: "$ac_tmp/out"`; test -z "$ac_out"; } &&
1.237 moko 24652: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir'
1.150 moko 24653: which seems to be undefined. Please make sure it is defined" >&5
1.237 moko 24654: printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir'
1.150 moko 24655: which seems to be undefined. Please make sure it is defined" >&2;}
1.1 paf 24656:
1.150 moko 24657: rm -f "$ac_tmp/stdin"
1.62 paf 24658: case $ac_file in
1.150 moko 24659: -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
24660: *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
24661: esac \
24662: || as_fn_error $? "could not create $ac_file" "$LINENO" 5
24663: ;;
24664: :H)
24665: #
24666: # CONFIG_HEADER
24667: #
1.62 paf 24668: if test x"$ac_file" != x-; then
1.150 moko 24669: {
1.237 moko 24670: printf "%s\n" "/* $configure_input */" >&1 \
1.150 moko 24671: && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
24672: } >"$ac_tmp/config.h" \
24673: || as_fn_error $? "could not create $ac_file" "$LINENO" 5
24674: if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
1.237 moko 24675: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
24676: printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
1.62 paf 24677: else
1.150 moko 24678: rm -f "$ac_file"
24679: mv "$ac_tmp/config.h" "$ac_file" \
24680: || as_fn_error $? "could not create $ac_file" "$LINENO" 5
1.62 paf 24681: fi
24682: else
1.237 moko 24683: printf "%s\n" "/* $configure_input */" >&1 \
1.150 moko 24684: && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
24685: || as_fn_error $? "could not create -" "$LINENO" 5
1.62 paf 24686: fi
1.150 moko 24687: # Compute "$ac_file"'s index in $config_headers.
24688: _am_arg="$ac_file"
1.86 paf 24689: _am_stamp_count=1
24690: for _am_header in $config_headers :; do
24691: case $_am_header in
1.150 moko 24692: $_am_arg | $_am_arg:* )
1.86 paf 24693: break ;;
24694: * )
24695: _am_stamp_count=`expr $_am_stamp_count + 1` ;;
24696: esac
24697: done
1.150 moko 24698: echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
24699: $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24700: X"$_am_arg" : 'X\(//\)[^/]' \| \
24701: X"$_am_arg" : 'X\(//\)$' \| \
24702: X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
1.237 moko 24703: printf "%s\n" X"$_am_arg" |
1.150 moko 24704: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24705: s//\1/
24706: q
24707: }
24708: /^X\(\/\/\)[^/].*/{
24709: s//\1/
24710: q
24711: }
24712: /^X\(\/\/\)$/{
24713: s//\1/
24714: q
24715: }
24716: /^X\(\/\).*/{
24717: s//\1/
24718: q
24719: }
24720: s/.*/./; q'`/stamp-h$_am_stamp_count
24721: ;;
1.62 paf 24722:
1.237 moko 24723: :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
24724: printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
1.150 moko 24725: ;;
24726: esac
1.86 paf 24727:
1.62 paf 24728:
1.150 moko 24729: case $ac_file$ac_mode in
24730: "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
1.187 moko 24731: # Older Autoconf quotes --file arguments for eval, but not when files
1.150 moko 24732: # are listed without --file. Let's play safe and only enable the eval
24733: # if we detect the quoting.
1.199 moko 24734: # TODO: see whether this extra hack can be removed once we start
24735: # requiring Autoconf 2.70 or later.
24736: case $CONFIG_FILES in #(
24737: *\'*) :
24738: eval set x "$CONFIG_FILES" ;; #(
24739: *) :
24740: set x $CONFIG_FILES ;; #(
24741: *) :
24742: ;;
24743: esac
1.150 moko 24744: shift
1.199 moko 24745: # Used to flag and report bootstrapping failures.
24746: am_rc=0
24747: for am_mf
1.150 moko 24748: do
24749: # Strip MF so we end up with the name of the file.
1.237 moko 24750: am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
1.199 moko 24751: # Check whether this is an Automake generated Makefile which includes
24752: # dependency-tracking related rules and includes.
24753: # Grep'ing the whole file directly is not great: AIX grep has a line
1.150 moko 24754: # limit of 2048, but all sed's we know have understand at least 4000.
1.199 moko 24755: sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
24756: || continue
24757: am_dirpart=`$as_dirname -- "$am_mf" ||
24758: $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24759: X"$am_mf" : 'X\(//\)[^/]' \| \
24760: X"$am_mf" : 'X\(//\)$' \| \
24761: X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
1.237 moko 24762: printf "%s\n" X"$am_mf" |
1.150 moko 24763: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24764: s//\1/
24765: q
24766: }
24767: /^X\(\/\/\)[^/].*/{
24768: s//\1/
24769: q
24770: }
24771: /^X\(\/\/\)$/{
24772: s//\1/
24773: q
24774: }
24775: /^X\(\/\).*/{
24776: s//\1/
24777: q
24778: }
24779: s/.*/./; q'`
1.199 moko 24780: am_filepart=`$as_basename -- "$am_mf" ||
24781: $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
24782: X"$am_mf" : 'X\(//\)$' \| \
24783: X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
1.237 moko 24784: printf "%s\n" X/"$am_mf" |
1.199 moko 24785: sed '/^.*\/\([^/][^/]*\)\/*$/{
1.150 moko 24786: s//\1/
24787: q
24788: }
1.199 moko 24789: /^X\/\(\/\/\)$/{
1.150 moko 24790: s//\1/
24791: q
24792: }
1.199 moko 24793: /^X\/\(\/\).*/{
1.150 moko 24794: s//\1/
24795: q
24796: }
24797: s/.*/./; q'`
1.199 moko 24798: { echo "$as_me:$LINENO: cd "$am_dirpart" \
24799: && sed -e '/# am--include-marker/d' "$am_filepart" \
24800: | $MAKE -f - am--depfiles" >&5
24801: (cd "$am_dirpart" \
24802: && sed -e '/# am--include-marker/d' "$am_filepart" \
24803: | $MAKE -f - am--depfiles) >&5 2>&5
24804: ac_status=$?
24805: echo "$as_me:$LINENO: \$? = $ac_status" >&5
24806: (exit $ac_status); } || am_rc=$?
1.62 paf 24807: done
1.199 moko 24808: if test $am_rc -ne 0; then
1.237 moko 24809: { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
24810: printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
1.199 moko 24811: as_fn_error $? "Something went wrong bootstrapping makefile fragments
1.216 moko 24812: for automatic dependency tracking. If GNU make was not used, consider
24813: re-running the configure script with MAKE=\"gmake\" (or whatever is
24814: necessary). You can also try re-running configure with the
1.199 moko 24815: '--disable-dependency-tracking' option to at least be able to build
24816: the package (albeit without support for automatic dependency tracking).
1.237 moko 24817: See 'config.log' for more details" "$LINENO" 5; }
1.199 moko 24818: fi
24819: { am_dirpart=; unset am_dirpart;}
24820: { am_filepart=; unset am_filepart;}
24821: { am_mf=; unset am_mf;}
24822: { am_rc=; unset am_rc;}
24823: rm -f conftest-deps.mk
1.150 moko 24824: }
1.62 paf 24825: ;;
1.150 moko 24826: "libtool":C)
1.128 moko 24827:
1.237 moko 24828: # See if we are running on zsh, and set the options that allow our
1.128 moko 24829: # commands through without removal of \ escapes.
1.237 moko 24830: if test -n "${ZSH_VERSION+set}"; then
1.128 moko 24831: setopt NO_GLOB_SUBST
24832: fi
24833:
1.237 moko 24834: cfgfile=${ofile}T
1.128 moko 24835: trap "$RM \"$cfgfile\"; exit 1" 1 2 15
24836: $RM "$cfgfile"
24837:
24838: cat <<_LT_EOF >> "$cfgfile"
24839: #! $SHELL
1.237 moko 24840: # Generated automatically by $as_me ($PACKAGE) $VERSION
24841: # NOTE: Changes made to this file will be lost: look at ltmain.sh.
24842:
24843: # Provide generalized library-building support services.
24844: # Written by Gordon Matzigkeit, 1996
1.128 moko 24845:
1.237 moko 24846: # Copyright (C) 2024 Free Software Foundation, Inc.
24847: # This is free software; see the source for copying conditions. There is NO
24848: # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
24849:
24850: # GNU Libtool is free software; you can redistribute it and/or modify
24851: # it under the terms of the GNU General Public License as published by
24852: # the Free Software Foundation; either version 2 of the License, or
24853: # (at your option) any later version.
1.128 moko 24854: #
1.237 moko 24855: # As a special exception to the GNU General Public License, if you
24856: # distribute this file as part of a program or library that is built
24857: # using GNU Libtool, you may include this file under the same
24858: # distribution terms that you use for the rest of that program.
1.128 moko 24859: #
1.237 moko 24860: # GNU Libtool is distributed in the hope that it will be useful, but
24861: # WITHOUT ANY WARRANTY; without even the implied warranty of
1.128 moko 24862: # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
24863: # GNU General Public License for more details.
24864: #
24865: # You should have received a copy of the GNU General Public License
1.237 moko 24866: # along with this program. If not, see <http://www.gnu.org/licenses/>.
1.128 moko 24867:
24868:
24869: # The names of the tagged configurations supported by this script.
1.237 moko 24870: available_tags='CXX '
24871:
24872: # Configured defaults for sys_lib_dlsearch_path munging.
24873: : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
1.128 moko 24874:
24875: # ### BEGIN LIBTOOL CONFIG
24876:
24877: # Which release of libtool.m4 was used?
24878: macro_version=$macro_version
24879: macro_revision=$macro_revision
24880:
24881: # Assembler program.
24882: AS=$lt_AS
24883:
24884: # DLL creation program.
24885: DLLTOOL=$lt_DLLTOOL
24886:
24887: # Object dumper program.
24888: OBJDUMP=$lt_OBJDUMP
24889:
1.145 moko 24890: # What type of objects to build.
24891: pic_mode=$pic_mode
24892:
1.128 moko 24893: # Whether or not to build shared libraries.
24894: build_libtool_libs=$enable_shared
24895:
1.138 moko 24896: # Whether or not to build static libraries.
24897: build_old_libs=$enable_static
24898:
1.128 moko 24899: # Whether or not to optimize for fast installation.
24900: fast_install=$enable_fast_install
24901:
1.237 moko 24902: # Shared archive member basename,for filename based shared library versioning on AIX.
24903: shared_archive_member_spec=$shared_archive_member_spec
24904:
1.128 moko 24905: # Shell to use when invoking shell scripts.
24906: SHELL=$lt_SHELL
24907:
24908: # An echo program that protects backslashes.
24909: ECHO=$lt_ECHO
24910:
24911: # The PATH separator for the build system.
24912: PATH_SEPARATOR=$lt_PATH_SEPARATOR
24913:
24914: # The host system.
24915: host_alias=$host_alias
24916: host=$host
24917: host_os=$host_os
24918:
24919: # The build system.
24920: build_alias=$build_alias
24921: build=$build
24922: build_os=$build_os
24923:
24924: # A sed program that does not truncate output.
24925: SED=$lt_SED
24926:
24927: # Sed that helps us avoid accidentally triggering echo(1) options like -n.
24928: Xsed="\$SED -e 1s/^X//"
24929:
24930: # A grep program that handles long lines.
24931: GREP=$lt_GREP
24932:
24933: # An ERE matcher.
24934: EGREP=$lt_EGREP
24935:
24936: # A literal string matcher.
24937: FGREP=$lt_FGREP
24938:
24939: # A BSD- or MS-compatible name lister.
24940: NM=$lt_NM
24941:
24942: # Whether we need soft or hard links.
24943: LN_S=$lt_LN_S
24944:
24945: # What is the maximum length of a command?
24946: max_cmd_len=$max_cmd_len
24947:
24948: # Object file suffix (normally "o").
24949: objext=$ac_objext
24950:
24951: # Executable file suffix (normally "").
24952: exeext=$exeext
24953:
24954: # whether the shell understands "unset".
24955: lt_unset=$lt_unset
24956:
24957: # turn spaces into newlines.
24958: SP2NL=$lt_lt_SP2NL
24959:
24960: # turn newlines into spaces.
24961: NL2SP=$lt_lt_NL2SP
24962:
24963: # convert \$build file names to \$host format.
24964: to_host_file_cmd=$lt_cv_to_host_file_cmd
24965:
24966: # convert \$build files to toolchain format.
24967: to_tool_file_cmd=$lt_cv_to_tool_file_cmd
24968:
1.237 moko 24969: # A file(cmd) program that detects file types.
24970: FILECMD=$lt_FILECMD
24971:
1.128 moko 24972: # Method to check whether dependent libraries are shared objects.
24973: deplibs_check_method=$lt_deplibs_check_method
24974:
24975: # Command to use when deplibs_check_method = "file_magic".
24976: file_magic_cmd=$lt_file_magic_cmd
24977:
24978: # How to find potential files when deplibs_check_method = "file_magic".
24979: file_magic_glob=$lt_file_magic_glob
24980:
24981: # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
24982: want_nocaseglob=$lt_want_nocaseglob
24983:
24984: # Command to associate shared and link libraries.
24985: sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
24986:
24987: # The archiver.
24988: AR=$lt_AR
24989:
1.237 moko 24990: # Flags to create an archive (by configure).
24991: lt_ar_flags=$lt_ar_flags
24992:
1.128 moko 24993: # Flags to create an archive.
1.237 moko 24994: AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
1.128 moko 24995:
24996: # How to feed a file listing to the archiver.
24997: archiver_list_spec=$lt_archiver_list_spec
24998:
24999: # A symbol stripping program.
25000: STRIP=$lt_STRIP
25001:
25002: # Commands used to install an old-style archive.
25003: RANLIB=$lt_RANLIB
25004: old_postinstall_cmds=$lt_old_postinstall_cmds
25005: old_postuninstall_cmds=$lt_old_postuninstall_cmds
25006:
25007: # Whether to use a lock for old archive extraction.
25008: lock_old_archive_extraction=$lock_old_archive_extraction
25009:
25010: # A C compiler.
25011: LTCC=$lt_CC
25012:
25013: # LTCC compiler flags.
25014: LTCFLAGS=$lt_CFLAGS
25015:
25016: # Take the output of nm and produce a listing of raw symbols and C names.
25017: global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
25018:
25019: # Transform the output of nm in a proper C declaration.
25020: global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
25021:
1.237 moko 25022: # Transform the output of nm into a list of symbols to manually relocate.
25023: global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
25024:
1.128 moko 25025: # Transform the output of nm in a C name address pair.
25026: global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
25027:
25028: # Transform the output of nm in a C name address pair when lib prefix is needed.
25029: global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
25030:
1.237 moko 25031: # The name lister interface.
25032: nm_interface=$lt_lt_cv_nm_interface
25033:
1.128 moko 25034: # Specify filename containing input files for \$NM.
25035: nm_file_list_spec=$lt_nm_file_list_spec
25036:
1.237 moko 25037: # The root where to search for dependent libraries,and where our libraries should be installed.
1.128 moko 25038: lt_sysroot=$lt_sysroot
25039:
1.237 moko 25040: # Command to truncate a binary pipe.
25041: lt_truncate_bin=$lt_lt_cv_truncate_bin
25042:
1.128 moko 25043: # The name of the directory that contains temporary libtool files.
25044: objdir=$objdir
25045:
25046: # Used to examine libraries when file_magic_cmd begins with "file".
25047: MAGIC_CMD=$MAGIC_CMD
25048:
25049: # Must we lock files when doing compilation?
25050: need_locks=$lt_need_locks
25051:
25052: # Manifest tool.
25053: MANIFEST_TOOL=$lt_MANIFEST_TOOL
25054:
25055: # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
25056: DSYMUTIL=$lt_DSYMUTIL
25057:
25058: # Tool to change global to local symbols on Mac OS X.
25059: NMEDIT=$lt_NMEDIT
25060:
25061: # Tool to manipulate fat objects and archives on Mac OS X.
25062: LIPO=$lt_LIPO
25063:
25064: # ldd/readelf like tool for Mach-O binaries on Mac OS X.
25065: OTOOL=$lt_OTOOL
25066:
25067: # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
25068: OTOOL64=$lt_OTOOL64
25069:
25070: # Old archive suffix (normally "a").
25071: libext=$libext
25072:
25073: # Shared library suffix (normally ".so").
25074: shrext_cmds=$lt_shrext_cmds
25075:
25076: # The commands to extract the exported symbol list from a shared archive.
25077: extract_expsyms_cmds=$lt_extract_expsyms_cmds
25078:
25079: # Variables whose values should be saved in libtool wrapper scripts and
25080: # restored at link time.
25081: variables_saved_for_relink=$lt_variables_saved_for_relink
25082:
25083: # Do we need the "lib" prefix for modules?
25084: need_lib_prefix=$need_lib_prefix
25085:
25086: # Do we need a version for libraries?
25087: need_version=$need_version
25088:
25089: # Library versioning type.
25090: version_type=$version_type
25091:
25092: # Shared library runtime path variable.
25093: runpath_var=$runpath_var
25094:
25095: # Shared library path variable.
25096: shlibpath_var=$shlibpath_var
25097:
25098: # Is shlibpath searched before the hard-coded library search path?
25099: shlibpath_overrides_runpath=$shlibpath_overrides_runpath
25100:
25101: # Format of library name prefix.
25102: libname_spec=$lt_libname_spec
25103:
25104: # List of archive names. First name is the real one, the rest are links.
25105: # The last name is the one that the linker finds with -lNAME
25106: library_names_spec=$lt_library_names_spec
25107:
25108: # The coded name of the library, if different from the real name.
25109: soname_spec=$lt_soname_spec
25110:
25111: # Permission mode override for installation of shared libraries.
25112: install_override_mode=$lt_install_override_mode
25113:
25114: # Command to use after installation of a shared archive.
25115: postinstall_cmds=$lt_postinstall_cmds
25116:
25117: # Command to use after uninstallation of a shared archive.
25118: postuninstall_cmds=$lt_postuninstall_cmds
25119:
25120: # Commands used to finish a libtool library installation in a directory.
25121: finish_cmds=$lt_finish_cmds
25122:
25123: # As "finish_cmds", except a single script fragment to be evaled but
25124: # not shown.
25125: finish_eval=$lt_finish_eval
25126:
25127: # Whether we should hardcode library paths into libraries.
25128: hardcode_into_libs=$hardcode_into_libs
25129:
25130: # Compile-time system search path for libraries.
25131: sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
25132:
1.237 moko 25133: # Detected run-time system search path for libraries.
25134: sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
25135:
25136: # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
25137: configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
1.128 moko 25138:
25139: # Whether dlopen is supported.
25140: dlopen_support=$enable_dlopen
25141:
25142: # Whether dlopen of programs is supported.
25143: dlopen_self=$enable_dlopen_self
25144:
25145: # Whether dlopen of statically linked programs is supported.
25146: dlopen_self_static=$enable_dlopen_self_static
25147:
25148: # Commands to strip libraries.
25149: old_striplib=$lt_old_striplib
25150: striplib=$lt_striplib
25151:
25152:
25153: # The linker used to build libraries.
25154: LD=$lt_LD
25155:
25156: # How to create reloadable object files.
25157: reload_flag=$lt_reload_flag
25158: reload_cmds=$lt_reload_cmds
25159:
25160: # Commands used to build an old-style archive.
25161: old_archive_cmds=$lt_old_archive_cmds
25162:
25163: # A language specific compiler.
25164: CC=$lt_compiler
25165:
25166: # Is the compiler the GNU compiler?
25167: with_gcc=$GCC
25168:
25169: # Compiler flag to turn off builtin functions.
25170: no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
25171:
25172: # Additional compiler flags for building library objects.
25173: pic_flag=$lt_lt_prog_compiler_pic
25174:
25175: # How to pass a linker flag through the compiler.
25176: wl=$lt_lt_prog_compiler_wl
25177:
25178: # Compiler flag to prevent dynamic linking.
25179: link_static_flag=$lt_lt_prog_compiler_static
25180:
25181: # Does compiler simultaneously support -c and -o options?
25182: compiler_c_o=$lt_lt_cv_prog_compiler_c_o
25183:
25184: # Whether or not to add -lc for building shared libraries.
25185: build_libtool_need_lc=$archive_cmds_need_lc
25186:
25187: # Whether or not to disallow shared libs when runtime libs are static.
25188: allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
25189:
25190: # Compiler flag to allow reflexive dlopens.
25191: export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
25192:
25193: # Compiler flag to generate shared objects directly from archives.
25194: whole_archive_flag_spec=$lt_whole_archive_flag_spec
25195:
25196: # Whether the compiler copes with passing no objects directly.
25197: compiler_needs_object=$lt_compiler_needs_object
25198:
25199: # Create an old-style archive from a shared archive.
25200: old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
25201:
25202: # Create a temporary old-style archive to link instead of a shared archive.
25203: old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
25204:
25205: # Commands used to build a shared archive.
25206: archive_cmds=$lt_archive_cmds
25207: archive_expsym_cmds=$lt_archive_expsym_cmds
25208:
25209: # Commands used to build a loadable module if different from building
25210: # a shared archive.
25211: module_cmds=$lt_module_cmds
25212: module_expsym_cmds=$lt_module_expsym_cmds
25213:
25214: # Whether we are building with GNU ld or not.
25215: with_gnu_ld=$lt_with_gnu_ld
25216:
25217: # Flag that allows shared libraries with undefined symbols to be built.
25218: allow_undefined_flag=$lt_allow_undefined_flag
25219:
25220: # Flag that enforces no undefined symbols.
25221: no_undefined_flag=$lt_no_undefined_flag
25222:
25223: # Flag to hardcode \$libdir into a binary during linking.
25224: # This must work even if \$libdir does not exist
25225: hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
25226:
25227: # Whether we need a single "-rpath" flag with a separated argument.
25228: hardcode_libdir_separator=$lt_hardcode_libdir_separator
25229:
1.237 moko 25230: # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
1.128 moko 25231: # DIR into the resulting binary.
25232: hardcode_direct=$hardcode_direct
25233:
1.237 moko 25234: # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
1.128 moko 25235: # DIR into the resulting binary and the resulting library dependency is
1.237 moko 25236: # "absolute",i.e. impossible to change by setting \$shlibpath_var if the
1.128 moko 25237: # library is relocated.
25238: hardcode_direct_absolute=$hardcode_direct_absolute
25239:
25240: # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
25241: # into the resulting binary.
25242: hardcode_minus_L=$hardcode_minus_L
25243:
25244: # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
25245: # into the resulting binary.
25246: hardcode_shlibpath_var=$hardcode_shlibpath_var
25247:
25248: # Set to "yes" if building a shared library automatically hardcodes DIR
25249: # into the library and all subsequent libraries and executables linked
25250: # against it.
25251: hardcode_automatic=$hardcode_automatic
25252:
25253: # Set to yes if linker adds runtime paths of dependent libraries
25254: # to runtime path list.
25255: inherit_rpath=$inherit_rpath
25256:
25257: # Whether libtool must link a program against all its dependency libraries.
25258: link_all_deplibs=$link_all_deplibs
25259:
25260: # Set to "yes" if exported symbols are required.
25261: always_export_symbols=$always_export_symbols
25262:
25263: # The commands to list exported symbols.
25264: export_symbols_cmds=$lt_export_symbols_cmds
25265:
25266: # Symbols that should not be listed in the preloaded symbols.
25267: exclude_expsyms=$lt_exclude_expsyms
25268:
25269: # Symbols that must always be exported.
25270: include_expsyms=$lt_include_expsyms
25271:
25272: # Commands necessary for linking programs (against libraries) with templates.
25273: prelink_cmds=$lt_prelink_cmds
25274:
25275: # Commands necessary for finishing linking programs.
25276: postlink_cmds=$lt_postlink_cmds
25277:
25278: # Specify filename containing input files.
25279: file_list_spec=$lt_file_list_spec
25280:
25281: # How to hardcode a shared library path into an executable.
25282: hardcode_action=$hardcode_action
25283:
25284: # The directories searched by this compiler when creating a shared library.
25285: compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
25286:
25287: # Dependencies to place before and after the objects being linked to
25288: # create a shared library.
25289: predep_objects=$lt_predep_objects
25290: postdep_objects=$lt_postdep_objects
25291: predeps=$lt_predeps
25292: postdeps=$lt_postdeps
25293:
25294: # The library search path used internally by the compiler when linking
25295: # a shared library.
25296: compiler_lib_search_path=$lt_compiler_lib_search_path
25297:
25298: # ### END LIBTOOL CONFIG
25299:
25300: _LT_EOF
25301:
1.237 moko 25302: cat <<'_LT_EOF' >> "$cfgfile"
25303:
25304: # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
25305:
25306: # func_munge_path_list VARIABLE PATH
25307: # -----------------------------------
25308: # VARIABLE is name of variable containing _space_ separated list of
25309: # directories to be munged by the contents of PATH, which is string
25310: # having a format:
25311: # "DIR[:DIR]:"
25312: # string "DIR[ DIR]" will be prepended to VARIABLE
25313: # ":DIR[:DIR]"
25314: # string "DIR[ DIR]" will be appended to VARIABLE
25315: # "DIRP[:DIRP]::[DIRA:]DIRA"
25316: # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
25317: # "DIRA[ DIRA]" will be appended to VARIABLE
25318: # "DIR[:DIR]"
25319: # VARIABLE will be replaced by "DIR[ DIR]"
25320: func_munge_path_list ()
25321: {
25322: case x$2 in
25323: x)
25324: ;;
25325: *:)
25326: eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
25327: ;;
25328: x:*)
25329: eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
25330: ;;
25331: *::*)
25332: eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
25333: eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
25334: ;;
25335: *)
25336: eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
25337: ;;
25338: esac
25339: }
25340:
25341:
25342: # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
25343: func_cc_basename ()
25344: {
25345: for cc_temp in $*""; do
25346: case $cc_temp in
25347: compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
25348: distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
25349: \-*) ;;
25350: *) break;;
25351: esac
25352: done
25353: func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
25354: }
25355:
25356:
25357: # ### END FUNCTIONS SHARED WITH CONFIGURE
25358:
25359: _LT_EOF
25360:
1.128 moko 25361: case $host_os in
25362: aix3*)
25363: cat <<\_LT_EOF >> "$cfgfile"
25364: # AIX sometimes has problems with the GCC collect2 program. For some
25365: # reason, if we set the COLLECT_NAMES environment variable, the problems
25366: # vanish in a puff of smoke.
1.237 moko 25367: if test set != "${COLLECT_NAMES+set}"; then
1.128 moko 25368: COLLECT_NAMES=
25369: export COLLECT_NAMES
25370: fi
25371: _LT_EOF
25372: ;;
25373: esac
25374:
25375:
1.237 moko 25376:
25377: ltmain=$ac_aux_dir/ltmain.sh
1.128 moko 25378:
25379:
25380: # We use sed instead of cat because bash on DJGPP gets confused if
25381: # if finds mixed CR/LF and LF-only lines. Since sed operates in
25382: # text mode, it properly converts lines to CR/LF. This bash problem
25383: # is reportedly fixed, but why not run on old versions too?
1.237 moko 25384: $SED '$q' "$ltmain" >> "$cfgfile" \
1.128 moko 25385: || (rm -f "$cfgfile"; exit 1)
25386:
25387: mv -f "$cfgfile" "$ofile" ||
25388: (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
25389: chmod +x "$ofile"
25390:
25391:
25392: cat <<_LT_EOF >> "$ofile"
25393:
25394: # ### BEGIN LIBTOOL TAG CONFIG: CXX
25395:
25396: # The linker used to build libraries.
25397: LD=$lt_LD_CXX
25398:
25399: # How to create reloadable object files.
25400: reload_flag=$lt_reload_flag_CXX
25401: reload_cmds=$lt_reload_cmds_CXX
25402:
25403: # Commands used to build an old-style archive.
25404: old_archive_cmds=$lt_old_archive_cmds_CXX
25405:
25406: # A language specific compiler.
25407: CC=$lt_compiler_CXX
25408:
25409: # Is the compiler the GNU compiler?
25410: with_gcc=$GCC_CXX
25411:
25412: # Compiler flag to turn off builtin functions.
25413: no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
25414:
25415: # Additional compiler flags for building library objects.
25416: pic_flag=$lt_lt_prog_compiler_pic_CXX
25417:
25418: # How to pass a linker flag through the compiler.
25419: wl=$lt_lt_prog_compiler_wl_CXX
25420:
25421: # Compiler flag to prevent dynamic linking.
25422: link_static_flag=$lt_lt_prog_compiler_static_CXX
25423:
25424: # Does compiler simultaneously support -c and -o options?
25425: compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
25426:
25427: # Whether or not to add -lc for building shared libraries.
25428: build_libtool_need_lc=$archive_cmds_need_lc_CXX
25429:
25430: # Whether or not to disallow shared libs when runtime libs are static.
25431: allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
25432:
25433: # Compiler flag to allow reflexive dlopens.
25434: export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
25435:
25436: # Compiler flag to generate shared objects directly from archives.
25437: whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
25438:
25439: # Whether the compiler copes with passing no objects directly.
25440: compiler_needs_object=$lt_compiler_needs_object_CXX
25441:
25442: # Create an old-style archive from a shared archive.
25443: old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
25444:
25445: # Create a temporary old-style archive to link instead of a shared archive.
25446: old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
25447:
25448: # Commands used to build a shared archive.
25449: archive_cmds=$lt_archive_cmds_CXX
25450: archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
25451:
25452: # Commands used to build a loadable module if different from building
25453: # a shared archive.
25454: module_cmds=$lt_module_cmds_CXX
25455: module_expsym_cmds=$lt_module_expsym_cmds_CXX
25456:
25457: # Whether we are building with GNU ld or not.
25458: with_gnu_ld=$lt_with_gnu_ld_CXX
25459:
25460: # Flag that allows shared libraries with undefined symbols to be built.
25461: allow_undefined_flag=$lt_allow_undefined_flag_CXX
25462:
25463: # Flag that enforces no undefined symbols.
25464: no_undefined_flag=$lt_no_undefined_flag_CXX
25465:
25466: # Flag to hardcode \$libdir into a binary during linking.
25467: # This must work even if \$libdir does not exist
25468: hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
25469:
25470: # Whether we need a single "-rpath" flag with a separated argument.
25471: hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
25472:
1.237 moko 25473: # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
1.128 moko 25474: # DIR into the resulting binary.
25475: hardcode_direct=$hardcode_direct_CXX
25476:
1.237 moko 25477: # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
1.128 moko 25478: # DIR into the resulting binary and the resulting library dependency is
1.237 moko 25479: # "absolute",i.e. impossible to change by setting \$shlibpath_var if the
1.128 moko 25480: # library is relocated.
25481: hardcode_direct_absolute=$hardcode_direct_absolute_CXX
25482:
25483: # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
25484: # into the resulting binary.
25485: hardcode_minus_L=$hardcode_minus_L_CXX
25486:
25487: # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
25488: # into the resulting binary.
25489: hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
25490:
25491: # Set to "yes" if building a shared library automatically hardcodes DIR
25492: # into the library and all subsequent libraries and executables linked
25493: # against it.
25494: hardcode_automatic=$hardcode_automatic_CXX
25495:
25496: # Set to yes if linker adds runtime paths of dependent libraries
25497: # to runtime path list.
25498: inherit_rpath=$inherit_rpath_CXX
25499:
25500: # Whether libtool must link a program against all its dependency libraries.
25501: link_all_deplibs=$link_all_deplibs_CXX
25502:
25503: # Set to "yes" if exported symbols are required.
25504: always_export_symbols=$always_export_symbols_CXX
25505:
25506: # The commands to list exported symbols.
25507: export_symbols_cmds=$lt_export_symbols_cmds_CXX
25508:
25509: # Symbols that should not be listed in the preloaded symbols.
25510: exclude_expsyms=$lt_exclude_expsyms_CXX
25511:
25512: # Symbols that must always be exported.
25513: include_expsyms=$lt_include_expsyms_CXX
25514:
25515: # Commands necessary for linking programs (against libraries) with templates.
25516: prelink_cmds=$lt_prelink_cmds_CXX
25517:
25518: # Commands necessary for finishing linking programs.
25519: postlink_cmds=$lt_postlink_cmds_CXX
25520:
25521: # Specify filename containing input files.
25522: file_list_spec=$lt_file_list_spec_CXX
25523:
25524: # How to hardcode a shared library path into an executable.
25525: hardcode_action=$hardcode_action_CXX
25526:
25527: # The directories searched by this compiler when creating a shared library.
25528: compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
25529:
25530: # Dependencies to place before and after the objects being linked to
25531: # create a shared library.
25532: predep_objects=$lt_predep_objects_CXX
25533: postdep_objects=$lt_postdep_objects_CXX
25534: predeps=$lt_predeps_CXX
25535: postdeps=$lt_postdeps_CXX
25536:
25537: # The library search path used internally by the compiler when linking
25538: # a shared library.
25539: compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
25540:
25541: # ### END LIBTOOL TAG CONFIG: CXX
25542: _LT_EOF
25543:
25544: ;;
1.150 moko 25545:
1.62 paf 25546: esac
1.150 moko 25547: done # for ac_tag
1.62 paf 25548:
25549:
1.150 moko 25550: as_fn_exit 0
1.62 paf 25551: _ACEOF
25552: ac_clean_files=$ac_clean_files_save
25553:
1.150 moko 25554: test $ac_write_fail = 0 ||
25555: as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
25556:
1.1 paf 25557:
1.62 paf 25558: # configure is writing to config.log, and then calls config.status.
25559: # config.status does its own redirection, appending to config.log.
25560: # Unfortunately, on DOS this fails, as config.log is still kept open
25561: # by configure, so config.status won't be able to write to it; its
25562: # output is simply discarded. So we exec the FD to /dev/null,
25563: # effectively closing config.log, so it can be properly (re)opened and
25564: # appended to by config.status. When coming back to configure, we
25565: # need to make the FD available again.
25566: if test "$no_create" != yes; then
25567: ac_cs_success=:
25568: ac_config_status_args=
25569: test "$silent" = yes &&
25570: ac_config_status_args="$ac_config_status_args --quiet"
25571: exec 5>/dev/null
25572: $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25573: exec 5>>config.log
25574: # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25575: # would make configure fail if this is the last instruction.
1.150 moko 25576: $ac_cs_success || as_fn_exit 1
1.62 paf 25577: fi
25578:
25579: #
25580: # CONFIG_SUBDIRS section.
25581: #
1.1 paf 25582: if test "$no_recursion" != yes; then
25583:
1.150 moko 25584: # Remove --cache-file, --srcdir, and --disable-option-checking arguments
25585: # so they do not pile up.
1.1 paf 25586: ac_sub_configure_args=
25587: ac_prev=
1.150 moko 25588: eval "set x $ac_configure_args"
25589: shift
25590: for ac_arg
25591: do
1.1 paf 25592: if test -n "$ac_prev"; then
25593: ac_prev=
25594: continue
25595: fi
1.62 paf 25596: case $ac_arg in
1.1 paf 25597: -cache-file | --cache-file | --cache-fil | --cache-fi \
25598: | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
25599: ac_prev=cache_file ;;
25600: -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1.62 paf 25601: | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
25602: | --c=*)
25603: ;;
25604: --config-cache | -C)
1.1 paf 25605: ;;
25606: -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
25607: ac_prev=srcdir ;;
25608: -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
25609: ;;
1.62 paf 25610: -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
25611: ac_prev=prefix ;;
25612: -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
25613: ;;
1.150 moko 25614: --disable-option-checking)
25615: ;;
25616: *)
25617: case $ac_arg in
1.237 moko 25618: *\'*) ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1.150 moko 25619: esac
25620: as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
1.1 paf 25621: esac
25622: done
25623:
1.62 paf 25624: # Always prepend --prefix to ensure using the same prefix
25625: # in subdir configurations.
1.150 moko 25626: ac_arg="--prefix=$prefix"
25627: case $ac_arg in
1.237 moko 25628: *\'*) ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1.150 moko 25629: esac
25630: ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
25631:
25632: # Pass --silent
25633: if test "$silent" = yes; then
25634: ac_sub_configure_args="--silent $ac_sub_configure_args"
25635: fi
25636:
25637: # Always prepend --disable-option-checking to silence warnings, since
25638: # different subdirs can have different --enable and --with options.
25639: ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
1.62 paf 25640:
25641: ac_popdir=`pwd`
25642: for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
1.1 paf 25643:
25644: # Do not complain, so a configure script can configure whichever
25645: # parts of a large source tree are present.
1.150 moko 25646: test -d "$srcdir/$ac_dir" || continue
1.62 paf 25647:
1.150 moko 25648: ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
1.237 moko 25649: printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
25650: printf "%s\n" "$ac_msg" >&6
1.150 moko 25651: as_dir="$ac_dir"; as_fn_mkdir_p
1.62 paf 25652: ac_builddir=.
25653:
1.150 moko 25654: case "$ac_dir" in
25655: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
25656: *)
1.237 moko 25657: ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1.150 moko 25658: # A ".." for each directory in $ac_dir_suffix.
1.237 moko 25659: ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1.150 moko 25660: case $ac_top_builddir_sub in
25661: "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
25662: *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
25663: esac ;;
25664: esac
25665: ac_abs_top_builddir=$ac_pwd
25666: ac_abs_builddir=$ac_pwd$ac_dir_suffix
25667: # for backward compatibility:
25668: ac_top_builddir=$ac_top_build_prefix
1.62 paf 25669:
25670: case $srcdir in
1.150 moko 25671: .) # We are building in place.
1.62 paf 25672: ac_srcdir=.
1.150 moko 25673: ac_top_srcdir=$ac_top_builddir_sub
25674: ac_abs_top_srcdir=$ac_pwd ;;
25675: [\\/]* | ?:[\\/]* ) # Absolute name.
1.62 paf 25676: ac_srcdir=$srcdir$ac_dir_suffix;
1.150 moko 25677: ac_top_srcdir=$srcdir
25678: ac_abs_top_srcdir=$srcdir ;;
25679: *) # Relative name.
25680: ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
25681: ac_top_srcdir=$ac_top_build_prefix$srcdir
25682: ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1.86 paf 25683: esac
1.150 moko 25684: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1.1 paf 25685:
25686:
1.150 moko 25687: cd "$ac_dir"
1.1 paf 25688:
1.237 moko 25689: # Check for configure.gnu first; this name is used for a wrapper for
25690: # Metaconfig's "Configure" on case-insensitive file systems.
1.150 moko 25691: if test -f "$ac_srcdir/configure.gnu"; then
25692: ac_sub_configure=$ac_srcdir/configure.gnu
25693: elif test -f "$ac_srcdir/configure"; then
25694: ac_sub_configure=$ac_srcdir/configure
1.1 paf 25695: else
1.237 moko 25696: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
25697: printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
1.1 paf 25698: ac_sub_configure=
25699: fi
25700:
25701: # The recursion is here.
25702: if test -n "$ac_sub_configure"; then
25703: # Make the cache file name correct relative to the subdirectory.
1.62 paf 25704: case $cache_file in
25705: [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
1.150 moko 25706: *) # Relative name.
25707: ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
1.1 paf 25708: esac
25709:
1.237 moko 25710: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
25711: printf "%s\n" "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
1.1 paf 25712: # The eval makes quoting arguments work.
1.150 moko 25713: eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
25714: --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
25715: as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
1.1 paf 25716: fi
25717:
1.150 moko 25718: cd "$ac_popdir"
1.1 paf 25719: done
25720: fi
1.150 moko 25721: if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
1.237 moko 25722: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
25723: printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
1.150 moko 25724: fi
1.1 paf 25725:
1.237 moko 25726:
E-mail: