~ubuntu-branches/ubuntu/jaunty/gnome-common/jaunty

« back to all changes in this revision

Viewing changes to configure

  • Committer: Bazaar Package Importer
  • Author(s): Jordi Mallach
  • Date: 2004-11-14 01:01:18 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20041114010118-cm3q525sf2y56kdh
Tags: 2.8.0-3
debian/patches/01_autogen_copy_files.patch: use --force only
if $REQUIRED_AUTOMAKE_VERSION != 1.4 (closes: #281063).

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#! /bin/sh
2
2
# Guess values for system-dependent variables and create Makefiles.
3
 
# Generated by Autoconf 2.52.
4
 
#
5
 
# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
6
 
# Free Software Foundation, Inc.
 
3
# Generated by GNU Autoconf 2.59 for gnome-common 2.8.0.
 
4
#
 
5
# Report bugs to <http://bugzilla.gnome.org/enter_bug.cgi?product=gnome-common>.
 
6
#
 
7
# Copyright (C) 2003 Free Software Foundation, Inc.
7
8
# This configure script is free software; the Free Software Foundation
8
9
# gives unlimited permission to copy, distribute and modify it.
9
 
 
10
 
# Find the correct PATH separator.  Usually this is `:', but
11
 
# DJGPP uses `;' like DOS.
12
 
if test "X${PATH_SEPARATOR+set}" != Xset; then
13
 
  UNAME=${UNAME-`uname 2>/dev/null`}
14
 
  case X$UNAME in
15
 
    *-DOS) lt_cv_sys_path_separator=';' ;;
16
 
    *)     lt_cv_sys_path_separator=':' ;;
17
 
  esac
18
 
fi
19
 
 
20
 
# Check that we are running under the correct shell.
21
 
SHELL=${CONFIG_SHELL-/bin/sh}
22
 
 
23
 
case X$ECHO in
24
 
X*--fallback-echo)
25
 
  # Remove one level of quotation (which was required for Make).
26
 
  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
27
 
  ;;
28
 
esac
29
 
 
30
 
echo=${ECHO-echo}
31
 
if test "X$1" = X--no-reexec; then
32
 
  # Discard the --no-reexec flag, and continue.
33
 
  shift
34
 
elif test "X$1" = X--fallback-echo; then
35
 
  # Avoid inline document here, it may be left over
36
 
  :
37
 
elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
38
 
  # Yippee, $echo works!
39
 
  :
40
 
else
41
 
  # Restart under the correct shell.
42
 
  exec $SHELL "$0" --no-reexec ${1+"$@"}
43
 
fi
44
 
 
45
 
if test "X$1" = X--fallback-echo; then
46
 
  # used as fallback echo
47
 
  shift
48
 
  cat <<EOF
49
 
 
50
 
EOF
51
 
  exit 0
52
 
fi
53
 
 
54
 
# The HP-UX ksh and POSIX shell print the target directory to stdout
55
 
# if CDPATH is set.
56
 
if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
57
 
 
58
 
if test -z "$ECHO"; then
59
 
if test "X${echo_test_string+set}" != Xset; then
60
 
# find a string as large as possible, as long as the shell can cope with it
61
 
  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
62
 
    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
63
 
    if (echo_test_string="`eval $cmd`") 2>/dev/null &&
64
 
       echo_test_string="`eval $cmd`" &&
65
 
       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
66
 
    then
67
 
      break
68
 
    fi
69
 
  done
70
 
fi
71
 
 
72
 
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
73
 
   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
74
 
   test "X$echo_testing_string" = "X$echo_test_string"; then
75
 
  :
76
 
else
77
 
  # The Solaris, AIX, and Digital Unix default echo programs unquote
78
 
  # backslashes.  This makes it impossible to quote backslashes using
79
 
  #   echo "$something" | sed 's/\\/\\\\/g'
80
 
  #
81
 
  # So, first we look for a working echo in the user's PATH.
82
 
 
83
 
  IFS="${IFS=   }"; save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR}"
84
 
  for dir in $PATH /usr/ucb; do
85
 
    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
86
 
       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
87
 
       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
88
 
       test "X$echo_testing_string" = "X$echo_test_string"; then
89
 
      echo="$dir/echo"
90
 
      break
91
 
    fi
92
 
  done
93
 
  IFS="$save_ifs"
94
 
 
95
 
  if test "X$echo" = Xecho; then
96
 
    # We didn't find a better echo, so look for alternatives.
97
 
    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
98
 
       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
99
 
       test "X$echo_testing_string" = "X$echo_test_string"; then
100
 
      # This shell has a builtin print -r that does the trick.
101
 
      echo='print -r'
102
 
    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
103
 
         test "X$CONFIG_SHELL" != X/bin/ksh; then
104
 
      # If we have ksh, try running configure again with it.
105
 
      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
106
 
      export ORIGINAL_CONFIG_SHELL
107
 
      CONFIG_SHELL=/bin/ksh
108
 
      export CONFIG_SHELL
109
 
      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
110
 
    else
111
 
      # Try using printf.
112
 
      echo='printf %s\n'
113
 
      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
114
 
         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
115
 
         test "X$echo_testing_string" = "X$echo_test_string"; then
116
 
        # Cool, printf works
117
 
        :
118
 
      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
119
 
           test "X$echo_testing_string" = 'X\t' &&
120
 
           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
121
 
           test "X$echo_testing_string" = "X$echo_test_string"; then
122
 
        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
123
 
        export CONFIG_SHELL
124
 
        SHELL="$CONFIG_SHELL"
125
 
        export SHELL
126
 
        echo="$CONFIG_SHELL $0 --fallback-echo"
127
 
      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
128
 
           test "X$echo_testing_string" = 'X\t' &&
129
 
           echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
130
 
           test "X$echo_testing_string" = "X$echo_test_string"; then
131
 
        echo="$CONFIG_SHELL $0 --fallback-echo"
132
 
      else
133
 
        # maybe with a smaller string...
134
 
        prev=:
135
 
 
136
 
        for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
137
 
          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
138
 
          then
139
 
            break
140
 
          fi
141
 
          prev="$cmd"
142
 
        done
143
 
 
144
 
        if test "$prev" != 'sed 50q "$0"'; then
145
 
          echo_test_string=`eval $prev`
146
 
          export echo_test_string
147
 
          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
148
 
        else
149
 
          # Oops.  We lost completely, so just stick with echo.
150
 
          echo=echo
151
 
        fi
152
 
      fi
153
 
    fi
154
 
  fi
155
 
fi
156
 
fi
157
 
 
158
 
# Copy echo and quote the copy suitably for passing to libtool from
159
 
# the Makefile, instead of quoting the original, which is used later.
160
 
ECHO=$echo
161
 
if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
162
 
   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
163
 
fi
164
 
 
165
 
# Avoid depending upon Character Ranges.
166
 
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
167
 
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
168
 
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
169
 
as_cr_digits='0123456789'
170
 
as_cr_alnum=$as_cr_Letters$as_cr_digits
171
 
 
172
 
# Sed expression to map a string onto a valid variable name.
173
 
as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
174
 
 
175
 
# Sed expression to map a string onto a valid CPP name.
176
 
as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
 
10
## --------------------- ##
 
11
## M4sh Initialization.  ##
 
12
## --------------------- ##
177
13
 
178
14
# Be Bourne compatible
179
15
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
180
16
  emulate sh
181
17
  NULLCMD=:
 
18
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
 
19
  # is contrary to our usage.  Disable this feature.
 
20
  alias -g '${1+"$@"}'='"$@"'
182
21
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
183
22
  set -o posix
184
23
fi
 
24
DUALCASE=1; export DUALCASE # for MKS sh
 
25
 
 
26
# Support unset when possible.
 
27
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
 
28
  as_unset=unset
 
29
else
 
30
  as_unset=false
 
31
fi
 
32
 
 
33
 
 
34
# Work around bugs in pre-3.0 UWIN ksh.
 
35
$as_unset ENV MAIL MAILPATH
 
36
PS1='$ '
 
37
PS2='> '
 
38
PS4='+ '
 
39
 
 
40
# NLS nuisances.
 
41
for as_var in \
 
42
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
 
43
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
 
44
  LC_TELEPHONE LC_TIME
 
45
do
 
46
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
 
47
    eval $as_var=C; export $as_var
 
48
  else
 
49
    $as_unset $as_var
 
50
  fi
 
51
done
 
52
 
 
53
# Required to use basename.
 
54
if expr a : '\(a\)' >/dev/null 2>&1; then
 
55
  as_expr=expr
 
56
else
 
57
  as_expr=false
 
58
fi
 
59
 
 
60
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
 
61
  as_basename=basename
 
62
else
 
63
  as_basename=false
 
64
fi
 
65
 
185
66
 
186
67
# Name of the executable.
187
 
as_me=`echo "$0" |sed 's,.*[\\/],,'`
 
68
as_me=`$as_basename "$0" ||
 
69
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 
70
         X"$0" : 'X\(//\)$' \| \
 
71
         X"$0" : 'X\(/\)$' \| \
 
72
         .     : '\(.\)' 2>/dev/null ||
 
73
echo X/"$0" |
 
74
    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
 
75
          /^X\/\(\/\/\)$/{ s//\1/; q; }
 
76
          /^X\/\(\/\).*/{ s//\1/; q; }
 
77
          s/.*/./; q'`
 
78
 
 
79
 
 
80
# PATH needs CR, and LINENO needs CR and PATH.
 
81
# Avoid depending upon Character Ranges.
 
82
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
83
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
84
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
85
as_cr_digits='0123456789'
 
86
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
87
 
 
88
# The user is always right.
 
89
if test "${PATH_SEPARATOR+set}" != set; then
 
90
  echo "#! /bin/sh" >conf$$.sh
 
91
  echo  "exit 0"   >>conf$$.sh
 
92
  chmod +x conf$$.sh
 
93
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
 
94
    PATH_SEPARATOR=';'
 
95
  else
 
96
    PATH_SEPARATOR=:
 
97
  fi
 
98
  rm -f conf$$.sh
 
99
fi
 
100
 
 
101
 
 
102
  as_lineno_1=$LINENO
 
103
  as_lineno_2=$LINENO
 
104
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
 
105
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
106
  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
 
107
  # Find who we are.  Look in the path if we contain no path at all
 
108
  # relative or not.
 
109
  case $0 in
 
110
    *[\\/]* ) as_myself=$0 ;;
 
111
    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
112
for as_dir in $PATH
 
113
do
 
114
  IFS=$as_save_IFS
 
115
  test -z "$as_dir" && as_dir=.
 
116
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
117
done
 
118
 
 
119
       ;;
 
120
  esac
 
121
  # We did not find ourselves, most probably we were run as `sh COMMAND'
 
122
  # in which case we are not to be found in the path.
 
123
  if test "x$as_myself" = x; then
 
124
    as_myself=$0
 
125
  fi
 
126
  if test ! -f "$as_myself"; then
 
127
    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
 
128
   { (exit 1); exit 1; }; }
 
129
  fi
 
130
  case $CONFIG_SHELL in
 
131
  '')
 
132
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
133
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
 
134
do
 
135
  IFS=$as_save_IFS
 
136
  test -z "$as_dir" && as_dir=.
 
137
  for as_base in sh bash ksh sh5; do
 
138
         case $as_dir in
 
139
         /*)
 
140
           if ("$as_dir/$as_base" -c '
 
141
  as_lineno_1=$LINENO
 
142
  as_lineno_2=$LINENO
 
143
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
 
144
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
145
  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
 
146
             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
 
147
             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
 
148
             CONFIG_SHELL=$as_dir/$as_base
 
149
             export CONFIG_SHELL
 
150
             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
 
151
           fi;;
 
152
         esac
 
153
       done
 
154
done
 
155
;;
 
156
  esac
 
157
 
 
158
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
 
159
  # uniformly replaced by the line number.  The first 'sed' inserts a
 
160
  # line-number line before each line; the second 'sed' does the real
 
161
  # work.  The second script uses 'N' to pair each line-number line
 
162
  # with the numbered line, and appends trailing '-' during
 
163
  # substitution so that $LINENO is not a special case at line end.
 
164
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
 
165
  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
 
166
  sed '=' <$as_myself |
 
167
    sed '
 
168
      N
 
169
      s,$,-,
 
170
      : loop
 
171
      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
 
172
      t loop
 
173
      s,-$,,
 
174
      s,^['$as_cr_digits']*\n,,
 
175
    ' >$as_me.lineno &&
 
176
  chmod +x $as_me.lineno ||
 
177
    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
 
178
   { (exit 1); exit 1; }; }
 
179
 
 
180
  # Don't try to exec as it changes $[0], causing all sort of problems
 
181
  # (the dirname of $[0] is not the place where we might find the
 
182
  # original and so on.  Autoconf is especially sensible to this).
 
183
  . ./$as_me.lineno
 
184
  # Exit status is that of the last command.
 
185
  exit
 
186
}
 
187
 
 
188
 
 
189
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
 
190
  *c*,-n*) ECHO_N= ECHO_C='
 
191
' ECHO_T='      ' ;;
 
192
  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
 
193
  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
 
194
esac
188
195
 
189
196
if expr a : '\(a\)' >/dev/null 2>&1; then
190
197
  as_expr=expr
210
217
fi
211
218
rm -f conf$$ conf$$.exe conf$$.file
212
219
 
 
220
if mkdir -p . 2>/dev/null; then
 
221
  as_mkdir_p=:
 
222
else
 
223
  test -d ./-p && rmdir ./-p
 
224
  as_mkdir_p=false
 
225
fi
 
226
 
213
227
as_executable_p="test -f"
214
228
 
215
 
# Support unset when possible.
216
 
if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
217
 
  as_unset=unset
218
 
else
219
 
  as_unset=false
220
 
fi
221
 
 
222
 
# NLS nuisances.
223
 
$as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
224
 
$as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
225
 
$as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
226
 
$as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
227
 
$as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
228
 
$as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
229
 
$as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
230
 
$as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
 
229
# Sed expression to map a string onto a valid CPP name.
 
230
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
 
231
 
 
232
# Sed expression to map a string onto a valid variable name.
 
233
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
 
234
 
231
235
 
232
236
# IFS
233
237
# We need space, tab and new line, in precisely that order.
236
240
IFS="   $as_nl"
237
241
 
238
242
# CDPATH.
239
 
$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
 
243
$as_unset CDPATH
 
244
 
240
245
 
241
246
# Name of the host.
242
247
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
249
254
# Initializations.
250
255
#
251
256
ac_default_prefix=/usr/local
 
257
ac_config_libobj_dir=.
252
258
cross_compiling=no
253
259
subdirs=
254
 
MFLAGS= MAKEFLAGS=
 
260
MFLAGS=
 
261
MAKEFLAGS=
255
262
SHELL=${CONFIG_SHELL-/bin/sh}
256
263
 
257
264
# Maximum number of lines to put in a shell here document.
259
266
# only ac_max_sed_lines should be used.
260
267
: ${ac_max_here_lines=38}
261
268
 
262
 
ac_unique_file="macros2/gnome-pkgconfig.m4"
 
269
# Identity of this package.
 
270
PACKAGE_NAME='gnome-common'
 
271
PACKAGE_TARNAME='gnome-common'
 
272
PACKAGE_VERSION='2.8.0'
 
273
PACKAGE_STRING='gnome-common 2.8.0'
 
274
PACKAGE_BUGREPORT='http://bugzilla.gnome.org/enter_bug.cgi?product=gnome-common'
 
275
 
 
276
ac_unique_file="macros2/gnome-autogen.sh"
 
277
ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE am__leading_dot MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBOBJS LTLIBOBJS'
 
278
ac_subst_files=''
263
279
 
264
280
# Initialize some variables set by options.
265
281
ac_init_help=
299
315
infodir='${prefix}/info'
300
316
mandir='${prefix}/man'
301
317
 
302
 
# Identity of this package.
303
 
PACKAGE_NAME=
304
 
PACKAGE_TARNAME=
305
 
PACKAGE_VERSION=
306
 
PACKAGE_STRING=
307
 
PACKAGE_BUGREPORT=
308
 
 
309
318
ac_prev=
310
319
for ac_option
311
320
do
438
447
    with_fp=no ;;
439
448
 
440
449
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
441
 
  | --no-cr | --no-c)
 
450
  | --no-cr | --no-c | -n)
442
451
    no_create=yes ;;
443
452
 
444
453
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
617
626
  eval ac_val=$`echo $ac_var`
618
627
  case $ac_val in
619
628
    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
620
 
    *)  { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
 
629
    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
621
630
   { (exit 1); exit 1; }; };;
622
631
  esac
623
632
done
624
633
 
625
634
# Be sure to have absolute paths.
626
635
for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
627
 
              localstatedir libdir includedir oldincludedir infodir mandir
 
636
              localstatedir libdir includedir oldincludedir infodir mandir
628
637
do
629
638
  eval ac_val=$`echo $ac_var`
630
639
  case $ac_val in
631
640
    [\\/$]* | ?:[\\/]* ) ;;
632
 
    *)  { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
 
641
    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
633
642
   { (exit 1); exit 1; }; };;
634
643
  esac
635
644
done
636
645
 
637
646
# There might be people who depend on the old broken behavior: `$host'
638
647
# used to hold the argument of --host etc.
 
648
# FIXME: To remove some day.
639
649
build=$build_alias
640
650
host=$host_alias
641
651
target=$target_alias
642
652
 
643
 
# FIXME: should be removed in autoconf 3.0.
 
653
# FIXME: To remove some day.
644
654
if test "x$host_alias" != x; then
645
655
  if test "x$build_alias" = x; then
646
656
    cross_compiling=maybe
656
666
 
657
667
test "$silent" = yes && exec 6>/dev/null
658
668
 
 
669
 
659
670
# Find the source files, if location was not specified.
660
671
if test -z "$srcdir"; then
661
672
  ac_srcdir_defaulted=yes
662
673
  # Try the directory containing this script, then its parent.
663
 
  ac_prog=$0
664
 
  ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
665
 
  test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
 
674
  ac_confdir=`(dirname "$0") 2>/dev/null ||
 
675
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
676
         X"$0" : 'X\(//\)[^/]' \| \
 
677
         X"$0" : 'X\(//\)$' \| \
 
678
         X"$0" : 'X\(/\)' \| \
 
679
         .     : '\(.\)' 2>/dev/null ||
 
680
echo X"$0" |
 
681
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
682
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
683
          /^X\(\/\/\)$/{ s//\1/; q; }
 
684
          /^X\(\/\).*/{ s//\1/; q; }
 
685
          s/.*/./; q'`
666
686
  srcdir=$ac_confdir
667
687
  if test ! -r $srcdir/$ac_unique_file; then
668
688
    srcdir=..
672
692
fi
673
693
if test ! -r $srcdir/$ac_unique_file; then
674
694
  if test "$ac_srcdir_defaulted" = yes; then
675
 
    { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2
 
695
    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
676
696
   { (exit 1); exit 1; }; }
677
697
  else
678
 
    { echo "$as_me: error: cannot find sources in $srcdir" >&2
 
698
    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
679
699
   { (exit 1); exit 1; }; }
680
700
  fi
681
701
fi
 
702
(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
 
703
  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
 
704
   { (exit 1); exit 1; }; }
682
705
srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
683
706
ac_env_build_alias_set=${build_alias+set}
684
707
ac_env_build_alias_value=$build_alias
692
715
ac_env_target_alias_value=$target_alias
693
716
ac_cv_env_target_alias_set=${target_alias+set}
694
717
ac_cv_env_target_alias_value=$target_alias
695
 
ac_env_CC_set=${CC+set}
696
 
ac_env_CC_value=$CC
697
 
ac_cv_env_CC_set=${CC+set}
698
 
ac_cv_env_CC_value=$CC
699
 
ac_env_CFLAGS_set=${CFLAGS+set}
700
 
ac_env_CFLAGS_value=$CFLAGS
701
 
ac_cv_env_CFLAGS_set=${CFLAGS+set}
702
 
ac_cv_env_CFLAGS_value=$CFLAGS
703
 
ac_env_LDFLAGS_set=${LDFLAGS+set}
704
 
ac_env_LDFLAGS_value=$LDFLAGS
705
 
ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
706
 
ac_cv_env_LDFLAGS_value=$LDFLAGS
707
 
ac_env_CPPFLAGS_set=${CPPFLAGS+set}
708
 
ac_env_CPPFLAGS_value=$CPPFLAGS
709
 
ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
710
 
ac_cv_env_CPPFLAGS_value=$CPPFLAGS
711
 
ac_env_CPP_set=${CPP+set}
712
 
ac_env_CPP_value=$CPP
713
 
ac_cv_env_CPP_set=${CPP+set}
714
 
ac_cv_env_CPP_value=$CPP
715
718
 
716
719
#
717
720
# Report the --help message.
719
722
if test "$ac_init_help" = "long"; then
720
723
  # Omit some internal or obsolete options to make the list less imposing.
721
724
  # This message is too long to be a string in the A/UX 3.1 sh.
722
 
  cat <<EOF
723
 
\`configure' configures this package to adapt to many kinds of systems.
 
725
  cat <<_ACEOF
 
726
\`configure' configures gnome-common 2.8.0 to adapt to many kinds of systems.
724
727
 
725
728
Usage: $0 [OPTION]... [VAR=VALUE]...
726
729
 
740
743
  -n, --no-create         do not create output files
741
744
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
742
745
 
743
 
EOF
 
746
_ACEOF
744
747
 
745
 
  cat <<EOF
 
748
  cat <<_ACEOF
746
749
Installation directories:
747
750
  --prefix=PREFIX         install architecture-independent files in PREFIX
748
 
                          [$ac_default_prefix]
 
751
                          [$ac_default_prefix]
749
752
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
750
 
                          [PREFIX]
 
753
                          [PREFIX]
751
754
 
752
755
By default, \`make install' will install all the files in
753
756
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
769
772
  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
770
773
  --infodir=DIR          info documentation [PREFIX/info]
771
774
  --mandir=DIR           man documentation [PREFIX/man]
772
 
EOF
 
775
_ACEOF
773
776
 
774
 
  cat <<\EOF
 
777
  cat <<\_ACEOF
775
778
 
776
779
Program names:
777
780
  --program-prefix=PREFIX            prepend PREFIX to installed program names
778
781
  --program-suffix=SUFFIX            append SUFFIX to installed program names
779
782
  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
780
 
 
781
 
System types:
782
 
  --build=BUILD     configure for building on BUILD [guessed]
783
 
  --host=HOST       build programs to run on HOST [BUILD]
784
 
EOF
 
783
_ACEOF
785
784
fi
786
785
 
787
786
if test -n "$ac_init_help"; then
788
 
 
789
 
  cat <<\EOF
 
787
  case $ac_init_help in
 
788
     short | recursive ) echo "Configuration of gnome-common 2.8.0:";;
 
789
   esac
 
790
  cat <<\_ACEOF
790
791
 
791
792
Optional Features:
792
793
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
793
794
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
794
795
  --enable-maintainer-mode enable make rules and dependencies not useful
795
796
                          (and sometimes confusing) to the casual installer
796
 
  --enable-shared=PKGS  build shared libraries default=yes
797
 
  --enable-static=PKGS  build static libraries default=yes
798
 
  --enable-fast-install=PKGS  optimize for fast installation default=yes
799
 
  --disable-libtool-lock  avoid locking (might break parallel builds)
800
 
 
801
 
Optional Packages:
802
 
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
803
 
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
804
 
  --with-gnu-ld           assume the C compiler uses GNU ld default=no
805
 
  --with-pic              try to use only PIC/non-PIC objects default=use both
806
 
 
807
 
Some influential environment variables:
808
 
  CC          C compiler command
809
 
  CFLAGS      C compiler flags
810
 
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
811
 
              nonstandard directory <lib dir>
812
 
  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
813
 
              headers in a nonstandard directory <include dir>
814
 
  CPP         C preprocessor
815
 
 
816
 
Use these variables to override the choices made by `configure' or to help
817
 
it to find libraries and programs with nonstandard names/locations.
818
 
 
819
 
EOF
 
797
 
 
798
Report bugs to <http://bugzilla.gnome.org/enter_bug.cgi?product=gnome-common>.
 
799
_ACEOF
820
800
fi
821
801
 
822
802
if test "$ac_init_help" = "recursive"; then
823
803
  # If there are subdirs, report their specific --help.
824
804
  ac_popdir=`pwd`
825
 
  for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
826
 
    cd $ac_subdir
827
 
    # A "../" for each directory in /$ac_subdir.
828
 
    ac_dots=`echo $ac_subdir |
829
 
             sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
830
 
 
831
 
    case $srcdir in
832
 
    .) # No --srcdir option.  We are building in place.
833
 
      ac_sub_srcdir=$srcdir ;;
834
 
    [\\/]* | ?:[\\/]* ) # Absolute path.
835
 
      ac_sub_srcdir=$srcdir/$ac_subdir ;;
836
 
    *) # Relative path.
837
 
      ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
838
 
    esac
839
 
 
 
805
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
 
806
    test -d $ac_dir || continue
 
807
    ac_builddir=.
 
808
 
 
809
if test "$ac_dir" != .; then
 
810
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
 
811
  # A "../" for each directory in $ac_dir_suffix.
 
812
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
 
813
else
 
814
  ac_dir_suffix= ac_top_builddir=
 
815
fi
 
816
 
 
817
case $srcdir in
 
818
  .)  # No --srcdir option.  We are building in place.
 
819
    ac_srcdir=.
 
820
    if test -z "$ac_top_builddir"; then
 
821
       ac_top_srcdir=.
 
822
    else
 
823
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
 
824
    fi ;;
 
825
  [\\/]* | ?:[\\/]* )  # Absolute path.
 
826
    ac_srcdir=$srcdir$ac_dir_suffix;
 
827
    ac_top_srcdir=$srcdir ;;
 
828
  *) # Relative path.
 
829
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
 
830
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
 
831
esac
 
832
 
 
833
# Do not use `cd foo && pwd` to compute absolute paths, because
 
834
# the directories may not exist.
 
835
case `pwd` in
 
836
.) ac_abs_builddir="$ac_dir";;
 
837
*)
 
838
  case "$ac_dir" in
 
839
  .) ac_abs_builddir=`pwd`;;
 
840
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
 
841
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
 
842
  esac;;
 
843
esac
 
844
case $ac_abs_builddir in
 
845
.) ac_abs_top_builddir=${ac_top_builddir}.;;
 
846
*)
 
847
  case ${ac_top_builddir}. in
 
848
  .) ac_abs_top_builddir=$ac_abs_builddir;;
 
849
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
 
850
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
 
851
  esac;;
 
852
esac
 
853
case $ac_abs_builddir in
 
854
.) ac_abs_srcdir=$ac_srcdir;;
 
855
*)
 
856
  case $ac_srcdir in
 
857
  .) ac_abs_srcdir=$ac_abs_builddir;;
 
858
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
 
859
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
 
860
  esac;;
 
861
esac
 
862
case $ac_abs_builddir in
 
863
.) ac_abs_top_srcdir=$ac_top_srcdir;;
 
864
*)
 
865
  case $ac_top_srcdir in
 
866
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
 
867
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
 
868
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
 
869
  esac;;
 
870
esac
 
871
 
 
872
    cd $ac_dir
840
873
    # Check for guested configure; otherwise get Cygnus style configure.
841
 
    if test -f $ac_sub_srcdir/configure.gnu; then
842
 
      echo
843
 
      $SHELL $ac_sub_srcdir/configure.gnu  --help=recursive
844
 
    elif test -f $ac_sub_srcdir/configure; then
845
 
      echo
846
 
      $SHELL $ac_sub_srcdir/configure  --help=recursive
847
 
    elif test -f $ac_sub_srcdir/configure.ac ||
848
 
           test -f $ac_sub_srcdir/configure.in; then
 
874
    if test -f $ac_srcdir/configure.gnu; then
 
875
      echo
 
876
      $SHELL $ac_srcdir/configure.gnu  --help=recursive
 
877
    elif test -f $ac_srcdir/configure; then
 
878
      echo
 
879
      $SHELL $ac_srcdir/configure  --help=recursive
 
880
    elif test -f $ac_srcdir/configure.ac ||
 
881
           test -f $ac_srcdir/configure.in; then
849
882
      echo
850
883
      $ac_configure --help
851
884
    else
852
 
      echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
 
885
      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
853
886
    fi
854
887
    cd $ac_popdir
855
888
  done
857
890
 
858
891
test -n "$ac_init_help" && exit 0
859
892
if $ac_init_version; then
860
 
  cat <<\EOF
 
893
  cat <<\_ACEOF
 
894
gnome-common configure 2.8.0
 
895
generated by GNU Autoconf 2.59
861
896
 
862
 
Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
863
 
Free Software Foundation, Inc.
 
897
Copyright (C) 2003 Free Software Foundation, Inc.
864
898
This configure script is free software; the Free Software Foundation
865
899
gives unlimited permission to copy, distribute and modify it.
866
 
EOF
 
900
_ACEOF
867
901
  exit 0
868
902
fi
869
903
exec 5>config.log
870
 
cat >&5 <<EOF
 
904
cat >&5 <<_ACEOF
871
905
This file contains any messages produced by compilers while
872
906
running configure, to aid debugging if configure makes a mistake.
873
907
 
874
 
It was created by $as_me, which was
875
 
generated by GNU Autoconf 2.52.  Invocation command line was
 
908
It was created by gnome-common $as_me 2.8.0, which was
 
909
generated by GNU Autoconf 2.59.  Invocation command line was
876
910
 
877
911
  $ $0 $@
878
912
 
879
 
EOF
 
913
_ACEOF
880
914
{
881
915
cat <<_ASUNAME
882
 
## ---------- ##
883
 
## Platform.  ##
884
 
## ---------- ##
 
916
## --------- ##
 
917
## Platform. ##
 
918
## --------- ##
885
919
 
886
920
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
887
921
uname -m = `(uname -m) 2>/dev/null || echo unknown`
900
934
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
901
935
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
902
936
 
903
 
PATH = $PATH
904
 
 
905
937
_ASUNAME
 
938
 
 
939
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
940
for as_dir in $PATH
 
941
do
 
942
  IFS=$as_save_IFS
 
943
  test -z "$as_dir" && as_dir=.
 
944
  echo "PATH: $as_dir"
 
945
done
 
946
 
906
947
} >&5
907
948
 
908
 
cat >&5 <<EOF
909
 
## ------------ ##
910
 
## Core tests.  ##
911
 
## ------------ ##
912
 
 
913
 
EOF
 
949
cat >&5 <<_ACEOF
 
950
 
 
951
 
 
952
## ----------- ##
 
953
## Core tests. ##
 
954
## ----------- ##
 
955
 
 
956
_ACEOF
 
957
 
914
958
 
915
959
# Keep a trace of the command line.
916
960
# Strip out --no-create and --no-recursion so they do not pile up.
 
961
# Strip out --silent because we don't want to record it for future runs.
917
962
# Also quote any args containing shell meta-characters.
 
963
# Make two passes to allow for proper duplicate-argument suppression.
918
964
ac_configure_args=
 
965
ac_configure_args0=
 
966
ac_configure_args1=
919
967
ac_sep=
920
 
for ac_arg
 
968
ac_must_keep_next=false
 
969
for ac_pass in 1 2
921
970
do
922
 
  case $ac_arg in
923
 
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
924
 
  | --no-cr | --no-c) ;;
925
 
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
926
 
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
927
 
  *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
928
 
    ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
929
 
    ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
930
 
    ac_sep=" " ;;
931
 
  *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
932
 
     ac_sep=" " ;;
933
 
  esac
934
 
  # Get rid of the leading space.
 
971
  for ac_arg
 
972
  do
 
973
    case $ac_arg in
 
974
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
 
975
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
976
    | -silent | --silent | --silen | --sile | --sil)
 
977
      continue ;;
 
978
    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
 
979
      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
 
980
    esac
 
981
    case $ac_pass in
 
982
    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
 
983
    2)
 
984
      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
 
985
      if test $ac_must_keep_next = true; then
 
986
        ac_must_keep_next=false # Got value, back to normal.
 
987
      else
 
988
        case $ac_arg in
 
989
          *=* | --config-cache | -C | -disable-* | --disable-* \
 
990
          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
 
991
          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
 
992
          | -with-* | --with-* | -without-* | --without-* | --x)
 
993
            case "$ac_configure_args0 " in
 
994
              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
 
995
            esac
 
996
            ;;
 
997
          -* ) ac_must_keep_next=true ;;
 
998
        esac
 
999
      fi
 
1000
      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
 
1001
      # Get rid of the leading space.
 
1002
      ac_sep=" "
 
1003
      ;;
 
1004
    esac
 
1005
  done
935
1006
done
 
1007
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
 
1008
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
936
1009
 
937
1010
# When interrupted or exit'd, cleanup temporary files, and complete
938
1011
# config.log.  We remove comments because anyway the quotes in there
939
1012
# would cause problems or look ugly.
 
1013
# WARNING: Be sure not to use single quotes in there, as some shells,
 
1014
# such as our DU 5.0 friend, will then `close' the trap.
940
1015
trap 'exit_status=$?
941
1016
  # Save into config.log some information that might help in debugging.
942
 
  echo >&5
943
 
  echo "## ----------------- ##" >&5
944
 
  echo "## Cache variables.  ##" >&5
945
 
  echo "## ----------------- ##" >&5
946
 
  echo >&5
947
 
  # The following way of writing the cache mishandles newlines in values,
 
1017
  {
 
1018
    echo
 
1019
 
 
1020
    cat <<\_ASBOX
 
1021
## ---------------- ##
 
1022
## Cache variables. ##
 
1023
## ---------------- ##
 
1024
_ASBOX
 
1025
    echo
 
1026
    # The following way of writing the cache mishandles newlines in values,
948
1027
{
949
1028
  (set) 2>&1 |
950
1029
    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
951
1030
    *ac_space=\ *)
952
1031
      sed -n \
953
 
        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
954
 
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
 
1032
        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
 
1033
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
955
1034
      ;;
956
1035
    *)
957
1036
      sed -n \
958
 
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
 
1037
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
959
1038
      ;;
960
1039
    esac;
961
 
} >&5
962
 
  sed "/^$/d" confdefs.h >conftest.log
963
 
  if test -s conftest.log; then
964
 
    echo >&5
965
 
    echo "## ------------ ##" >&5
966
 
    echo "## confdefs.h.  ##" >&5
967
 
    echo "## ------------ ##" >&5
968
 
    echo >&5
969
 
    cat conftest.log >&5
970
 
  fi
971
 
  (echo; echo) >&5
972
 
  test "$ac_signal" != 0 &&
973
 
    echo "$as_me: caught signal $ac_signal" >&5
974
 
  echo "$as_me: exit $exit_status" >&5
975
 
  rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
 
1040
}
 
1041
    echo
 
1042
 
 
1043
    cat <<\_ASBOX
 
1044
## ----------------- ##
 
1045
## Output variables. ##
 
1046
## ----------------- ##
 
1047
_ASBOX
 
1048
    echo
 
1049
    for ac_var in $ac_subst_vars
 
1050
    do
 
1051
      eval ac_val=$`echo $ac_var`
 
1052
      echo "$ac_var='"'"'$ac_val'"'"'"
 
1053
    done | sort
 
1054
    echo
 
1055
 
 
1056
    if test -n "$ac_subst_files"; then
 
1057
      cat <<\_ASBOX
 
1058
## ------------- ##
 
1059
## Output files. ##
 
1060
## ------------- ##
 
1061
_ASBOX
 
1062
      echo
 
1063
      for ac_var in $ac_subst_files
 
1064
      do
 
1065
        eval ac_val=$`echo $ac_var`
 
1066
        echo "$ac_var='"'"'$ac_val'"'"'"
 
1067
      done | sort
 
1068
      echo
 
1069
    fi
 
1070
 
 
1071
    if test -s confdefs.h; then
 
1072
      cat <<\_ASBOX
 
1073
## ----------- ##
 
1074
## confdefs.h. ##
 
1075
## ----------- ##
 
1076
_ASBOX
 
1077
      echo
 
1078
      sed "/^$/d" confdefs.h | sort
 
1079
      echo
 
1080
    fi
 
1081
    test "$ac_signal" != 0 &&
 
1082
      echo "$as_me: caught signal $ac_signal"
 
1083
    echo "$as_me: exit $exit_status"
 
1084
  } >&5
 
1085
  rm -f core *.core &&
 
1086
  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
976
1087
    exit $exit_status
977
1088
     ' 0
978
1089
for ac_signal in 1 2 13 15; do
985
1096
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
986
1097
echo >confdefs.h
987
1098
 
 
1099
# Predefined preprocessor variables.
 
1100
 
 
1101
cat >>confdefs.h <<_ACEOF
 
1102
#define PACKAGE_NAME "$PACKAGE_NAME"
 
1103
_ACEOF
 
1104
 
 
1105
 
 
1106
cat >>confdefs.h <<_ACEOF
 
1107
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
 
1108
_ACEOF
 
1109
 
 
1110
 
 
1111
cat >>confdefs.h <<_ACEOF
 
1112
#define PACKAGE_VERSION "$PACKAGE_VERSION"
 
1113
_ACEOF
 
1114
 
 
1115
 
 
1116
cat >>confdefs.h <<_ACEOF
 
1117
#define PACKAGE_STRING "$PACKAGE_STRING"
 
1118
_ACEOF
 
1119
 
 
1120
 
 
1121
cat >>confdefs.h <<_ACEOF
 
1122
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
 
1123
_ACEOF
 
1124
 
 
1125
 
988
1126
# Let the site file select an alternate cache file if it wants to.
989
1127
# Prefer explicitly selected file to automatically selected ones.
990
1128
if test -z "$CONFIG_SITE"; then
996
1134
fi
997
1135
for ac_site_file in $CONFIG_SITE; do
998
1136
  if test -r "$ac_site_file"; then
999
 
    { echo "$as_me:999: loading site script $ac_site_file" >&5
 
1137
    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1000
1138
echo "$as_me: loading site script $ac_site_file" >&6;}
1001
 
    cat "$ac_site_file" >&5
 
1139
    sed 's/^/| /' "$ac_site_file" >&5
1002
1140
    . "$ac_site_file"
1003
1141
  fi
1004
1142
done
1007
1145
  # Some versions of bash will fail to source /dev/null (special
1008
1146
  # files actually), so we avoid doing that.
1009
1147
  if test -f "$cache_file"; then
1010
 
    { echo "$as_me:1010: loading cache $cache_file" >&5
 
1148
    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1011
1149
echo "$as_me: loading cache $cache_file" >&6;}
1012
1150
    case $cache_file in
1013
1151
      [\\/]* | ?:[\\/]* ) . $cache_file;;
1015
1153
    esac
1016
1154
  fi
1017
1155
else
1018
 
  { echo "$as_me:1018: creating cache $cache_file" >&5
 
1156
  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1019
1157
echo "$as_me: creating cache $cache_file" >&6;}
1020
1158
  >$cache_file
1021
1159
fi
1024
1162
# value.
1025
1163
ac_cache_corrupted=false
1026
1164
for ac_var in `(set) 2>&1 |
1027
 
               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
 
1165
               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1028
1166
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1029
1167
  eval ac_new_set=\$ac_env_${ac_var}_set
1030
1168
  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1031
1169
  eval ac_new_val="\$ac_env_${ac_var}_value"
1032
1170
  case $ac_old_set,$ac_new_set in
1033
1171
    set,)
1034
 
      { echo "$as_me:1034: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
 
1172
      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1035
1173
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1036
1174
      ac_cache_corrupted=: ;;
1037
1175
    ,set)
1038
 
      { echo "$as_me:1038: error: \`$ac_var' was not set in the previous run" >&5
 
1176
      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1039
1177
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1040
1178
      ac_cache_corrupted=: ;;
1041
1179
    ,);;
1042
1180
    *)
1043
1181
      if test "x$ac_old_val" != "x$ac_new_val"; then
1044
 
        { echo "$as_me:1044: error: \`$ac_var' has changed since the previous run:" >&5
 
1182
        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1045
1183
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1046
 
        { echo "$as_me:1046:   former value:  $ac_old_val" >&5
 
1184
        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1047
1185
echo "$as_me:   former value:  $ac_old_val" >&2;}
1048
 
        { echo "$as_me:1048:   current value: $ac_new_val" >&5
 
1186
        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1049
1187
echo "$as_me:   current value: $ac_new_val" >&2;}
1050
 
        ac_cache_corrupted=:
 
1188
        ac_cache_corrupted=:
1051
1189
      fi;;
1052
1190
  esac
1053
 
  # Pass precious variables to config.status.  It doesn't matter if
1054
 
  # we pass some twice (in addition to the command line arguments).
 
1191
  # Pass precious variables to config.status.
1055
1192
  if test "$ac_new_set" = set; then
1056
1193
    case $ac_new_val in
1057
1194
    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1058
 
      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
1059
 
      ac_configure_args="$ac_configure_args '$ac_arg'"
1060
 
      ;;
1061
 
    *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
1062
 
       ;;
 
1195
      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
 
1196
    *) ac_arg=$ac_var=$ac_new_val ;;
 
1197
    esac
 
1198
    case " $ac_configure_args " in
 
1199
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
 
1200
      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1063
1201
    esac
1064
1202
  fi
1065
1203
done
1066
1204
if $ac_cache_corrupted; then
1067
 
  { echo "$as_me:1067: error: changes in the environment can compromise the build" >&5
 
1205
  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1068
1206
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1069
 
  { { echo "$as_me:1069: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
 
1207
  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1070
1208
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1071
1209
   { (exit 1); exit 1; }; }
1072
1210
fi
1077
1215
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1078
1216
ac_compiler_gnu=$ac_cv_c_compiler_gnu
1079
1217
 
1080
 
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
1081
 
  *c*,-n*) ECHO_N= ECHO_C='
1082
 
' ECHO_T='      ' ;;
1083
 
  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
1084
 
  *)      ECHO_N= ECHO_C='\c' ECHO_T= ;;
1085
 
esac
1086
 
echo "#! $SHELL" >conftest.sh
1087
 
echo  "exit 0"   >>conftest.sh
1088
 
chmod +x conftest.sh
1089
 
if { (echo "$as_me:1089: PATH=\".;.\"; conftest.sh") >&5
1090
 
  (PATH=".;."; conftest.sh) 2>&5
1091
 
  ac_status=$?
1092
 
  echo "$as_me:1092: \$? = $ac_status" >&5
1093
 
  (exit $ac_status); }; then
1094
 
  ac_path_separator=';'
1095
 
else
1096
 
  ac_path_separator=:
1097
 
fi
1098
 
PATH_SEPARATOR="$ac_path_separator"
1099
 
rm -f conftest.sh
1100
 
 
 
1218
 
 
1219
 
 
1220
 
 
1221
 
 
1222
 
 
1223
 
 
1224
 
 
1225
 
 
1226
 
 
1227
 
 
1228
 
 
1229
 
 
1230
 
 
1231
 
 
1232
 
 
1233
 
 
1234
 
 
1235
 
 
1236
 
 
1237
 
 
1238
 
 
1239
 
 
1240
 
 
1241
 
 
1242
 
 
1243
 
 
1244
 
 
1245
 
 
1246
am__api_version="1.7"
1101
1247
ac_aux_dir=
1102
1248
for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1103
1249
  if test -f $ac_dir/install-sh; then
1115
1261
  fi
1116
1262
done
1117
1263
if test -z "$ac_aux_dir"; then
1118
 
  { { echo "$as_me:1118: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
 
1264
  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1119
1265
echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1120
1266
   { (exit 1); exit 1; }; }
1121
1267
fi
1134
1280
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1135
1281
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1136
1282
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
 
1283
# OS/2's system install, which has a completely different semantic
1137
1284
# ./install, which can be erroneously created by make from ./install.sh.
1138
 
echo "$as_me:1138: checking for a BSD compatible install" >&5
1139
 
echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
 
1285
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
 
1286
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1140
1287
if test -z "$INSTALL"; then
1141
1288
if test "${ac_cv_path_install+set}" = set; then
1142
1289
  echo $ECHO_N "(cached) $ECHO_C" >&6
1143
1290
else
1144
 
    ac_save_IFS=$IFS; IFS=$ac_path_separator
1145
 
  for ac_dir in $PATH; do
1146
 
    IFS=$ac_save_IFS
1147
 
    # Account for people who put trailing slashes in PATH elements.
1148
 
    case $ac_dir/ in
1149
 
    / | ./ | .// | /cC/* \
1150
 
    | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
1151
 
    | /usr/ucb/* ) ;;
1152
 
    *)
1153
 
      # OSF1 and SCO ODT 3.0 have their own names for install.
1154
 
      # Don't use installbsd from OSF since it installs stuff as root
1155
 
      # by default.
1156
 
      for ac_prog in ginstall scoinst install; do
1157
 
        if $as_executable_p "$ac_dir/$ac_prog"; then
 
1291
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1292
for as_dir in $PATH
 
1293
do
 
1294
  IFS=$as_save_IFS
 
1295
  test -z "$as_dir" && as_dir=.
 
1296
  # Account for people who put trailing slashes in PATH elements.
 
1297
case $as_dir/ in
 
1298
  ./ | .// | /cC/* | \
 
1299
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
 
1300
  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
 
1301
  /usr/ucb/* ) ;;
 
1302
  *)
 
1303
    # OSF1 and SCO ODT 3.0 have their own names for install.
 
1304
    # Don't use installbsd from OSF since it installs stuff as root
 
1305
    # by default.
 
1306
    for ac_prog in ginstall scoinst install; do
 
1307
      for ac_exec_ext in '' $ac_executable_extensions; do
 
1308
        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1158
1309
          if test $ac_prog = install &&
1159
 
            grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
 
1310
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1160
1311
            # AIX install.  It has an incompatible calling convention.
1161
1312
            :
1162
1313
          elif test $ac_prog = install &&
1163
 
            grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
 
1314
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1164
1315
            # program-specific install script used by HP pwplus--don't use.
1165
1316
            :
1166
1317
          else
1167
 
            ac_cv_path_install="$ac_dir/$ac_prog -c"
1168
 
            break 2
 
1318
            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
 
1319
            break 3
1169
1320
          fi
1170
1321
        fi
1171
1322
      done
1172
 
      ;;
1173
 
    esac
1174
 
  done
 
1323
    done
 
1324
    ;;
 
1325
esac
 
1326
done
 
1327
 
1175
1328
 
1176
1329
fi
1177
1330
  if test "${ac_cv_path_install+set}" = set; then
1184
1337
    INSTALL=$ac_install_sh
1185
1338
  fi
1186
1339
fi
1187
 
echo "$as_me:1187: result: $INSTALL" >&5
 
1340
echo "$as_me:$LINENO: result: $INSTALL" >&5
1188
1341
echo "${ECHO_T}$INSTALL" >&6
1189
1342
 
1190
1343
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1195
1348
 
1196
1349
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1197
1350
 
1198
 
echo "$as_me:1198: checking whether build environment is sane" >&5
 
1351
echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1199
1352
echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1200
1353
# Just in case
1201
1354
sleep 1
1202
 
echo timestamp > conftestfile
 
1355
echo timestamp > conftest.file
1203
1356
# Do `set' in a subshell so we don't clobber the current shell's
1204
1357
# arguments.  Must try -L first in case configure is actually a
1205
1358
# symlink; some systems play weird games with the mod time of symlinks
1206
1359
# (eg FreeBSD returns the mod time of the symlink's containing
1207
1360
# directory).
1208
1361
if (
1209
 
   set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
 
1362
   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1210
1363
   if test "$*" = "X"; then
1211
1364
      # -L didn't work.
1212
 
      set X `ls -t $srcdir/configure conftestfile`
 
1365
      set X `ls -t $srcdir/configure conftest.file`
1213
1366
   fi
1214
 
   if test "$*" != "X $srcdir/configure conftestfile" \
1215
 
      && test "$*" != "X conftestfile $srcdir/configure"; then
 
1367
   rm -f conftest.file
 
1368
   if test "$*" != "X $srcdir/configure conftest.file" \
 
1369
      && test "$*" != "X conftest.file $srcdir/configure"; then
1216
1370
 
1217
1371
      # If neither matched, then we have a broken ls.  This can happen
1218
1372
      # if, for instance, CONFIG_SHELL is bash and it inherits a
1219
1373
      # broken ls alias from the environment.  This has actually
1220
1374
      # happened.  Such a system could not be considered "sane".
1221
 
      { { echo "$as_me:1221: error: ls -t appears to fail.  Make sure there is not a broken
 
1375
      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1222
1376
alias in your environment" >&5
1223
1377
echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1224
1378
alias in your environment" >&2;}
1225
1379
   { (exit 1); exit 1; }; }
1226
1380
   fi
1227
1381
 
1228
 
   test "$2" = conftestfile
 
1382
   test "$2" = conftest.file
1229
1383
   )
1230
1384
then
1231
1385
   # Ok.
1232
1386
   :
1233
1387
else
1234
 
   { { echo "$as_me:1234: error: newly created file is older than distributed files!
 
1388
   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1235
1389
Check your system clock" >&5
1236
1390
echo "$as_me: error: newly created file is older than distributed files!
1237
1391
Check your system clock" >&2;}
1238
1392
   { (exit 1); exit 1; }; }
1239
1393
fi
1240
 
rm -f conftest*
1241
 
echo "$as_me:1241: result: yes" >&5
 
1394
echo "$as_me:$LINENO: result: yes" >&5
1242
1395
echo "${ECHO_T}yes" >&6
1243
1396
test "$program_prefix" != NONE &&
1244
1397
  program_transform_name="s,^,$program_prefix,;$program_transform_name"
1253
1406
program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1254
1407
rm conftest.sed
1255
1408
 
1256
 
echo "$as_me:1256: checking whether ${MAKE-make} sets \${MAKE}" >&5
1257
 
echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
1258
 
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
 
1409
 
 
1410
# expand $ac_aux_dir to an absolute path
 
1411
am_aux_dir=`cd $ac_aux_dir && pwd`
 
1412
 
 
1413
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
 
1414
# Use eval to expand $SHELL
 
1415
if eval "$MISSING --run true"; then
 
1416
  am_missing_run="$MISSING --run "
 
1417
else
 
1418
  am_missing_run=
 
1419
  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
 
1420
echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
 
1421
fi
 
1422
 
 
1423
for ac_prog in gawk mawk nawk awk
 
1424
do
 
1425
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
1426
set dummy $ac_prog; ac_word=$2
 
1427
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1428
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1429
if test "${ac_cv_prog_AWK+set}" = set; then
 
1430
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1431
else
 
1432
  if test -n "$AWK"; then
 
1433
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
 
1434
else
 
1435
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1436
for as_dir in $PATH
 
1437
do
 
1438
  IFS=$as_save_IFS
 
1439
  test -z "$as_dir" && as_dir=.
 
1440
  for ac_exec_ext in '' $ac_executable_extensions; do
 
1441
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
1442
    ac_cv_prog_AWK="$ac_prog"
 
1443
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
1444
    break 2
 
1445
  fi
 
1446
done
 
1447
done
 
1448
 
 
1449
fi
 
1450
fi
 
1451
AWK=$ac_cv_prog_AWK
 
1452
if test -n "$AWK"; then
 
1453
  echo "$as_me:$LINENO: result: $AWK" >&5
 
1454
echo "${ECHO_T}$AWK" >&6
 
1455
else
 
1456
  echo "$as_me:$LINENO: result: no" >&5
 
1457
echo "${ECHO_T}no" >&6
 
1458
fi
 
1459
 
 
1460
  test -n "$AWK" && break
 
1461
done
 
1462
 
 
1463
echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
 
1464
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
 
1465
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1259
1466
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1260
1467
  echo $ECHO_N "(cached) $ECHO_C" >&6
1261
1468
else
1262
 
  cat >conftest.make <<\EOF
 
1469
  cat >conftest.make <<\_ACEOF
1263
1470
all:
1264
 
        @echo 'ac_maketemp="${MAKE}"'
1265
 
EOF
 
1471
        @echo 'ac_maketemp="$(MAKE)"'
 
1472
_ACEOF
1266
1473
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1267
1474
eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1268
1475
if test -n "$ac_maketemp"; then
1273
1480
rm -f conftest.make
1274
1481
fi
1275
1482
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1276
 
  echo "$as_me:1276: result: yes" >&5
 
1483
  echo "$as_me:$LINENO: result: yes" >&5
1277
1484
echo "${ECHO_T}yes" >&6
1278
1485
  SET_MAKE=
1279
1486
else
1280
 
  echo "$as_me:1280: result: no" >&5
 
1487
  echo "$as_me:$LINENO: result: no" >&5
1281
1488
echo "${ECHO_T}no" >&6
1282
1489
  SET_MAKE="MAKE=${MAKE-make}"
1283
1490
fi
1284
1491
 
1285
 
PACKAGE=gnome-common
1286
 
 
1287
 
VERSION=1.2.4
1288
 
 
1289
 
if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1290
 
  { { echo "$as_me:1290: error: source directory already configured; run \"make distclean\" there first" >&5
 
1492
rm -rf .tst 2>/dev/null
 
1493
mkdir .tst 2>/dev/null
 
1494
if test -d .tst; then
 
1495
  am__leading_dot=.
 
1496
else
 
1497
  am__leading_dot=_
 
1498
fi
 
1499
rmdir .tst 2>/dev/null
 
1500
 
 
1501
 # test to see if srcdir already configured
 
1502
if test "`cd $srcdir && pwd`" != "`pwd`" &&
 
1503
   test -f $srcdir/config.status; then
 
1504
  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1291
1505
echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1292
1506
   { (exit 1); exit 1; }; }
1293
1507
fi
1294
1508
 
1295
 
cat >>confdefs.h <<EOF
 
1509
# test whether we have cygpath
 
1510
if test -z "$CYGPATH_W"; then
 
1511
  if (cygpath --version) >/dev/null 2>/dev/null; then
 
1512
    CYGPATH_W='cygpath -w'
 
1513
  else
 
1514
    CYGPATH_W=echo
 
1515
  fi
 
1516
fi
 
1517
 
 
1518
 
 
1519
# Define the identity of the package.
 
1520
 PACKAGE='gnome-common'
 
1521
 VERSION='2.8.0'
 
1522
 
 
1523
 
 
1524
cat >>confdefs.h <<_ACEOF
1296
1525
#define PACKAGE "$PACKAGE"
1297
 
EOF
1298
 
 
1299
 
cat >>confdefs.h <<EOF
 
1526
_ACEOF
 
1527
 
 
1528
 
 
1529
cat >>confdefs.h <<_ACEOF
1300
1530
#define VERSION "$VERSION"
1301
 
EOF
1302
 
 
1303
 
missing_dir=`cd $ac_aux_dir && pwd`
1304
 
echo "$as_me:1304: checking for working aclocal" >&5
1305
 
echo $ECHO_N "checking for working aclocal... $ECHO_C" >&6
1306
 
# Run test in a subshell; some versions of sh will print an error if
1307
 
# an executable is not found, even if stderr is redirected.
1308
 
# Redirect stdin to placate older versions of autoconf.  Sigh.
1309
 
if (aclocal --version) < /dev/null > /dev/null 2>&1; then
1310
 
   ACLOCAL=aclocal
1311
 
   echo "$as_me:1311: result: found" >&5
1312
 
echo "${ECHO_T}found" >&6
1313
 
else
1314
 
   ACLOCAL="$missing_dir/missing aclocal"
1315
 
   echo "$as_me:1315: result: missing" >&5
1316
 
echo "${ECHO_T}missing" >&6
1317
 
fi
1318
 
 
1319
 
echo "$as_me:1319: checking for working autoconf" >&5
1320
 
echo $ECHO_N "checking for working autoconf... $ECHO_C" >&6
1321
 
# Run test in a subshell; some versions of sh will print an error if
1322
 
# an executable is not found, even if stderr is redirected.
1323
 
# Redirect stdin to placate older versions of autoconf.  Sigh.
1324
 
if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1325
 
   AUTOCONF=autoconf
1326
 
   echo "$as_me:1326: result: found" >&5
1327
 
echo "${ECHO_T}found" >&6
1328
 
else
1329
 
   AUTOCONF="$missing_dir/missing autoconf"
1330
 
   echo "$as_me:1330: result: missing" >&5
1331
 
echo "${ECHO_T}missing" >&6
1332
 
fi
1333
 
 
1334
 
echo "$as_me:1334: checking for working automake" >&5
1335
 
echo $ECHO_N "checking for working automake... $ECHO_C" >&6
1336
 
# Run test in a subshell; some versions of sh will print an error if
1337
 
# an executable is not found, even if stderr is redirected.
1338
 
# Redirect stdin to placate older versions of autoconf.  Sigh.
1339
 
if (automake --version) < /dev/null > /dev/null 2>&1; then
1340
 
   AUTOMAKE=automake
1341
 
   echo "$as_me:1341: result: found" >&5
1342
 
echo "${ECHO_T}found" >&6
1343
 
else
1344
 
   AUTOMAKE="$missing_dir/missing automake"
1345
 
   echo "$as_me:1345: result: missing" >&5
1346
 
echo "${ECHO_T}missing" >&6
1347
 
fi
1348
 
 
1349
 
echo "$as_me:1349: checking for working autoheader" >&5
1350
 
echo $ECHO_N "checking for working autoheader... $ECHO_C" >&6
1351
 
# Run test in a subshell; some versions of sh will print an error if
1352
 
# an executable is not found, even if stderr is redirected.
1353
 
# Redirect stdin to placate older versions of autoconf.  Sigh.
1354
 
if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1355
 
   AUTOHEADER=autoheader
1356
 
   echo "$as_me:1356: result: found" >&5
1357
 
echo "${ECHO_T}found" >&6
1358
 
else
1359
 
   AUTOHEADER="$missing_dir/missing autoheader"
1360
 
   echo "$as_me:1360: result: missing" >&5
1361
 
echo "${ECHO_T}missing" >&6
1362
 
fi
1363
 
 
1364
 
echo "$as_me:1364: checking for working makeinfo" >&5
1365
 
echo $ECHO_N "checking for working makeinfo... $ECHO_C" >&6
1366
 
# Run test in a subshell; some versions of sh will print an error if
1367
 
# an executable is not found, even if stderr is redirected.
1368
 
# Redirect stdin to placate older versions of autoconf.  Sigh.
1369
 
if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1370
 
   MAKEINFO=makeinfo
1371
 
   echo "$as_me:1371: result: found" >&5
1372
 
echo "${ECHO_T}found" >&6
1373
 
else
1374
 
   MAKEINFO="$missing_dir/missing makeinfo"
1375
 
   echo "$as_me:1375: result: missing" >&5
1376
 
echo "${ECHO_T}missing" >&6
1377
 
fi
1378
 
 
1379
 
echo "$as_me:1379: checking whether to enable maintainer-specific portions of Makefiles" >&5
1380
 
echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1381
 
    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1382
 
if test "${enable_maintainer_mode+set}" = set; then
1383
 
  enableval="$enable_maintainer_mode"
1384
 
  USE_MAINTAINER_MODE=$enableval
1385
 
else
1386
 
  USE_MAINTAINER_MODE=no
1387
 
fi;
1388
 
  echo "$as_me:1388: result: $USE_MAINTAINER_MODE" >&5
1389
 
echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1390
 
 
1391
 
if test $USE_MAINTAINER_MODE = yes; then
1392
 
  MAINTAINER_MODE_TRUE=
1393
 
  MAINTAINER_MODE_FALSE='#'
1394
 
else
1395
 
  MAINTAINER_MODE_TRUE='#'
1396
 
  MAINTAINER_MODE_FALSE=
1397
 
fi
1398
 
  MAINT=$MAINTAINER_MODE_TRUE
1399
 
 
1400
 
if true; then
1401
 
  INSIDE_GNOME_COMMON_TRUE=
1402
 
  INSIDE_GNOME_COMMON_FALSE='#'
1403
 
else
1404
 
  INSIDE_GNOME_COMMON_TRUE='#'
1405
 
  INSIDE_GNOME_COMMON_FALSE=
1406
 
fi
1407
 
 
1408
 
ac_ext=c
1409
 
ac_cpp='$CPP $CPPFLAGS'
1410
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1411
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1412
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
1413
 
if test -n "$ac_tool_prefix"; then
1414
 
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1415
 
set dummy ${ac_tool_prefix}gcc; ac_word=$2
1416
 
echo "$as_me:1416: checking for $ac_word" >&5
1417
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1418
 
if test "${ac_cv_prog_CC+set}" = set; then
1419
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
1420
 
else
1421
 
  if test -n "$CC"; then
1422
 
  ac_cv_prog_CC="$CC" # Let the user override the test.
1423
 
else
1424
 
  ac_save_IFS=$IFS; IFS=$ac_path_separator
1425
 
ac_dummy="$PATH"
1426
 
for ac_dir in $ac_dummy; do
1427
 
  IFS=$ac_save_IFS
1428
 
  test -z "$ac_dir" && ac_dir=.
1429
 
  $as_executable_p "$ac_dir/$ac_word" || continue
1430
 
ac_cv_prog_CC="${ac_tool_prefix}gcc"
1431
 
echo "$as_me:1431: found $ac_dir/$ac_word" >&5
1432
 
break
1433
 
done
1434
 
 
1435
 
fi
1436
 
fi
1437
 
CC=$ac_cv_prog_CC
1438
 
if test -n "$CC"; then
1439
 
  echo "$as_me:1439: result: $CC" >&5
1440
 
echo "${ECHO_T}$CC" >&6
1441
 
else
1442
 
  echo "$as_me:1442: result: no" >&5
1443
 
echo "${ECHO_T}no" >&6
1444
 
fi
1445
 
 
1446
 
fi
1447
 
if test -z "$ac_cv_prog_CC"; then
1448
 
  ac_ct_CC=$CC
1449
 
  # Extract the first word of "gcc", so it can be a program name with args.
1450
 
set dummy gcc; ac_word=$2
1451
 
echo "$as_me:1451: checking for $ac_word" >&5
1452
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1453
 
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1454
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
1455
 
else
1456
 
  if test -n "$ac_ct_CC"; then
1457
 
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1458
 
else
1459
 
  ac_save_IFS=$IFS; IFS=$ac_path_separator
1460
 
ac_dummy="$PATH"
1461
 
for ac_dir in $ac_dummy; do
1462
 
  IFS=$ac_save_IFS
1463
 
  test -z "$ac_dir" && ac_dir=.
1464
 
  $as_executable_p "$ac_dir/$ac_word" || continue
1465
 
ac_cv_prog_ac_ct_CC="gcc"
1466
 
echo "$as_me:1466: found $ac_dir/$ac_word" >&5
1467
 
break
1468
 
done
1469
 
 
1470
 
fi
1471
 
fi
1472
 
ac_ct_CC=$ac_cv_prog_ac_ct_CC
1473
 
if test -n "$ac_ct_CC"; then
1474
 
  echo "$as_me:1474: result: $ac_ct_CC" >&5
1475
 
echo "${ECHO_T}$ac_ct_CC" >&6
1476
 
else
1477
 
  echo "$as_me:1477: result: no" >&5
1478
 
echo "${ECHO_T}no" >&6
1479
 
fi
1480
 
 
1481
 
  CC=$ac_ct_CC
1482
 
else
1483
 
  CC="$ac_cv_prog_CC"
1484
 
fi
1485
 
 
1486
 
if test -z "$CC"; then
1487
 
  if test -n "$ac_tool_prefix"; then
1488
 
  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1489
 
set dummy ${ac_tool_prefix}cc; ac_word=$2
1490
 
echo "$as_me:1490: checking for $ac_word" >&5
1491
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1492
 
if test "${ac_cv_prog_CC+set}" = set; then
1493
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
1494
 
else
1495
 
  if test -n "$CC"; then
1496
 
  ac_cv_prog_CC="$CC" # Let the user override the test.
1497
 
else
1498
 
  ac_save_IFS=$IFS; IFS=$ac_path_separator
1499
 
ac_dummy="$PATH"
1500
 
for ac_dir in $ac_dummy; do
1501
 
  IFS=$ac_save_IFS
1502
 
  test -z "$ac_dir" && ac_dir=.
1503
 
  $as_executable_p "$ac_dir/$ac_word" || continue
1504
 
ac_cv_prog_CC="${ac_tool_prefix}cc"
1505
 
echo "$as_me:1505: found $ac_dir/$ac_word" >&5
1506
 
break
1507
 
done
1508
 
 
1509
 
fi
1510
 
fi
1511
 
CC=$ac_cv_prog_CC
1512
 
if test -n "$CC"; then
1513
 
  echo "$as_me:1513: result: $CC" >&5
1514
 
echo "${ECHO_T}$CC" >&6
1515
 
else
1516
 
  echo "$as_me:1516: result: no" >&5
1517
 
echo "${ECHO_T}no" >&6
1518
 
fi
1519
 
 
1520
 
fi
1521
 
if test -z "$ac_cv_prog_CC"; then
1522
 
  ac_ct_CC=$CC
1523
 
  # Extract the first word of "cc", so it can be a program name with args.
1524
 
set dummy cc; ac_word=$2
1525
 
echo "$as_me:1525: checking for $ac_word" >&5
1526
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1527
 
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1528
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
1529
 
else
1530
 
  if test -n "$ac_ct_CC"; then
1531
 
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1532
 
else
1533
 
  ac_save_IFS=$IFS; IFS=$ac_path_separator
1534
 
ac_dummy="$PATH"
1535
 
for ac_dir in $ac_dummy; do
1536
 
  IFS=$ac_save_IFS
1537
 
  test -z "$ac_dir" && ac_dir=.
1538
 
  $as_executable_p "$ac_dir/$ac_word" || continue
1539
 
ac_cv_prog_ac_ct_CC="cc"
1540
 
echo "$as_me:1540: found $ac_dir/$ac_word" >&5
1541
 
break
1542
 
done
1543
 
 
1544
 
fi
1545
 
fi
1546
 
ac_ct_CC=$ac_cv_prog_ac_ct_CC
1547
 
if test -n "$ac_ct_CC"; then
1548
 
  echo "$as_me:1548: result: $ac_ct_CC" >&5
1549
 
echo "${ECHO_T}$ac_ct_CC" >&6
1550
 
else
1551
 
  echo "$as_me:1551: result: no" >&5
1552
 
echo "${ECHO_T}no" >&6
1553
 
fi
1554
 
 
1555
 
  CC=$ac_ct_CC
1556
 
else
1557
 
  CC="$ac_cv_prog_CC"
1558
 
fi
1559
 
 
1560
 
fi
1561
 
if test -z "$CC"; then
1562
 
  # Extract the first word of "cc", so it can be a program name with args.
1563
 
set dummy cc; ac_word=$2
1564
 
echo "$as_me:1564: checking for $ac_word" >&5
1565
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1566
 
if test "${ac_cv_prog_CC+set}" = set; then
1567
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
1568
 
else
1569
 
  if test -n "$CC"; then
1570
 
  ac_cv_prog_CC="$CC" # Let the user override the test.
1571
 
else
1572
 
  ac_prog_rejected=no
1573
 
  ac_save_IFS=$IFS; IFS=$ac_path_separator
1574
 
ac_dummy="$PATH"
1575
 
for ac_dir in $ac_dummy; do
1576
 
  IFS=$ac_save_IFS
1577
 
  test -z "$ac_dir" && ac_dir=.
1578
 
  $as_executable_p "$ac_dir/$ac_word" || continue
1579
 
if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1580
 
  ac_prog_rejected=yes
1581
 
  continue
1582
 
fi
1583
 
ac_cv_prog_CC="cc"
1584
 
echo "$as_me:1584: found $ac_dir/$ac_word" >&5
1585
 
break
1586
 
done
1587
 
 
1588
 
if test $ac_prog_rejected = yes; then
1589
 
  # We found a bogon in the path, so make sure we never use it.
1590
 
  set dummy $ac_cv_prog_CC
1591
 
  shift
1592
 
  if test $# != 0; then
1593
 
    # We chose a different compiler from the bogus one.
1594
 
    # However, it has the same basename, so the bogon will be chosen
1595
 
    # first if we set CC to just the basename; use the full file name.
1596
 
    shift
1597
 
    set dummy "$ac_dir/$ac_word" ${1+"$@"}
1598
 
    shift
1599
 
    ac_cv_prog_CC="$@"
1600
 
  fi
1601
 
fi
1602
 
fi
1603
 
fi
1604
 
CC=$ac_cv_prog_CC
1605
 
if test -n "$CC"; then
1606
 
  echo "$as_me:1606: result: $CC" >&5
1607
 
echo "${ECHO_T}$CC" >&6
1608
 
else
1609
 
  echo "$as_me:1609: result: no" >&5
1610
 
echo "${ECHO_T}no" >&6
1611
 
fi
1612
 
 
1613
 
fi
1614
 
if test -z "$CC"; then
1615
 
  if test -n "$ac_tool_prefix"; then
1616
 
  for ac_prog in cl
1617
 
  do
1618
 
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1619
 
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1620
 
echo "$as_me:1620: checking for $ac_word" >&5
1621
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1622
 
if test "${ac_cv_prog_CC+set}" = set; then
1623
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
1624
 
else
1625
 
  if test -n "$CC"; then
1626
 
  ac_cv_prog_CC="$CC" # Let the user override the test.
1627
 
else
1628
 
  ac_save_IFS=$IFS; IFS=$ac_path_separator
1629
 
ac_dummy="$PATH"
1630
 
for ac_dir in $ac_dummy; do
1631
 
  IFS=$ac_save_IFS
1632
 
  test -z "$ac_dir" && ac_dir=.
1633
 
  $as_executable_p "$ac_dir/$ac_word" || continue
1634
 
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1635
 
echo "$as_me:1635: found $ac_dir/$ac_word" >&5
1636
 
break
1637
 
done
1638
 
 
1639
 
fi
1640
 
fi
1641
 
CC=$ac_cv_prog_CC
1642
 
if test -n "$CC"; then
1643
 
  echo "$as_me:1643: result: $CC" >&5
1644
 
echo "${ECHO_T}$CC" >&6
1645
 
else
1646
 
  echo "$as_me:1646: result: no" >&5
1647
 
echo "${ECHO_T}no" >&6
1648
 
fi
1649
 
 
1650
 
    test -n "$CC" && break
1651
 
  done
1652
 
fi
1653
 
if test -z "$CC"; then
1654
 
  ac_ct_CC=$CC
1655
 
  for ac_prog in cl
1656
 
do
1657
 
  # Extract the first word of "$ac_prog", so it can be a program name with args.
1658
 
set dummy $ac_prog; ac_word=$2
1659
 
echo "$as_me:1659: checking for $ac_word" >&5
1660
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1661
 
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1662
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
1663
 
else
1664
 
  if test -n "$ac_ct_CC"; then
1665
 
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1666
 
else
1667
 
  ac_save_IFS=$IFS; IFS=$ac_path_separator
1668
 
ac_dummy="$PATH"
1669
 
for ac_dir in $ac_dummy; do
1670
 
  IFS=$ac_save_IFS
1671
 
  test -z "$ac_dir" && ac_dir=.
1672
 
  $as_executable_p "$ac_dir/$ac_word" || continue
1673
 
ac_cv_prog_ac_ct_CC="$ac_prog"
1674
 
echo "$as_me:1674: found $ac_dir/$ac_word" >&5
1675
 
break
1676
 
done
1677
 
 
1678
 
fi
1679
 
fi
1680
 
ac_ct_CC=$ac_cv_prog_ac_ct_CC
1681
 
if test -n "$ac_ct_CC"; then
1682
 
  echo "$as_me:1682: result: $ac_ct_CC" >&5
1683
 
echo "${ECHO_T}$ac_ct_CC" >&6
1684
 
else
1685
 
  echo "$as_me:1685: result: no" >&5
1686
 
echo "${ECHO_T}no" >&6
1687
 
fi
1688
 
 
1689
 
  test -n "$ac_ct_CC" && break
1690
 
done
1691
 
 
1692
 
  CC=$ac_ct_CC
1693
 
fi
1694
 
 
1695
 
fi
1696
 
 
1697
 
test -z "$CC" && { { echo "$as_me:1697: error: no acceptable cc found in \$PATH" >&5
1698
 
echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1699
 
   { (exit 1); exit 1; }; }
1700
 
 
1701
 
# Provide some information about the compiler.
1702
 
echo "$as_me:1702:" \
1703
 
     "checking for C compiler version" >&5
1704
 
ac_compiler=`set X $ac_compile; echo $2`
1705
 
{ (eval echo "$as_me:1705: \"$ac_compiler --version </dev/null >&5\"") >&5
1706
 
  (eval $ac_compiler --version </dev/null >&5) 2>&5
1707
 
  ac_status=$?
1708
 
  echo "$as_me:1708: \$? = $ac_status" >&5
1709
 
  (exit $ac_status); }
1710
 
{ (eval echo "$as_me:1710: \"$ac_compiler -v </dev/null >&5\"") >&5
1711
 
  (eval $ac_compiler -v </dev/null >&5) 2>&5
1712
 
  ac_status=$?
1713
 
  echo "$as_me:1713: \$? = $ac_status" >&5
1714
 
  (exit $ac_status); }
1715
 
{ (eval echo "$as_me:1715: \"$ac_compiler -V </dev/null >&5\"") >&5
1716
 
  (eval $ac_compiler -V </dev/null >&5) 2>&5
1717
 
  ac_status=$?
1718
 
  echo "$as_me:1718: \$? = $ac_status" >&5
1719
 
  (exit $ac_status); }
1720
 
 
1721
 
cat >conftest.$ac_ext <<_ACEOF
1722
 
#line 1722 "configure"
1723
 
#include "confdefs.h"
1724
 
 
1725
 
int
1726
 
main ()
1727
 
{
1728
 
 
1729
 
  ;
1730
 
  return 0;
1731
 
}
1732
 
_ACEOF
1733
 
ac_clean_files_save=$ac_clean_files
1734
 
ac_clean_files="$ac_clean_files a.out a.exe"
1735
 
# Try to create an executable without -o first, disregard a.out.
1736
 
# It will help us diagnose broken compilers, and finding out an intuition
1737
 
# of exeext.
1738
 
echo "$as_me:1738: checking for C compiler default output" >&5
1739
 
echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1740
 
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1741
 
if { (eval echo "$as_me:1741: \"$ac_link_default\"") >&5
1742
 
  (eval $ac_link_default) 2>&5
1743
 
  ac_status=$?
1744
 
  echo "$as_me:1744: \$? = $ac_status" >&5
1745
 
  (exit $ac_status); }; then
1746
 
  # Find the output, starting from the most likely.  This scheme is
1747
 
# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1748
 
# resort.
1749
 
for ac_file in `ls a.exe conftest.exe 2>/dev/null;
1750
 
                ls a.out conftest 2>/dev/null;
1751
 
                ls a.* conftest.* 2>/dev/null`; do
1752
 
  case $ac_file in
1753
 
    *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1754
 
    a.out ) # We found the default executable, but exeext='' is most
1755
 
            # certainly right.
1756
 
            break;;
1757
 
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1758
 
          # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1759
 
          export ac_cv_exeext
1760
 
          break;;
1761
 
    * ) break;;
1762
 
  esac
1763
 
done
1764
 
else
1765
 
  echo "$as_me: failed program was:" >&5
1766
 
cat conftest.$ac_ext >&5
1767
 
{ { echo "$as_me:1767: error: C compiler cannot create executables" >&5
1768
 
echo "$as_me: error: C compiler cannot create executables" >&2;}
1769
 
   { (exit 77); exit 77; }; }
1770
 
fi
1771
 
 
1772
 
ac_exeext=$ac_cv_exeext
1773
 
echo "$as_me:1773: result: $ac_file" >&5
1774
 
echo "${ECHO_T}$ac_file" >&6
1775
 
 
1776
 
# Check the compiler produces executables we can run.  If not, either
1777
 
# the compiler is broken, or we cross compile.
1778
 
echo "$as_me:1778: checking whether the C compiler works" >&5
1779
 
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1780
 
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1781
 
# If not cross compiling, check that we can run a simple program.
1782
 
if test "$cross_compiling" != yes; then
1783
 
  if { ac_try='./$ac_file'
1784
 
  { (eval echo "$as_me:1784: \"$ac_try\"") >&5
1785
 
  (eval $ac_try) 2>&5
1786
 
  ac_status=$?
1787
 
  echo "$as_me:1787: \$? = $ac_status" >&5
1788
 
  (exit $ac_status); }; }; then
1789
 
    cross_compiling=no
1790
 
  else
1791
 
    if test "$cross_compiling" = maybe; then
1792
 
        cross_compiling=yes
1793
 
    else
1794
 
        { { echo "$as_me:1794: error: cannot run C compiled programs.
1795
 
If you meant to cross compile, use \`--host'." >&5
1796
 
echo "$as_me: error: cannot run C compiled programs.
1797
 
If you meant to cross compile, use \`--host'." >&2;}
1798
 
   { (exit 1); exit 1; }; }
1799
 
    fi
1800
 
  fi
1801
 
fi
1802
 
echo "$as_me:1802: result: yes" >&5
1803
 
echo "${ECHO_T}yes" >&6
1804
 
 
1805
 
rm -f a.out a.exe conftest$ac_cv_exeext
1806
 
ac_clean_files=$ac_clean_files_save
1807
 
# Check the compiler produces executables we can run.  If not, either
1808
 
# the compiler is broken, or we cross compile.
1809
 
echo "$as_me:1809: checking whether we are cross compiling" >&5
1810
 
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1811
 
echo "$as_me:1811: result: $cross_compiling" >&5
1812
 
echo "${ECHO_T}$cross_compiling" >&6
1813
 
 
1814
 
echo "$as_me:1814: checking for executable suffix" >&5
1815
 
echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1816
 
if { (eval echo "$as_me:1816: \"$ac_link\"") >&5
1817
 
  (eval $ac_link) 2>&5
1818
 
  ac_status=$?
1819
 
  echo "$as_me:1819: \$? = $ac_status" >&5
1820
 
  (exit $ac_status); }; then
1821
 
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
1822
 
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1823
 
# work properly (i.e., refer to `conftest.exe'), while it won't with
1824
 
# `rm'.
1825
 
for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1826
 
  case $ac_file in
1827
 
    *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1828
 
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1829
 
          export ac_cv_exeext
1830
 
          break;;
1831
 
    * ) break;;
1832
 
  esac
1833
 
done
1834
 
else
1835
 
  { { echo "$as_me:1835: error: cannot compute EXEEXT: cannot compile and link" >&5
1836
 
echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
1837
 
   { (exit 1); exit 1; }; }
1838
 
fi
1839
 
 
1840
 
rm -f conftest$ac_cv_exeext
1841
 
echo "$as_me:1841: result: $ac_cv_exeext" >&5
1842
 
echo "${ECHO_T}$ac_cv_exeext" >&6
1843
 
 
1844
 
rm -f conftest.$ac_ext
1845
 
EXEEXT=$ac_cv_exeext
1846
 
ac_exeext=$EXEEXT
1847
 
echo "$as_me:1847: checking for object suffix" >&5
1848
 
echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
1849
 
if test "${ac_cv_objext+set}" = set; then
1850
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
1851
 
else
1852
 
  cat >conftest.$ac_ext <<_ACEOF
1853
 
#line 1853 "configure"
1854
 
#include "confdefs.h"
1855
 
 
1856
 
int
1857
 
main ()
1858
 
{
1859
 
 
1860
 
  ;
1861
 
  return 0;
1862
 
}
1863
 
_ACEOF
1864
 
rm -f conftest.o conftest.obj
1865
 
if { (eval echo "$as_me:1865: \"$ac_compile\"") >&5
1866
 
  (eval $ac_compile) 2>&5
1867
 
  ac_status=$?
1868
 
  echo "$as_me:1868: \$? = $ac_status" >&5
1869
 
  (exit $ac_status); }; then
1870
 
  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1871
 
  case $ac_file in
1872
 
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
1873
 
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1874
 
       break;;
1875
 
  esac
1876
 
done
1877
 
else
1878
 
  echo "$as_me: failed program was:" >&5
1879
 
cat conftest.$ac_ext >&5
1880
 
{ { echo "$as_me:1880: error: cannot compute OBJEXT: cannot compile" >&5
1881
 
echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
1882
 
   { (exit 1); exit 1; }; }
1883
 
fi
1884
 
 
1885
 
rm -f conftest.$ac_cv_objext conftest.$ac_ext
1886
 
fi
1887
 
echo "$as_me:1887: result: $ac_cv_objext" >&5
1888
 
echo "${ECHO_T}$ac_cv_objext" >&6
1889
 
OBJEXT=$ac_cv_objext
1890
 
ac_objext=$OBJEXT
1891
 
echo "$as_me:1891: checking whether we are using the GNU C compiler" >&5
1892
 
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1893
 
if test "${ac_cv_c_compiler_gnu+set}" = set; then
1894
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
1895
 
else
1896
 
  cat >conftest.$ac_ext <<_ACEOF
1897
 
#line 1897 "configure"
1898
 
#include "confdefs.h"
1899
 
 
1900
 
int
1901
 
main ()
1902
 
{
1903
 
#ifndef __GNUC__
1904
 
       choke me
1905
 
#endif
1906
 
 
1907
 
  ;
1908
 
  return 0;
1909
 
}
1910
 
_ACEOF
1911
 
rm -f conftest.$ac_objext
1912
 
if { (eval echo "$as_me:1912: \"$ac_compile\"") >&5
1913
 
  (eval $ac_compile) 2>&5
1914
 
  ac_status=$?
1915
 
  echo "$as_me:1915: \$? = $ac_status" >&5
1916
 
  (exit $ac_status); } &&
1917
 
         { ac_try='test -s conftest.$ac_objext'
1918
 
  { (eval echo "$as_me:1918: \"$ac_try\"") >&5
1919
 
  (eval $ac_try) 2>&5
1920
 
  ac_status=$?
1921
 
  echo "$as_me:1921: \$? = $ac_status" >&5
1922
 
  (exit $ac_status); }; }; then
1923
 
  ac_compiler_gnu=yes
1924
 
else
1925
 
  echo "$as_me: failed program was:" >&5
1926
 
cat conftest.$ac_ext >&5
1927
 
ac_compiler_gnu=no
1928
 
fi
1929
 
rm -f conftest.$ac_objext conftest.$ac_ext
1930
 
ac_cv_c_compiler_gnu=$ac_compiler_gnu
1931
 
 
1932
 
fi
1933
 
echo "$as_me:1933: result: $ac_cv_c_compiler_gnu" >&5
1934
 
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1935
 
GCC=`test $ac_compiler_gnu = yes && echo yes`
1936
 
ac_test_CFLAGS=${CFLAGS+set}
1937
 
ac_save_CFLAGS=$CFLAGS
1938
 
CFLAGS="-g"
1939
 
echo "$as_me:1939: checking whether $CC accepts -g" >&5
1940
 
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1941
 
if test "${ac_cv_prog_cc_g+set}" = set; then
1942
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
1943
 
else
1944
 
  cat >conftest.$ac_ext <<_ACEOF
1945
 
#line 1945 "configure"
1946
 
#include "confdefs.h"
1947
 
 
1948
 
int
1949
 
main ()
1950
 
{
1951
 
 
1952
 
  ;
1953
 
  return 0;
1954
 
}
1955
 
_ACEOF
1956
 
rm -f conftest.$ac_objext
1957
 
if { (eval echo "$as_me:1957: \"$ac_compile\"") >&5
1958
 
  (eval $ac_compile) 2>&5
1959
 
  ac_status=$?
1960
 
  echo "$as_me:1960: \$? = $ac_status" >&5
1961
 
  (exit $ac_status); } &&
1962
 
         { ac_try='test -s conftest.$ac_objext'
1963
 
  { (eval echo "$as_me:1963: \"$ac_try\"") >&5
1964
 
  (eval $ac_try) 2>&5
1965
 
  ac_status=$?
1966
 
  echo "$as_me:1966: \$? = $ac_status" >&5
1967
 
  (exit $ac_status); }; }; then
1968
 
  ac_cv_prog_cc_g=yes
1969
 
else
1970
 
  echo "$as_me: failed program was:" >&5
1971
 
cat conftest.$ac_ext >&5
1972
 
ac_cv_prog_cc_g=no
1973
 
fi
1974
 
rm -f conftest.$ac_objext conftest.$ac_ext
1975
 
fi
1976
 
echo "$as_me:1976: result: $ac_cv_prog_cc_g" >&5
1977
 
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1978
 
if test "$ac_test_CFLAGS" = set; then
1979
 
  CFLAGS=$ac_save_CFLAGS
1980
 
elif test $ac_cv_prog_cc_g = yes; then
1981
 
  if test "$GCC" = yes; then
1982
 
    CFLAGS="-g -O2"
1983
 
  else
1984
 
    CFLAGS="-g"
1985
 
  fi
1986
 
else
1987
 
  if test "$GCC" = yes; then
1988
 
    CFLAGS="-O2"
1989
 
  else
1990
 
    CFLAGS=
1991
 
  fi
1992
 
fi
1993
 
# Some people use a C++ compiler to compile C.  Since we use `exit',
1994
 
# in C++ we need to declare it.  In case someone uses the same compiler
1995
 
# for both compiling C and C++ we need to have the C++ compiler decide
1996
 
# the declaration of exit, since it's the most demanding environment.
1997
 
cat >conftest.$ac_ext <<_ACEOF
1998
 
#ifndef __cplusplus
1999
 
  choke me
2000
 
#endif
2001
 
_ACEOF
2002
 
rm -f conftest.$ac_objext
2003
 
if { (eval echo "$as_me:2003: \"$ac_compile\"") >&5
2004
 
  (eval $ac_compile) 2>&5
2005
 
  ac_status=$?
2006
 
  echo "$as_me:2006: \$? = $ac_status" >&5
2007
 
  (exit $ac_status); } &&
2008
 
         { ac_try='test -s conftest.$ac_objext'
2009
 
  { (eval echo "$as_me:2009: \"$ac_try\"") >&5
2010
 
  (eval $ac_try) 2>&5
2011
 
  ac_status=$?
2012
 
  echo "$as_me:2012: \$? = $ac_status" >&5
2013
 
  (exit $ac_status); }; }; then
2014
 
  for ac_declaration in \
2015
 
   ''\
2016
 
   '#include <stdlib.h>' \
2017
 
   'extern "C" void std::exit (int) throw (); using std::exit;' \
2018
 
   'extern "C" void std::exit (int); using std::exit;' \
2019
 
   'extern "C" void exit (int) throw ();' \
2020
 
   'extern "C" void exit (int);' \
2021
 
   'void exit (int);'
2022
 
do
2023
 
  cat >conftest.$ac_ext <<_ACEOF
2024
 
#line 2024 "configure"
2025
 
#include "confdefs.h"
2026
 
#include <stdlib.h>
2027
 
$ac_declaration
2028
 
int
2029
 
main ()
2030
 
{
2031
 
exit (42);
2032
 
  ;
2033
 
  return 0;
2034
 
}
2035
 
_ACEOF
2036
 
rm -f conftest.$ac_objext
2037
 
if { (eval echo "$as_me:2037: \"$ac_compile\"") >&5
2038
 
  (eval $ac_compile) 2>&5
2039
 
  ac_status=$?
2040
 
  echo "$as_me:2040: \$? = $ac_status" >&5
2041
 
  (exit $ac_status); } &&
2042
 
         { ac_try='test -s conftest.$ac_objext'
2043
 
  { (eval echo "$as_me:2043: \"$ac_try\"") >&5
2044
 
  (eval $ac_try) 2>&5
2045
 
  ac_status=$?
2046
 
  echo "$as_me:2046: \$? = $ac_status" >&5
2047
 
  (exit $ac_status); }; }; then
2048
 
  :
2049
 
else
2050
 
  echo "$as_me: failed program was:" >&5
2051
 
cat conftest.$ac_ext >&5
2052
 
continue
2053
 
fi
2054
 
rm -f conftest.$ac_objext conftest.$ac_ext
2055
 
  cat >conftest.$ac_ext <<_ACEOF
2056
 
#line 2056 "configure"
2057
 
#include "confdefs.h"
2058
 
$ac_declaration
2059
 
int
2060
 
main ()
2061
 
{
2062
 
exit (42);
2063
 
  ;
2064
 
  return 0;
2065
 
}
2066
 
_ACEOF
2067
 
rm -f conftest.$ac_objext
2068
 
if { (eval echo "$as_me:2068: \"$ac_compile\"") >&5
2069
 
  (eval $ac_compile) 2>&5
2070
 
  ac_status=$?
2071
 
  echo "$as_me:2071: \$? = $ac_status" >&5
2072
 
  (exit $ac_status); } &&
2073
 
         { ac_try='test -s conftest.$ac_objext'
2074
 
  { (eval echo "$as_me:2074: \"$ac_try\"") >&5
2075
 
  (eval $ac_try) 2>&5
2076
 
  ac_status=$?
2077
 
  echo "$as_me:2077: \$? = $ac_status" >&5
2078
 
  (exit $ac_status); }; }; then
2079
 
  break
2080
 
else
2081
 
  echo "$as_me: failed program was:" >&5
2082
 
cat conftest.$ac_ext >&5
2083
 
fi
2084
 
rm -f conftest.$ac_objext conftest.$ac_ext
2085
 
done
2086
 
rm -f conftest*
2087
 
if test -n "$ac_declaration"; then
2088
 
  echo '#ifdef __cplusplus' >>confdefs.h
2089
 
  echo $ac_declaration      >>confdefs.h
2090
 
  echo '#endif'             >>confdefs.h
2091
 
fi
2092
 
 
2093
 
else
2094
 
  echo "$as_me: failed program was:" >&5
2095
 
cat conftest.$ac_ext >&5
2096
 
fi
2097
 
rm -f conftest.$ac_objext conftest.$ac_ext
2098
 
ac_ext=c
2099
 
ac_cpp='$CPP $CPPFLAGS'
2100
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2101
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2102
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2103
 
 
2104
 
        echo "$as_me:2104: checking for strerror in -lcposix" >&5
2105
 
echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6
2106
 
if test "${ac_cv_lib_cposix_strerror+set}" = set; then
2107
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
2108
 
else
2109
 
  ac_check_lib_save_LIBS=$LIBS
2110
 
LIBS="-lcposix  $LIBS"
2111
 
cat >conftest.$ac_ext <<_ACEOF
2112
 
#line 2112 "configure"
2113
 
#include "confdefs.h"
2114
 
 
2115
 
/* Override any gcc2 internal prototype to avoid an error.  */
2116
 
#ifdef __cplusplus
2117
 
extern "C"
2118
 
#endif
2119
 
/* We use char because int might match the return type of a gcc2
2120
 
   builtin and then its argument prototype would still apply.  */
2121
 
char strerror ();
2122
 
int
2123
 
main ()
2124
 
{
2125
 
strerror ();
2126
 
  ;
2127
 
  return 0;
2128
 
}
2129
 
_ACEOF
2130
 
rm -f conftest.$ac_objext conftest$ac_exeext
2131
 
if { (eval echo "$as_me:2131: \"$ac_link\"") >&5
2132
 
  (eval $ac_link) 2>&5
2133
 
  ac_status=$?
2134
 
  echo "$as_me:2134: \$? = $ac_status" >&5
2135
 
  (exit $ac_status); } &&
2136
 
         { ac_try='test -s conftest$ac_exeext'
2137
 
  { (eval echo "$as_me:2137: \"$ac_try\"") >&5
2138
 
  (eval $ac_try) 2>&5
2139
 
  ac_status=$?
2140
 
  echo "$as_me:2140: \$? = $ac_status" >&5
2141
 
  (exit $ac_status); }; }; then
2142
 
  ac_cv_lib_cposix_strerror=yes
2143
 
else
2144
 
  echo "$as_me: failed program was:" >&5
2145
 
cat conftest.$ac_ext >&5
2146
 
ac_cv_lib_cposix_strerror=no
2147
 
fi
2148
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2149
 
LIBS=$ac_check_lib_save_LIBS
2150
 
fi
2151
 
echo "$as_me:2151: result: $ac_cv_lib_cposix_strerror" >&5
2152
 
echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6
2153
 
if test $ac_cv_lib_cposix_strerror = yes; then
2154
 
  LIBS="$LIBS -lcposix"
2155
 
fi
2156
 
 
2157
 
ac_ext=c
2158
 
ac_cpp='$CPP $CPPFLAGS'
2159
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2160
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2161
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2162
 
if test -n "$ac_tool_prefix"; then
2163
 
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2164
 
set dummy ${ac_tool_prefix}gcc; ac_word=$2
2165
 
echo "$as_me:2165: checking for $ac_word" >&5
2166
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2167
 
if test "${ac_cv_prog_CC+set}" = set; then
2168
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
2169
 
else
2170
 
  if test -n "$CC"; then
2171
 
  ac_cv_prog_CC="$CC" # Let the user override the test.
2172
 
else
2173
 
  ac_save_IFS=$IFS; IFS=$ac_path_separator
2174
 
ac_dummy="$PATH"
2175
 
for ac_dir in $ac_dummy; do
2176
 
  IFS=$ac_save_IFS
2177
 
  test -z "$ac_dir" && ac_dir=.
2178
 
  $as_executable_p "$ac_dir/$ac_word" || continue
2179
 
ac_cv_prog_CC="${ac_tool_prefix}gcc"
2180
 
echo "$as_me:2180: found $ac_dir/$ac_word" >&5
2181
 
break
2182
 
done
2183
 
 
2184
 
fi
2185
 
fi
2186
 
CC=$ac_cv_prog_CC
2187
 
if test -n "$CC"; then
2188
 
  echo "$as_me:2188: result: $CC" >&5
2189
 
echo "${ECHO_T}$CC" >&6
2190
 
else
2191
 
  echo "$as_me:2191: result: no" >&5
2192
 
echo "${ECHO_T}no" >&6
2193
 
fi
2194
 
 
2195
 
fi
2196
 
if test -z "$ac_cv_prog_CC"; then
2197
 
  ac_ct_CC=$CC
2198
 
  # Extract the first word of "gcc", so it can be a program name with args.
2199
 
set dummy gcc; ac_word=$2
2200
 
echo "$as_me:2200: checking for $ac_word" >&5
2201
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2202
 
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2203
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
2204
 
else
2205
 
  if test -n "$ac_ct_CC"; then
2206
 
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2207
 
else
2208
 
  ac_save_IFS=$IFS; IFS=$ac_path_separator
2209
 
ac_dummy="$PATH"
2210
 
for ac_dir in $ac_dummy; do
2211
 
  IFS=$ac_save_IFS
2212
 
  test -z "$ac_dir" && ac_dir=.
2213
 
  $as_executable_p "$ac_dir/$ac_word" || continue
2214
 
ac_cv_prog_ac_ct_CC="gcc"
2215
 
echo "$as_me:2215: found $ac_dir/$ac_word" >&5
2216
 
break
2217
 
done
2218
 
 
2219
 
fi
2220
 
fi
2221
 
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2222
 
if test -n "$ac_ct_CC"; then
2223
 
  echo "$as_me:2223: result: $ac_ct_CC" >&5
2224
 
echo "${ECHO_T}$ac_ct_CC" >&6
2225
 
else
2226
 
  echo "$as_me:2226: result: no" >&5
2227
 
echo "${ECHO_T}no" >&6
2228
 
fi
2229
 
 
2230
 
  CC=$ac_ct_CC
2231
 
else
2232
 
  CC="$ac_cv_prog_CC"
2233
 
fi
2234
 
 
2235
 
if test -z "$CC"; then
2236
 
  if test -n "$ac_tool_prefix"; then
2237
 
  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2238
 
set dummy ${ac_tool_prefix}cc; ac_word=$2
2239
 
echo "$as_me:2239: checking for $ac_word" >&5
2240
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2241
 
if test "${ac_cv_prog_CC+set}" = set; then
2242
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
2243
 
else
2244
 
  if test -n "$CC"; then
2245
 
  ac_cv_prog_CC="$CC" # Let the user override the test.
2246
 
else
2247
 
  ac_save_IFS=$IFS; IFS=$ac_path_separator
2248
 
ac_dummy="$PATH"
2249
 
for ac_dir in $ac_dummy; do
2250
 
  IFS=$ac_save_IFS
2251
 
  test -z "$ac_dir" && ac_dir=.
2252
 
  $as_executable_p "$ac_dir/$ac_word" || continue
2253
 
ac_cv_prog_CC="${ac_tool_prefix}cc"
2254
 
echo "$as_me:2254: found $ac_dir/$ac_word" >&5
2255
 
break
2256
 
done
2257
 
 
2258
 
fi
2259
 
fi
2260
 
CC=$ac_cv_prog_CC
2261
 
if test -n "$CC"; then
2262
 
  echo "$as_me:2262: result: $CC" >&5
2263
 
echo "${ECHO_T}$CC" >&6
2264
 
else
2265
 
  echo "$as_me:2265: result: no" >&5
2266
 
echo "${ECHO_T}no" >&6
2267
 
fi
2268
 
 
2269
 
fi
2270
 
if test -z "$ac_cv_prog_CC"; then
2271
 
  ac_ct_CC=$CC
2272
 
  # Extract the first word of "cc", so it can be a program name with args.
2273
 
set dummy cc; ac_word=$2
2274
 
echo "$as_me:2274: checking for $ac_word" >&5
2275
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2276
 
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2277
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
2278
 
else
2279
 
  if test -n "$ac_ct_CC"; then
2280
 
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2281
 
else
2282
 
  ac_save_IFS=$IFS; IFS=$ac_path_separator
2283
 
ac_dummy="$PATH"
2284
 
for ac_dir in $ac_dummy; do
2285
 
  IFS=$ac_save_IFS
2286
 
  test -z "$ac_dir" && ac_dir=.
2287
 
  $as_executable_p "$ac_dir/$ac_word" || continue
2288
 
ac_cv_prog_ac_ct_CC="cc"
2289
 
echo "$as_me:2289: found $ac_dir/$ac_word" >&5
2290
 
break
2291
 
done
2292
 
 
2293
 
fi
2294
 
fi
2295
 
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2296
 
if test -n "$ac_ct_CC"; then
2297
 
  echo "$as_me:2297: result: $ac_ct_CC" >&5
2298
 
echo "${ECHO_T}$ac_ct_CC" >&6
2299
 
else
2300
 
  echo "$as_me:2300: result: no" >&5
2301
 
echo "${ECHO_T}no" >&6
2302
 
fi
2303
 
 
2304
 
  CC=$ac_ct_CC
2305
 
else
2306
 
  CC="$ac_cv_prog_CC"
2307
 
fi
2308
 
 
2309
 
fi
2310
 
if test -z "$CC"; then
2311
 
  # Extract the first word of "cc", so it can be a program name with args.
2312
 
set dummy cc; ac_word=$2
2313
 
echo "$as_me:2313: checking for $ac_word" >&5
2314
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2315
 
if test "${ac_cv_prog_CC+set}" = set; then
2316
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
2317
 
else
2318
 
  if test -n "$CC"; then
2319
 
  ac_cv_prog_CC="$CC" # Let the user override the test.
2320
 
else
2321
 
  ac_prog_rejected=no
2322
 
  ac_save_IFS=$IFS; IFS=$ac_path_separator
2323
 
ac_dummy="$PATH"
2324
 
for ac_dir in $ac_dummy; do
2325
 
  IFS=$ac_save_IFS
2326
 
  test -z "$ac_dir" && ac_dir=.
2327
 
  $as_executable_p "$ac_dir/$ac_word" || continue
2328
 
if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
2329
 
  ac_prog_rejected=yes
2330
 
  continue
2331
 
fi
2332
 
ac_cv_prog_CC="cc"
2333
 
echo "$as_me:2333: found $ac_dir/$ac_word" >&5
2334
 
break
2335
 
done
2336
 
 
2337
 
if test $ac_prog_rejected = yes; then
2338
 
  # We found a bogon in the path, so make sure we never use it.
2339
 
  set dummy $ac_cv_prog_CC
2340
 
  shift
2341
 
  if test $# != 0; then
2342
 
    # We chose a different compiler from the bogus one.
2343
 
    # However, it has the same basename, so the bogon will be chosen
2344
 
    # first if we set CC to just the basename; use the full file name.
2345
 
    shift
2346
 
    set dummy "$ac_dir/$ac_word" ${1+"$@"}
2347
 
    shift
2348
 
    ac_cv_prog_CC="$@"
2349
 
  fi
2350
 
fi
2351
 
fi
2352
 
fi
2353
 
CC=$ac_cv_prog_CC
2354
 
if test -n "$CC"; then
2355
 
  echo "$as_me:2355: result: $CC" >&5
2356
 
echo "${ECHO_T}$CC" >&6
2357
 
else
2358
 
  echo "$as_me:2358: result: no" >&5
2359
 
echo "${ECHO_T}no" >&6
2360
 
fi
2361
 
 
2362
 
fi
2363
 
if test -z "$CC"; then
2364
 
  if test -n "$ac_tool_prefix"; then
2365
 
  for ac_prog in cl
2366
 
  do
2367
 
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2368
 
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2369
 
echo "$as_me:2369: checking for $ac_word" >&5
2370
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2371
 
if test "${ac_cv_prog_CC+set}" = set; then
2372
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
2373
 
else
2374
 
  if test -n "$CC"; then
2375
 
  ac_cv_prog_CC="$CC" # Let the user override the test.
2376
 
else
2377
 
  ac_save_IFS=$IFS; IFS=$ac_path_separator
2378
 
ac_dummy="$PATH"
2379
 
for ac_dir in $ac_dummy; do
2380
 
  IFS=$ac_save_IFS
2381
 
  test -z "$ac_dir" && ac_dir=.
2382
 
  $as_executable_p "$ac_dir/$ac_word" || continue
2383
 
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2384
 
echo "$as_me:2384: found $ac_dir/$ac_word" >&5
2385
 
break
2386
 
done
2387
 
 
2388
 
fi
2389
 
fi
2390
 
CC=$ac_cv_prog_CC
2391
 
if test -n "$CC"; then
2392
 
  echo "$as_me:2392: result: $CC" >&5
2393
 
echo "${ECHO_T}$CC" >&6
2394
 
else
2395
 
  echo "$as_me:2395: result: no" >&5
2396
 
echo "${ECHO_T}no" >&6
2397
 
fi
2398
 
 
2399
 
    test -n "$CC" && break
2400
 
  done
2401
 
fi
2402
 
if test -z "$CC"; then
2403
 
  ac_ct_CC=$CC
2404
 
  for ac_prog in cl
2405
 
do
2406
 
  # Extract the first word of "$ac_prog", so it can be a program name with args.
2407
 
set dummy $ac_prog; ac_word=$2
2408
 
echo "$as_me:2408: checking for $ac_word" >&5
2409
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2410
 
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2411
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
2412
 
else
2413
 
  if test -n "$ac_ct_CC"; then
2414
 
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2415
 
else
2416
 
  ac_save_IFS=$IFS; IFS=$ac_path_separator
2417
 
ac_dummy="$PATH"
2418
 
for ac_dir in $ac_dummy; do
2419
 
  IFS=$ac_save_IFS
2420
 
  test -z "$ac_dir" && ac_dir=.
2421
 
  $as_executable_p "$ac_dir/$ac_word" || continue
2422
 
ac_cv_prog_ac_ct_CC="$ac_prog"
2423
 
echo "$as_me:2423: found $ac_dir/$ac_word" >&5
2424
 
break
2425
 
done
2426
 
 
2427
 
fi
2428
 
fi
2429
 
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2430
 
if test -n "$ac_ct_CC"; then
2431
 
  echo "$as_me:2431: result: $ac_ct_CC" >&5
2432
 
echo "${ECHO_T}$ac_ct_CC" >&6
2433
 
else
2434
 
  echo "$as_me:2434: result: no" >&5
2435
 
echo "${ECHO_T}no" >&6
2436
 
fi
2437
 
 
2438
 
  test -n "$ac_ct_CC" && break
2439
 
done
2440
 
 
2441
 
  CC=$ac_ct_CC
2442
 
fi
2443
 
 
2444
 
fi
2445
 
 
2446
 
test -z "$CC" && { { echo "$as_me:2446: error: no acceptable cc found in \$PATH" >&5
2447
 
echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
2448
 
   { (exit 1); exit 1; }; }
2449
 
 
2450
 
# Provide some information about the compiler.
2451
 
echo "$as_me:2451:" \
2452
 
     "checking for C compiler version" >&5
2453
 
ac_compiler=`set X $ac_compile; echo $2`
2454
 
{ (eval echo "$as_me:2454: \"$ac_compiler --version </dev/null >&5\"") >&5
2455
 
  (eval $ac_compiler --version </dev/null >&5) 2>&5
2456
 
  ac_status=$?
2457
 
  echo "$as_me:2457: \$? = $ac_status" >&5
2458
 
  (exit $ac_status); }
2459
 
{ (eval echo "$as_me:2459: \"$ac_compiler -v </dev/null >&5\"") >&5
2460
 
  (eval $ac_compiler -v </dev/null >&5) 2>&5
2461
 
  ac_status=$?
2462
 
  echo "$as_me:2462: \$? = $ac_status" >&5
2463
 
  (exit $ac_status); }
2464
 
{ (eval echo "$as_me:2464: \"$ac_compiler -V </dev/null >&5\"") >&5
2465
 
  (eval $ac_compiler -V </dev/null >&5) 2>&5
2466
 
  ac_status=$?
2467
 
  echo "$as_me:2467: \$? = $ac_status" >&5
2468
 
  (exit $ac_status); }
2469
 
 
2470
 
echo "$as_me:2470: checking whether we are using the GNU C compiler" >&5
2471
 
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2472
 
if test "${ac_cv_c_compiler_gnu+set}" = set; then
2473
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
2474
 
else
2475
 
  cat >conftest.$ac_ext <<_ACEOF
2476
 
#line 2476 "configure"
2477
 
#include "confdefs.h"
2478
 
 
2479
 
int
2480
 
main ()
2481
 
{
2482
 
#ifndef __GNUC__
2483
 
       choke me
2484
 
#endif
2485
 
 
2486
 
  ;
2487
 
  return 0;
2488
 
}
2489
 
_ACEOF
2490
 
rm -f conftest.$ac_objext
2491
 
if { (eval echo "$as_me:2491: \"$ac_compile\"") >&5
2492
 
  (eval $ac_compile) 2>&5
2493
 
  ac_status=$?
2494
 
  echo "$as_me:2494: \$? = $ac_status" >&5
2495
 
  (exit $ac_status); } &&
2496
 
         { ac_try='test -s conftest.$ac_objext'
2497
 
  { (eval echo "$as_me:2497: \"$ac_try\"") >&5
2498
 
  (eval $ac_try) 2>&5
2499
 
  ac_status=$?
2500
 
  echo "$as_me:2500: \$? = $ac_status" >&5
2501
 
  (exit $ac_status); }; }; then
2502
 
  ac_compiler_gnu=yes
2503
 
else
2504
 
  echo "$as_me: failed program was:" >&5
2505
 
cat conftest.$ac_ext >&5
2506
 
ac_compiler_gnu=no
2507
 
fi
2508
 
rm -f conftest.$ac_objext conftest.$ac_ext
2509
 
ac_cv_c_compiler_gnu=$ac_compiler_gnu
2510
 
 
2511
 
fi
2512
 
echo "$as_me:2512: result: $ac_cv_c_compiler_gnu" >&5
2513
 
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2514
 
GCC=`test $ac_compiler_gnu = yes && echo yes`
2515
 
ac_test_CFLAGS=${CFLAGS+set}
2516
 
ac_save_CFLAGS=$CFLAGS
2517
 
CFLAGS="-g"
2518
 
echo "$as_me:2518: checking whether $CC accepts -g" >&5
2519
 
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2520
 
if test "${ac_cv_prog_cc_g+set}" = set; then
2521
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
2522
 
else
2523
 
  cat >conftest.$ac_ext <<_ACEOF
2524
 
#line 2524 "configure"
2525
 
#include "confdefs.h"
2526
 
 
2527
 
int
2528
 
main ()
2529
 
{
2530
 
 
2531
 
  ;
2532
 
  return 0;
2533
 
}
2534
 
_ACEOF
2535
 
rm -f conftest.$ac_objext
2536
 
if { (eval echo "$as_me:2536: \"$ac_compile\"") >&5
2537
 
  (eval $ac_compile) 2>&5
2538
 
  ac_status=$?
2539
 
  echo "$as_me:2539: \$? = $ac_status" >&5
2540
 
  (exit $ac_status); } &&
2541
 
         { ac_try='test -s conftest.$ac_objext'
2542
 
  { (eval echo "$as_me:2542: \"$ac_try\"") >&5
2543
 
  (eval $ac_try) 2>&5
2544
 
  ac_status=$?
2545
 
  echo "$as_me:2545: \$? = $ac_status" >&5
2546
 
  (exit $ac_status); }; }; then
2547
 
  ac_cv_prog_cc_g=yes
2548
 
else
2549
 
  echo "$as_me: failed program was:" >&5
2550
 
cat conftest.$ac_ext >&5
2551
 
ac_cv_prog_cc_g=no
2552
 
fi
2553
 
rm -f conftest.$ac_objext conftest.$ac_ext
2554
 
fi
2555
 
echo "$as_me:2555: result: $ac_cv_prog_cc_g" >&5
2556
 
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2557
 
if test "$ac_test_CFLAGS" = set; then
2558
 
  CFLAGS=$ac_save_CFLAGS
2559
 
elif test $ac_cv_prog_cc_g = yes; then
2560
 
  if test "$GCC" = yes; then
2561
 
    CFLAGS="-g -O2"
2562
 
  else
2563
 
    CFLAGS="-g"
2564
 
  fi
2565
 
else
2566
 
  if test "$GCC" = yes; then
2567
 
    CFLAGS="-O2"
2568
 
  else
2569
 
    CFLAGS=
2570
 
  fi
2571
 
fi
2572
 
# Some people use a C++ compiler to compile C.  Since we use `exit',
2573
 
# in C++ we need to declare it.  In case someone uses the same compiler
2574
 
# for both compiling C and C++ we need to have the C++ compiler decide
2575
 
# the declaration of exit, since it's the most demanding environment.
2576
 
cat >conftest.$ac_ext <<_ACEOF
2577
 
#ifndef __cplusplus
2578
 
  choke me
2579
 
#endif
2580
 
_ACEOF
2581
 
rm -f conftest.$ac_objext
2582
 
if { (eval echo "$as_me:2582: \"$ac_compile\"") >&5
2583
 
  (eval $ac_compile) 2>&5
2584
 
  ac_status=$?
2585
 
  echo "$as_me:2585: \$? = $ac_status" >&5
2586
 
  (exit $ac_status); } &&
2587
 
         { ac_try='test -s conftest.$ac_objext'
2588
 
  { (eval echo "$as_me:2588: \"$ac_try\"") >&5
2589
 
  (eval $ac_try) 2>&5
2590
 
  ac_status=$?
2591
 
  echo "$as_me:2591: \$? = $ac_status" >&5
2592
 
  (exit $ac_status); }; }; then
2593
 
  for ac_declaration in \
2594
 
   ''\
2595
 
   '#include <stdlib.h>' \
2596
 
   'extern "C" void std::exit (int) throw (); using std::exit;' \
2597
 
   'extern "C" void std::exit (int); using std::exit;' \
2598
 
   'extern "C" void exit (int) throw ();' \
2599
 
   'extern "C" void exit (int);' \
2600
 
   'void exit (int);'
2601
 
do
2602
 
  cat >conftest.$ac_ext <<_ACEOF
2603
 
#line 2603 "configure"
2604
 
#include "confdefs.h"
2605
 
#include <stdlib.h>
2606
 
$ac_declaration
2607
 
int
2608
 
main ()
2609
 
{
2610
 
exit (42);
2611
 
  ;
2612
 
  return 0;
2613
 
}
2614
 
_ACEOF
2615
 
rm -f conftest.$ac_objext
2616
 
if { (eval echo "$as_me:2616: \"$ac_compile\"") >&5
2617
 
  (eval $ac_compile) 2>&5
2618
 
  ac_status=$?
2619
 
  echo "$as_me:2619: \$? = $ac_status" >&5
2620
 
  (exit $ac_status); } &&
2621
 
         { ac_try='test -s conftest.$ac_objext'
2622
 
  { (eval echo "$as_me:2622: \"$ac_try\"") >&5
2623
 
  (eval $ac_try) 2>&5
2624
 
  ac_status=$?
2625
 
  echo "$as_me:2625: \$? = $ac_status" >&5
2626
 
  (exit $ac_status); }; }; then
2627
 
  :
2628
 
else
2629
 
  echo "$as_me: failed program was:" >&5
2630
 
cat conftest.$ac_ext >&5
2631
 
continue
2632
 
fi
2633
 
rm -f conftest.$ac_objext conftest.$ac_ext
2634
 
  cat >conftest.$ac_ext <<_ACEOF
2635
 
#line 2635 "configure"
2636
 
#include "confdefs.h"
2637
 
$ac_declaration
2638
 
int
2639
 
main ()
2640
 
{
2641
 
exit (42);
2642
 
  ;
2643
 
  return 0;
2644
 
}
2645
 
_ACEOF
2646
 
rm -f conftest.$ac_objext
2647
 
if { (eval echo "$as_me:2647: \"$ac_compile\"") >&5
2648
 
  (eval $ac_compile) 2>&5
2649
 
  ac_status=$?
2650
 
  echo "$as_me:2650: \$? = $ac_status" >&5
2651
 
  (exit $ac_status); } &&
2652
 
         { ac_try='test -s conftest.$ac_objext'
2653
 
  { (eval echo "$as_me:2653: \"$ac_try\"") >&5
2654
 
  (eval $ac_try) 2>&5
2655
 
  ac_status=$?
2656
 
  echo "$as_me:2656: \$? = $ac_status" >&5
2657
 
  (exit $ac_status); }; }; then
2658
 
  break
2659
 
else
2660
 
  echo "$as_me: failed program was:" >&5
2661
 
cat conftest.$ac_ext >&5
2662
 
fi
2663
 
rm -f conftest.$ac_objext conftest.$ac_ext
2664
 
done
2665
 
rm -f conftest*
2666
 
if test -n "$ac_declaration"; then
2667
 
  echo '#ifdef __cplusplus' >>confdefs.h
2668
 
  echo $ac_declaration      >>confdefs.h
2669
 
  echo '#endif'             >>confdefs.h
2670
 
fi
2671
 
 
2672
 
else
2673
 
  echo "$as_me: failed program was:" >&5
2674
 
cat conftest.$ac_ext >&5
2675
 
fi
2676
 
rm -f conftest.$ac_objext conftest.$ac_ext
2677
 
ac_ext=c
2678
 
ac_cpp='$CPP $CPPFLAGS'
2679
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2680
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2681
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2682
 
 
2683
 
ac_ext=c
2684
 
ac_cpp='$CPP $CPPFLAGS'
2685
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2686
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2687
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2688
 
echo "$as_me:2688: checking how to run the C preprocessor" >&5
2689
 
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2690
 
# On Suns, sometimes $CPP names a directory.
2691
 
if test -n "$CPP" && test -d "$CPP"; then
2692
 
  CPP=
2693
 
fi
2694
 
if test -z "$CPP"; then
2695
 
  if test "${ac_cv_prog_CPP+set}" = set; then
2696
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
2697
 
else
2698
 
      # Double quotes because CPP needs to be expanded
2699
 
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2700
 
    do
2701
 
      ac_preproc_ok=false
2702
 
for ac_c_preproc_warn_flag in '' yes
2703
 
do
2704
 
  # Use a header file that comes with gcc, so configuring glibc
2705
 
  # with a fresh cross-compiler works.
2706
 
  # On the NeXT, cc -E runs the code through the compiler's parser,
2707
 
  # not just through cpp. "Syntax error" is here to catch this case.
2708
 
  cat >conftest.$ac_ext <<_ACEOF
2709
 
#line 2709 "configure"
2710
 
#include "confdefs.h"
2711
 
#include <assert.h>
2712
 
                     Syntax error
2713
 
_ACEOF
2714
 
if { (eval echo "$as_me:2714: \"$ac_cpp conftest.$ac_ext\"") >&5
2715
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2716
 
  ac_status=$?
2717
 
  egrep -v '^ *\+' conftest.er1 >conftest.err
2718
 
  rm -f conftest.er1
2719
 
  cat conftest.err >&5
2720
 
  echo "$as_me:2720: \$? = $ac_status" >&5
2721
 
  (exit $ac_status); } >/dev/null; then
2722
 
  if test -s conftest.err; then
2723
 
    ac_cpp_err=$ac_c_preproc_warn_flag
2724
 
  else
2725
 
    ac_cpp_err=
2726
 
  fi
2727
 
else
2728
 
  ac_cpp_err=yes
2729
 
fi
2730
 
if test -z "$ac_cpp_err"; then
2731
 
  :
2732
 
else
2733
 
  echo "$as_me: failed program was:" >&5
2734
 
  cat conftest.$ac_ext >&5
2735
 
  # Broken: fails on valid input.
2736
 
continue
2737
 
fi
2738
 
rm -f conftest.err conftest.$ac_ext
2739
 
 
2740
 
  # OK, works on sane cases.  Now check whether non-existent headers
2741
 
  # can be detected and how.
2742
 
  cat >conftest.$ac_ext <<_ACEOF
2743
 
#line 2743 "configure"
2744
 
#include "confdefs.h"
2745
 
#include <ac_nonexistent.h>
2746
 
_ACEOF
2747
 
if { (eval echo "$as_me:2747: \"$ac_cpp conftest.$ac_ext\"") >&5
2748
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2749
 
  ac_status=$?
2750
 
  egrep -v '^ *\+' conftest.er1 >conftest.err
2751
 
  rm -f conftest.er1
2752
 
  cat conftest.err >&5
2753
 
  echo "$as_me:2753: \$? = $ac_status" >&5
2754
 
  (exit $ac_status); } >/dev/null; then
2755
 
  if test -s conftest.err; then
2756
 
    ac_cpp_err=$ac_c_preproc_warn_flag
2757
 
  else
2758
 
    ac_cpp_err=
2759
 
  fi
2760
 
else
2761
 
  ac_cpp_err=yes
2762
 
fi
2763
 
if test -z "$ac_cpp_err"; then
2764
 
  # Broken: success on invalid input.
2765
 
continue
2766
 
else
2767
 
  echo "$as_me: failed program was:" >&5
2768
 
  cat conftest.$ac_ext >&5
2769
 
  # Passes both tests.
2770
 
ac_preproc_ok=:
2771
 
break
2772
 
fi
2773
 
rm -f conftest.err conftest.$ac_ext
2774
 
 
2775
 
done
2776
 
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2777
 
rm -f conftest.err conftest.$ac_ext
2778
 
if $ac_preproc_ok; then
2779
 
  break
2780
 
fi
2781
 
 
2782
 
    done
2783
 
    ac_cv_prog_CPP=$CPP
2784
 
 
2785
 
fi
2786
 
  CPP=$ac_cv_prog_CPP
2787
 
else
2788
 
  ac_cv_prog_CPP=$CPP
2789
 
fi
2790
 
echo "$as_me:2790: result: $CPP" >&5
2791
 
echo "${ECHO_T}$CPP" >&6
2792
 
ac_preproc_ok=false
2793
 
for ac_c_preproc_warn_flag in '' yes
2794
 
do
2795
 
  # Use a header file that comes with gcc, so configuring glibc
2796
 
  # with a fresh cross-compiler works.
2797
 
  # On the NeXT, cc -E runs the code through the compiler's parser,
2798
 
  # not just through cpp. "Syntax error" is here to catch this case.
2799
 
  cat >conftest.$ac_ext <<_ACEOF
2800
 
#line 2800 "configure"
2801
 
#include "confdefs.h"
2802
 
#include <assert.h>
2803
 
                     Syntax error
2804
 
_ACEOF
2805
 
if { (eval echo "$as_me:2805: \"$ac_cpp conftest.$ac_ext\"") >&5
2806
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2807
 
  ac_status=$?
2808
 
  egrep -v '^ *\+' conftest.er1 >conftest.err
2809
 
  rm -f conftest.er1
2810
 
  cat conftest.err >&5
2811
 
  echo "$as_me:2811: \$? = $ac_status" >&5
2812
 
  (exit $ac_status); } >/dev/null; then
2813
 
  if test -s conftest.err; then
2814
 
    ac_cpp_err=$ac_c_preproc_warn_flag
2815
 
  else
2816
 
    ac_cpp_err=
2817
 
  fi
2818
 
else
2819
 
  ac_cpp_err=yes
2820
 
fi
2821
 
if test -z "$ac_cpp_err"; then
2822
 
  :
2823
 
else
2824
 
  echo "$as_me: failed program was:" >&5
2825
 
  cat conftest.$ac_ext >&5
2826
 
  # Broken: fails on valid input.
2827
 
continue
2828
 
fi
2829
 
rm -f conftest.err conftest.$ac_ext
2830
 
 
2831
 
  # OK, works on sane cases.  Now check whether non-existent headers
2832
 
  # can be detected and how.
2833
 
  cat >conftest.$ac_ext <<_ACEOF
2834
 
#line 2834 "configure"
2835
 
#include "confdefs.h"
2836
 
#include <ac_nonexistent.h>
2837
 
_ACEOF
2838
 
if { (eval echo "$as_me:2838: \"$ac_cpp conftest.$ac_ext\"") >&5
2839
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2840
 
  ac_status=$?
2841
 
  egrep -v '^ *\+' conftest.er1 >conftest.err
2842
 
  rm -f conftest.er1
2843
 
  cat conftest.err >&5
2844
 
  echo "$as_me:2844: \$? = $ac_status" >&5
2845
 
  (exit $ac_status); } >/dev/null; then
2846
 
  if test -s conftest.err; then
2847
 
    ac_cpp_err=$ac_c_preproc_warn_flag
2848
 
  else
2849
 
    ac_cpp_err=
2850
 
  fi
2851
 
else
2852
 
  ac_cpp_err=yes
2853
 
fi
2854
 
if test -z "$ac_cpp_err"; then
2855
 
  # Broken: success on invalid input.
2856
 
continue
2857
 
else
2858
 
  echo "$as_me: failed program was:" >&5
2859
 
  cat conftest.$ac_ext >&5
2860
 
  # Passes both tests.
2861
 
ac_preproc_ok=:
2862
 
break
2863
 
fi
2864
 
rm -f conftest.err conftest.$ac_ext
2865
 
 
2866
 
done
2867
 
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2868
 
rm -f conftest.err conftest.$ac_ext
2869
 
if $ac_preproc_ok; then
2870
 
  :
2871
 
else
2872
 
  { { echo "$as_me:2872: error: C preprocessor \"$CPP\" fails sanity check" >&5
2873
 
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2874
 
   { (exit 1); exit 1; }; }
2875
 
fi
2876
 
 
2877
 
ac_ext=c
2878
 
ac_cpp='$CPP $CPPFLAGS'
2879
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2880
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2881
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2882
 
 
2883
 
echo "$as_me:2883: checking for ANSI C header files" >&5
2884
 
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2885
 
if test "${ac_cv_header_stdc+set}" = set; then
2886
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
2887
 
else
2888
 
  cat >conftest.$ac_ext <<_ACEOF
2889
 
#line 2889 "configure"
2890
 
#include "confdefs.h"
2891
 
#include <stdlib.h>
2892
 
#include <stdarg.h>
2893
 
#include <string.h>
2894
 
#include <float.h>
2895
 
 
2896
 
_ACEOF
2897
 
if { (eval echo "$as_me:2897: \"$ac_cpp conftest.$ac_ext\"") >&5
2898
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2899
 
  ac_status=$?
2900
 
  egrep -v '^ *\+' conftest.er1 >conftest.err
2901
 
  rm -f conftest.er1
2902
 
  cat conftest.err >&5
2903
 
  echo "$as_me:2903: \$? = $ac_status" >&5
2904
 
  (exit $ac_status); } >/dev/null; then
2905
 
  if test -s conftest.err; then
2906
 
    ac_cpp_err=$ac_c_preproc_warn_flag
2907
 
  else
2908
 
    ac_cpp_err=
2909
 
  fi
2910
 
else
2911
 
  ac_cpp_err=yes
2912
 
fi
2913
 
if test -z "$ac_cpp_err"; then
2914
 
  ac_cv_header_stdc=yes
2915
 
else
2916
 
  echo "$as_me: failed program was:" >&5
2917
 
  cat conftest.$ac_ext >&5
2918
 
  ac_cv_header_stdc=no
2919
 
fi
2920
 
rm -f conftest.err conftest.$ac_ext
2921
 
 
2922
 
if test $ac_cv_header_stdc = yes; then
2923
 
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2924
 
  cat >conftest.$ac_ext <<_ACEOF
2925
 
#line 2925 "configure"
2926
 
#include "confdefs.h"
2927
 
#include <string.h>
2928
 
 
2929
 
_ACEOF
2930
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2931
 
  egrep "memchr" >/dev/null 2>&1; then
2932
 
  :
2933
 
else
2934
 
  ac_cv_header_stdc=no
2935
 
fi
2936
 
rm -f conftest*
2937
 
 
2938
 
fi
2939
 
 
2940
 
if test $ac_cv_header_stdc = yes; then
2941
 
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2942
 
  cat >conftest.$ac_ext <<_ACEOF
2943
 
#line 2943 "configure"
2944
 
#include "confdefs.h"
2945
 
#include <stdlib.h>
2946
 
 
2947
 
_ACEOF
2948
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2949
 
  egrep "free" >/dev/null 2>&1; then
2950
 
  :
2951
 
else
2952
 
  ac_cv_header_stdc=no
2953
 
fi
2954
 
rm -f conftest*
2955
 
 
2956
 
fi
2957
 
 
2958
 
if test $ac_cv_header_stdc = yes; then
2959
 
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2960
 
  if test "$cross_compiling" = yes; then
2961
 
  :
2962
 
else
2963
 
  cat >conftest.$ac_ext <<_ACEOF
2964
 
#line 2964 "configure"
2965
 
#include "confdefs.h"
2966
 
#include <ctype.h>
2967
 
#if ((' ' & 0x0FF) == 0x020)
2968
 
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2969
 
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2970
 
#else
2971
 
# define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
2972
 
                     || ('j' <= (c) && (c) <= 'r') \
2973
 
                     || ('s' <= (c) && (c) <= 'z'))
2974
 
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
2975
 
#endif
2976
 
 
2977
 
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2978
 
int
2979
 
main ()
2980
 
{
2981
 
  int i;
2982
 
  for (i = 0; i < 256; i++)
2983
 
    if (XOR (islower (i), ISLOWER (i))
2984
 
        || toupper (i) != TOUPPER (i))
2985
 
      exit(2);
2986
 
  exit (0);
2987
 
}
2988
 
_ACEOF
2989
 
rm -f conftest$ac_exeext
2990
 
if { (eval echo "$as_me:2990: \"$ac_link\"") >&5
2991
 
  (eval $ac_link) 2>&5
2992
 
  ac_status=$?
2993
 
  echo "$as_me:2993: \$? = $ac_status" >&5
2994
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2995
 
  { (eval echo "$as_me:2995: \"$ac_try\"") >&5
2996
 
  (eval $ac_try) 2>&5
2997
 
  ac_status=$?
2998
 
  echo "$as_me:2998: \$? = $ac_status" >&5
2999
 
  (exit $ac_status); }; }; then
3000
 
  :
3001
 
else
3002
 
  echo "$as_me: program exited with status $ac_status" >&5
3003
 
echo "$as_me: failed program was:" >&5
3004
 
cat conftest.$ac_ext >&5
3005
 
ac_cv_header_stdc=no
3006
 
fi
3007
 
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3008
 
fi
3009
 
fi
3010
 
fi
3011
 
echo "$as_me:3011: result: $ac_cv_header_stdc" >&5
3012
 
echo "${ECHO_T}$ac_cv_header_stdc" >&6
3013
 
if test $ac_cv_header_stdc = yes; then
3014
 
 
3015
 
cat >>confdefs.h <<\EOF
3016
 
#define STDC_HEADERS 1
3017
 
EOF
3018
 
 
3019
 
fi
3020
 
 
3021
 
# Check whether --enable-shared or --disable-shared was given.
3022
 
if test "${enable_shared+set}" = set; then
3023
 
  enableval="$enable_shared"
3024
 
  p=${PACKAGE-default}
3025
 
case $enableval in
3026
 
yes) enable_shared=yes ;;
3027
 
no) enable_shared=no ;;
3028
 
*)
3029
 
  enable_shared=no
3030
 
  # Look at the argument we got.  We use all the common list separators.
3031
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3032
 
  for pkg in $enableval; do
3033
 
    if test "X$pkg" = "X$p"; then
3034
 
      enable_shared=yes
3035
 
    fi
3036
 
  done
3037
 
  IFS="$ac_save_ifs"
3038
 
  ;;
3039
 
esac
3040
 
else
3041
 
  enable_shared=yes
3042
 
fi;
3043
 
# Check whether --enable-static or --disable-static was given.
3044
 
if test "${enable_static+set}" = set; then
3045
 
  enableval="$enable_static"
3046
 
  p=${PACKAGE-default}
3047
 
case $enableval in
3048
 
yes) enable_static=yes ;;
3049
 
no) enable_static=no ;;
3050
 
*)
3051
 
  enable_static=no
3052
 
  # Look at the argument we got.  We use all the common list separators.
3053
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3054
 
  for pkg in $enableval; do
3055
 
    if test "X$pkg" = "X$p"; then
3056
 
      enable_static=yes
3057
 
    fi
3058
 
  done
3059
 
  IFS="$ac_save_ifs"
3060
 
  ;;
3061
 
esac
3062
 
else
3063
 
  enable_static=yes
3064
 
fi;
3065
 
# Check whether --enable-fast-install or --disable-fast-install was given.
3066
 
if test "${enable_fast_install+set}" = set; then
3067
 
  enableval="$enable_fast_install"
3068
 
  p=${PACKAGE-default}
3069
 
case $enableval in
3070
 
yes) enable_fast_install=yes ;;
3071
 
no) enable_fast_install=no ;;
3072
 
*)
3073
 
  enable_fast_install=no
3074
 
  # Look at the argument we got.  We use all the common list separators.
3075
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3076
 
  for pkg in $enableval; do
3077
 
    if test "X$pkg" = "X$p"; then
3078
 
      enable_fast_install=yes
3079
 
    fi
3080
 
  done
3081
 
  IFS="$ac_save_ifs"
3082
 
  ;;
3083
 
esac
3084
 
else
3085
 
  enable_fast_install=yes
3086
 
fi;
3087
 
# Make sure we can run config.sub.
3088
 
$ac_config_sub sun4 >/dev/null 2>&1 ||
3089
 
  { { echo "$as_me:3089: error: cannot run $ac_config_sub" >&5
3090
 
echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3091
 
   { (exit 1); exit 1; }; }
3092
 
 
3093
 
echo "$as_me:3093: checking build system type" >&5
3094
 
echo $ECHO_N "checking build system type... $ECHO_C" >&6
3095
 
if test "${ac_cv_build+set}" = set; then
3096
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3097
 
else
3098
 
  ac_cv_build_alias=$build_alias
3099
 
test -z "$ac_cv_build_alias" &&
3100
 
  ac_cv_build_alias=`$ac_config_guess`
3101
 
test -z "$ac_cv_build_alias" &&
3102
 
  { { echo "$as_me:3102: error: cannot guess build type; you must specify one" >&5
3103
 
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3104
 
   { (exit 1); exit 1; }; }
3105
 
ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3106
 
  { { echo "$as_me:3106: error: $ac_config_sub $ac_cv_build_alias failed." >&5
3107
 
echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
3108
 
   { (exit 1); exit 1; }; }
3109
 
 
3110
 
fi
3111
 
echo "$as_me:3111: result: $ac_cv_build" >&5
3112
 
echo "${ECHO_T}$ac_cv_build" >&6
3113
 
build=$ac_cv_build
3114
 
build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3115
 
build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3116
 
build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3117
 
 
3118
 
echo "$as_me:3118: checking host system type" >&5
3119
 
echo $ECHO_N "checking host system type... $ECHO_C" >&6
3120
 
if test "${ac_cv_host+set}" = set; then
3121
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3122
 
else
3123
 
  ac_cv_host_alias=$host_alias
3124
 
test -z "$ac_cv_host_alias" &&
3125
 
  ac_cv_host_alias=$ac_cv_build_alias
3126
 
ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3127
 
  { { echo "$as_me:3127: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3128
 
echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3129
 
   { (exit 1); exit 1; }; }
3130
 
 
3131
 
fi
3132
 
echo "$as_me:3132: result: $ac_cv_host" >&5
3133
 
echo "${ECHO_T}$ac_cv_host" >&6
3134
 
host=$ac_cv_host
3135
 
host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3136
 
host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3137
 
host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3138
 
 
3139
 
# Check whether --with-gnu-ld or --without-gnu-ld was given.
3140
 
if test "${with_gnu_ld+set}" = set; then
3141
 
  withval="$with_gnu_ld"
3142
 
  test "$withval" = no || with_gnu_ld=yes
3143
 
else
3144
 
  with_gnu_ld=no
3145
 
fi;
3146
 
ac_prog=ld
3147
 
if test "$GCC" = yes; then
3148
 
  # Check if gcc -print-prog-name=ld gives a path.
3149
 
  echo "$as_me:3149: checking for ld used by GCC" >&5
3150
 
echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
3151
 
  case $host in
3152
 
  *-*-mingw*)
3153
 
    # gcc leaves a trailing carriage return which upsets mingw
3154
 
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3155
 
  *)
3156
 
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3157
 
  esac
3158
 
  case $ac_prog in
3159
 
    # Accept absolute paths.
3160
 
    [\\/]* | [A-Za-z]:[\\/]*)
3161
 
      re_direlt='/[^/][^/]*/\.\./'
3162
 
      # Canonicalize the path of ld
3163
 
      ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3164
 
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3165
 
        ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3166
 
      done
3167
 
      test -z "$LD" && LD="$ac_prog"
3168
 
      ;;
3169
 
  "")
3170
 
    # If it fails, then pretend we aren't using GCC.
3171
 
    ac_prog=ld
3172
 
    ;;
3173
 
  *)
3174
 
    # If it is relative, then search for the first ld in PATH.
3175
 
    with_gnu_ld=unknown
3176
 
    ;;
3177
 
  esac
3178
 
elif test "$with_gnu_ld" = yes; then
3179
 
  echo "$as_me:3179: checking for GNU ld" >&5
3180
 
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3181
 
else
3182
 
  echo "$as_me:3182: checking for non-GNU ld" >&5
3183
 
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3184
 
fi
3185
 
if test "${lt_cv_path_LD+set}" = set; then
3186
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3187
 
else
3188
 
  if test -z "$LD"; then
3189
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3190
 
  for ac_dir in $PATH; do
3191
 
    test -z "$ac_dir" && ac_dir=.
3192
 
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3193
 
      lt_cv_path_LD="$ac_dir/$ac_prog"
3194
 
      # Check to see if the program is GNU ld.  I'd rather use --version,
3195
 
      # but apparently some GNU ld's only accept -v.
3196
 
      # Break only if it was the GNU/non-GNU ld that we prefer.
3197
 
      if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3198
 
        test "$with_gnu_ld" != no && break
3199
 
      else
3200
 
        test "$with_gnu_ld" != yes && break
3201
 
      fi
3202
 
    fi
3203
 
  done
3204
 
  IFS="$ac_save_ifs"
3205
 
else
3206
 
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
3207
 
fi
3208
 
fi
3209
 
 
3210
 
LD="$lt_cv_path_LD"
3211
 
if test -n "$LD"; then
3212
 
  echo "$as_me:3212: result: $LD" >&5
3213
 
echo "${ECHO_T}$LD" >&6
3214
 
else
3215
 
  echo "$as_me:3215: result: no" >&5
3216
 
echo "${ECHO_T}no" >&6
3217
 
fi
3218
 
test -z "$LD" && { { echo "$as_me:3218: error: no acceptable ld found in \$PATH" >&5
3219
 
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3220
 
   { (exit 1); exit 1; }; }
3221
 
echo "$as_me:3221: checking if the linker ($LD) is GNU ld" >&5
3222
 
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3223
 
if test "${lt_cv_prog_gnu_ld+set}" = set; then
3224
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3225
 
else
3226
 
  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3227
 
if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3228
 
  lt_cv_prog_gnu_ld=yes
3229
 
else
3230
 
  lt_cv_prog_gnu_ld=no
3231
 
fi
3232
 
fi
3233
 
echo "$as_me:3233: result: $lt_cv_prog_gnu_ld" >&5
3234
 
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3235
 
with_gnu_ld=$lt_cv_prog_gnu_ld
3236
 
 
3237
 
echo "$as_me:3237: checking for $LD option to reload object files" >&5
3238
 
echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3239
 
if test "${lt_cv_ld_reload_flag+set}" = set; then
3240
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3241
 
else
3242
 
  lt_cv_ld_reload_flag='-r'
3243
 
fi
3244
 
echo "$as_me:3244: result: $lt_cv_ld_reload_flag" >&5
3245
 
echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3246
 
reload_flag=$lt_cv_ld_reload_flag
3247
 
test -n "$reload_flag" && reload_flag=" $reload_flag"
3248
 
 
3249
 
echo "$as_me:3249: checking for BSD-compatible nm" >&5
3250
 
echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3251
 
if test "${lt_cv_path_NM+set}" = set; then
3252
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3253
 
else
3254
 
  if test -n "$NM"; then
3255
 
  # Let the user override the test.
3256
 
  lt_cv_path_NM="$NM"
3257
 
else
3258
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3259
 
  for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3260
 
    test -z "$ac_dir" && ac_dir=.
3261
 
    tmp_nm=$ac_dir/${ac_tool_prefix}nm
3262
 
    if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
3263
 
      # Check to see if the nm accepts a BSD-compat flag.
3264
 
      # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3265
 
      #   nm: unknown option "B" ignored
3266
 
      # Tru64's nm complains that /dev/null is an invalid object file
3267
 
      if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3268
 
        lt_cv_path_NM="$tmp_nm -B"
3269
 
        break
3270
 
      elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3271
 
        lt_cv_path_NM="$tmp_nm -p"
3272
 
        break
3273
 
      else
3274
 
        lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3275
 
        continue # so that we can try to find one that supports BSD flags
3276
 
      fi
3277
 
    fi
3278
 
  done
3279
 
  IFS="$ac_save_ifs"
3280
 
  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3281
 
fi
3282
 
fi
3283
 
 
3284
 
NM="$lt_cv_path_NM"
3285
 
echo "$as_me:3285: result: $NM" >&5
3286
 
echo "${ECHO_T}$NM" >&6
3287
 
 
3288
 
echo "$as_me:3288: checking whether ln -s works" >&5
3289
 
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3290
 
LN_S=$as_ln_s
3291
 
if test "$LN_S" = "ln -s"; then
3292
 
  echo "$as_me:3292: result: yes" >&5
3293
 
echo "${ECHO_T}yes" >&6
3294
 
else
3295
 
  echo "$as_me:3295: result: no, using $LN_S" >&5
3296
 
echo "${ECHO_T}no, using $LN_S" >&6
3297
 
fi
3298
 
 
3299
 
echo "$as_me:3299: checking how to recognise dependant libraries" >&5
3300
 
echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
3301
 
if test "${lt_cv_deplibs_check_method+set}" = set; then
3302
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3303
 
else
3304
 
  lt_cv_file_magic_cmd='$MAGIC_CMD'
3305
 
lt_cv_file_magic_test_file=
3306
 
lt_cv_deplibs_check_method='unknown'
3307
 
# Need to set the preceding variable on all platforms that support
3308
 
# interlibrary dependencies.
3309
 
# 'none' -- dependencies not supported.
3310
 
# `unknown' -- same as none, but documents that we really don't know.
3311
 
# 'pass_all' -- all dependencies passed with no checks.
3312
 
# 'test_compile' -- check by making test program.
3313
 
# ['file_magic [regex]'] -- check by looking for files in library path
3314
 
# which responds to the $file_magic_cmd with a given egrep regex.
3315
 
# If you have `file' or equivalent on your system and you're not sure
3316
 
# whether `pass_all' will *always* work, you probably want this one.
3317
 
 
3318
 
case $host_os in
3319
 
aix4* | aix5*)
3320
 
  lt_cv_deplibs_check_method=pass_all
3321
 
  ;;
3322
 
 
3323
 
beos*)
3324
 
  lt_cv_deplibs_check_method=pass_all
3325
 
  ;;
3326
 
 
3327
 
bsdi4*)
3328
 
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3329
 
  lt_cv_file_magic_cmd='/usr/bin/file -L'
3330
 
  lt_cv_file_magic_test_file=/shlib/libc.so
3331
 
  ;;
3332
 
 
3333
 
cygwin* | mingw* | pw32*)
3334
 
  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3335
 
  lt_cv_file_magic_cmd='$OBJDUMP -f'
3336
 
  ;;
3337
 
 
3338
 
darwin* | rhapsody*)
3339
 
  lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3340
 
  lt_cv_file_magic_cmd='/usr/bin/file -L'
3341
 
  case "$host_os" in
3342
 
  rhapsody* | darwin1.[012])
3343
 
    lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
3344
 
    ;;
3345
 
  *) # Darwin 1.3 on
3346
 
    lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3347
 
    ;;
3348
 
  esac
3349
 
  ;;
3350
 
 
3351
 
freebsd*)
3352
 
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3353
 
    case $host_cpu in
3354
 
    i*86 )
3355
 
      # Not sure whether the presence of OpenBSD here was a mistake.
3356
 
      # Let's accept both of them until this is cleared up.
3357
 
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3358
 
      lt_cv_file_magic_cmd=/usr/bin/file
3359
 
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3360
 
      ;;
3361
 
    esac
3362
 
  else
3363
 
    lt_cv_deplibs_check_method=pass_all
3364
 
  fi
3365
 
  ;;
3366
 
 
3367
 
gnu*)
3368
 
  lt_cv_deplibs_check_method=pass_all
3369
 
  ;;
3370
 
 
3371
 
hpux10.20*|hpux11*)
3372
 
  lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3373
 
  lt_cv_file_magic_cmd=/usr/bin/file
3374
 
  lt_cv_file_magic_test_file=/usr/lib/libc.sl
3375
 
  ;;
3376
 
 
3377
 
irix5* | irix6*)
3378
 
  case $host_os in
3379
 
  irix5*)
3380
 
    # this will be overridden with pass_all, but let us keep it just in case
3381
 
    lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3382
 
    ;;
3383
 
  *)
3384
 
    case $LD in
3385
 
    *-32|*"-32 ") libmagic=32-bit;;
3386
 
    *-n32|*"-n32 ") libmagic=N32;;
3387
 
    *-64|*"-64 ") libmagic=64-bit;;
3388
 
    *) libmagic=never-match;;
3389
 
    esac
3390
 
    # this will be overridden with pass_all, but let us keep it just in case
3391
 
    lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3392
 
    ;;
3393
 
  esac
3394
 
  lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3395
 
  lt_cv_deplibs_check_method=pass_all
3396
 
  ;;
3397
 
 
3398
 
# This must be Linux ELF.
3399
 
linux-gnu*)
3400
 
  case $host_cpu in
3401
 
  alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* )
3402
 
    lt_cv_deplibs_check_method=pass_all ;;
3403
 
  *)
3404
 
    # glibc up to 2.1.1 does not perform some relocations on ARM
3405
 
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3406
 
  esac
3407
 
  lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3408
 
  ;;
3409
 
 
3410
 
netbsd*)
3411
 
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3412
 
    lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3413
 
  else
3414
 
    lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3415
 
  fi
3416
 
  ;;
3417
 
 
3418
 
newos6*)
3419
 
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3420
 
  lt_cv_file_magic_cmd=/usr/bin/file
3421
 
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
3422
 
  ;;
3423
 
 
3424
 
openbsd*)
3425
 
  lt_cv_file_magic_cmd=/usr/bin/file
3426
 
  lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3427
 
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3428
 
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3429
 
  else
3430
 
    lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3431
 
  fi
3432
 
  ;;
3433
 
 
3434
 
osf3* | osf4* | osf5*)
3435
 
  # this will be overridden with pass_all, but let us keep it just in case
3436
 
  lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3437
 
  lt_cv_file_magic_test_file=/shlib/libc.so
3438
 
  lt_cv_deplibs_check_method=pass_all
3439
 
  ;;
3440
 
 
3441
 
sco3.2v5*)
3442
 
  lt_cv_deplibs_check_method=pass_all
3443
 
  ;;
3444
 
 
3445
 
solaris*)
3446
 
  lt_cv_deplibs_check_method=pass_all
3447
 
  lt_cv_file_magic_test_file=/lib/libc.so
3448
 
  ;;
3449
 
 
3450
 
sysv5uw[78]* | sysv4*uw2*)
3451
 
  lt_cv_deplibs_check_method=pass_all
3452
 
  ;;
3453
 
 
3454
 
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3455
 
  case $host_vendor in
3456
 
  motorola)
3457
 
    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]'
3458
 
    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3459
 
    ;;
3460
 
  ncr)
3461
 
    lt_cv_deplibs_check_method=pass_all
3462
 
    ;;
3463
 
  sequent)
3464
 
    lt_cv_file_magic_cmd='/bin/file'
3465
 
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3466
 
    ;;
3467
 
  sni)
3468
 
    lt_cv_file_magic_cmd='/bin/file'
3469
 
    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3470
 
    lt_cv_file_magic_test_file=/lib/libc.so
3471
 
    ;;
3472
 
  esac
3473
 
  ;;
3474
 
esac
3475
 
 
3476
 
fi
3477
 
echo "$as_me:3477: result: $lt_cv_deplibs_check_method" >&5
3478
 
echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3479
 
file_magic_cmd=$lt_cv_file_magic_cmd
3480
 
deplibs_check_method=$lt_cv_deplibs_check_method
3481
 
 
3482
 
# Check for command to grab the raw symbol name followed by C symbol from nm.
3483
 
echo "$as_me:3483: checking command to parse $NM output" >&5
3484
 
echo $ECHO_N "checking command to parse $NM output... $ECHO_C" >&6
3485
 
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
3486
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3487
 
else
3488
 
 
3489
 
# These are sane defaults that work on at least a few old systems.
3490
 
# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
3491
 
 
3492
 
# Character class describing NM global symbol codes.
3493
 
symcode='[BCDEGRST]'
3494
 
 
3495
 
# Regexp to match symbols that can be accessed directly from C.
3496
 
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
3497
 
 
3498
 
# Transform the above into a raw symbol and a C symbol.
3499
 
symxfrm='\1 \2\3 \3'
3500
 
 
3501
 
# Transform an extracted symbol line into a proper C declaration
3502
 
lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
3503
 
 
3504
 
# Transform an extracted symbol line into symbol name and symbol address
3505
 
lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
3506
 
 
3507
 
# Define system-specific variables.
3508
 
case $host_os in
3509
 
aix*)
3510
 
  symcode='[BCDT]'
3511
 
  ;;
3512
 
cygwin* | mingw* | pw32*)
3513
 
  symcode='[ABCDGISTW]'
3514
 
  ;;
3515
 
hpux*) # Its linker distinguishes data from code symbols
3516
 
  lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
3517
 
  lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
3518
 
  ;;
3519
 
irix*)
3520
 
  symcode='[BCDEGRST]'
3521
 
  ;;
3522
 
solaris* | sysv5*)
3523
 
  symcode='[BDT]'
3524
 
  ;;
3525
 
sysv4)
3526
 
  symcode='[DFNSTU]'
3527
 
  ;;
3528
 
esac
3529
 
 
3530
 
# Handle CRLF in mingw tool chain
3531
 
opt_cr=
3532
 
case $host_os in
3533
 
mingw*)
3534
 
  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
3535
 
  ;;
3536
 
esac
3537
 
 
3538
 
# If we're using GNU nm, then use its standard symbol codes.
3539
 
if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
3540
 
  symcode='[ABCDGISTW]'
3541
 
fi
3542
 
 
3543
 
# Try without a prefix undercore, then with it.
3544
 
for ac_symprfx in "" "_"; do
3545
 
 
3546
 
  # Write the raw and C identifiers.
3547
 
lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[         ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
3548
 
 
3549
 
  # Check to see that the pipe works correctly.
3550
 
  pipe_works=no
3551
 
  rm -f conftest*
3552
 
  cat > conftest.$ac_ext <<EOF
3553
 
#ifdef __cplusplus
3554
 
extern "C" {
3555
 
#endif
3556
 
char nm_test_var;
3557
 
void nm_test_func(){}
3558
 
#ifdef __cplusplus
3559
 
}
3560
 
#endif
3561
 
int main(){nm_test_var='a';nm_test_func();return(0);}
3562
 
EOF
3563
 
 
3564
 
  if { (eval echo "$as_me:3564: \"$ac_compile\"") >&5
3565
 
  (eval $ac_compile) 2>&5
3566
 
  ac_status=$?
3567
 
  echo "$as_me:3567: \$? = $ac_status" >&5
3568
 
  (exit $ac_status); }; then
3569
 
    # Now try to grab the symbols.
3570
 
    nlist=conftest.nm
3571
 
    if { (eval echo "$as_me:3571: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
3572
 
  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
3573
 
  ac_status=$?
3574
 
  echo "$as_me:3574: \$? = $ac_status" >&5
3575
 
  (exit $ac_status); } && test -s "$nlist"; then
3576
 
      # Try sorting and uniquifying the output.
3577
 
      if sort "$nlist" | uniq > "$nlist"T; then
3578
 
        mv -f "$nlist"T "$nlist"
3579
 
      else
3580
 
        rm -f "$nlist"T
3581
 
      fi
3582
 
 
3583
 
      # Make sure that we snagged all the symbols we need.
3584
 
      if egrep ' nm_test_var$' "$nlist" >/dev/null; then
3585
 
        if egrep ' nm_test_func$' "$nlist" >/dev/null; then
3586
 
          cat <<EOF > conftest.$ac_ext
3587
 
#ifdef __cplusplus
3588
 
extern "C" {
3589
 
#endif
3590
 
 
3591
 
EOF
3592
 
          # Now generate the symbol file.
3593
 
          eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
3594
 
 
3595
 
          cat <<EOF >> conftest.$ac_ext
3596
 
#if defined (__STDC__) && __STDC__
3597
 
# define lt_ptr void *
3598
 
#else
3599
 
# define lt_ptr char *
3600
 
# define const
3601
 
#endif
3602
 
 
3603
 
/* The mapping between symbol names and symbols. */
3604
 
const struct {
3605
 
  const char *name;
3606
 
  lt_ptr address;
3607
 
}
3608
 
lt_preloaded_symbols[] =
3609
 
{
3610
 
EOF
3611
 
          sed "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
3612
 
          cat <<\EOF >> conftest.$ac_ext
3613
 
  {0, (lt_ptr) 0}
3614
 
};
3615
 
 
3616
 
#ifdef __cplusplus
3617
 
}
3618
 
#endif
3619
 
EOF
3620
 
          # Now try linking the two files.
3621
 
          mv conftest.$ac_objext conftstm.$ac_objext
3622
 
          save_LIBS="$LIBS"
3623
 
          save_CFLAGS="$CFLAGS"
3624
 
          LIBS="conftstm.$ac_objext"
3625
 
          CFLAGS="$CFLAGS$no_builtin_flag"
3626
 
          if { (eval echo "$as_me:3626: \"$ac_link\"") >&5
3627
 
  (eval $ac_link) 2>&5
3628
 
  ac_status=$?
3629
 
  echo "$as_me:3629: \$? = $ac_status" >&5
3630
 
  (exit $ac_status); } && test -s conftest; then
3631
 
            pipe_works=yes
3632
 
          fi
3633
 
          LIBS="$save_LIBS"
3634
 
          CFLAGS="$save_CFLAGS"
3635
 
        else
3636
 
          echo "cannot find nm_test_func in $nlist" >&5
3637
 
        fi
3638
 
      else
3639
 
        echo "cannot find nm_test_var in $nlist" >&5
3640
 
      fi
3641
 
    else
3642
 
      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
3643
 
    fi
3644
 
  else
3645
 
    echo "$progname: failed program was:" >&5
3646
 
    cat conftest.$ac_ext >&5
3647
 
  fi
3648
 
  rm -f conftest* conftst*
3649
 
 
3650
 
  # Do not use the global_symbol_pipe unless it works.
3651
 
  if test "$pipe_works" = yes; then
3652
 
    break
3653
 
  else
3654
 
    lt_cv_sys_global_symbol_pipe=
3655
 
  fi
3656
 
done
3657
 
 
3658
 
fi
3659
 
 
3660
 
global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
3661
 
if test -z "$lt_cv_sys_global_symbol_pipe"; then
3662
 
  global_symbol_to_cdecl=
3663
 
  global_symbol_to_c_name_address=
3664
 
else
3665
 
  global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
3666
 
  global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
3667
 
fi
3668
 
if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
3669
 
then
3670
 
  echo "$as_me:3670: result: failed" >&5
3671
 
echo "${ECHO_T}failed" >&6
3672
 
else
3673
 
  echo "$as_me:3673: result: ok" >&5
3674
 
echo "${ECHO_T}ok" >&6
3675
 
fi
3676
 
 
3677
 
for ac_header in dlfcn.h
3678
 
do
3679
 
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3680
 
echo "$as_me:3680: checking for $ac_header" >&5
3681
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3682
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
3683
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3684
 
else
3685
 
  cat >conftest.$ac_ext <<_ACEOF
3686
 
#line 3686 "configure"
3687
 
#include "confdefs.h"
3688
 
#include <$ac_header>
3689
 
_ACEOF
3690
 
if { (eval echo "$as_me:3690: \"$ac_cpp conftest.$ac_ext\"") >&5
3691
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3692
 
  ac_status=$?
3693
 
  egrep -v '^ *\+' conftest.er1 >conftest.err
3694
 
  rm -f conftest.er1
3695
 
  cat conftest.err >&5
3696
 
  echo "$as_me:3696: \$? = $ac_status" >&5
3697
 
  (exit $ac_status); } >/dev/null; then
3698
 
  if test -s conftest.err; then
3699
 
    ac_cpp_err=$ac_c_preproc_warn_flag
3700
 
  else
3701
 
    ac_cpp_err=
3702
 
  fi
3703
 
else
3704
 
  ac_cpp_err=yes
3705
 
fi
3706
 
if test -z "$ac_cpp_err"; then
3707
 
  eval "$as_ac_Header=yes"
3708
 
else
3709
 
  echo "$as_me: failed program was:" >&5
3710
 
  cat conftest.$ac_ext >&5
3711
 
  eval "$as_ac_Header=no"
3712
 
fi
3713
 
rm -f conftest.err conftest.$ac_ext
3714
 
fi
3715
 
echo "$as_me:3715: result: `eval echo '${'$as_ac_Header'}'`" >&5
3716
 
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3717
 
if test `eval echo '${'$as_ac_Header'}'` = yes; then
3718
 
  cat >>confdefs.h <<EOF
3719
 
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3720
 
EOF
3721
 
 
3722
 
fi
3723
 
done
3724
 
 
3725
 
# Only perform the check for file, if the check method requires it
3726
 
case $deplibs_check_method in
3727
 
file_magic*)
3728
 
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
3729
 
    echo "$as_me:3729: checking for ${ac_tool_prefix}file" >&5
3730
 
echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
3731
 
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3732
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3733
 
else
3734
 
  case $MAGIC_CMD in
3735
 
  /*)
3736
 
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3737
 
  ;;
3738
 
  ?:/*)
3739
 
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3740
 
  ;;
3741
 
  *)
3742
 
  ac_save_MAGIC_CMD="$MAGIC_CMD"
3743
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
3744
 
  ac_dummy="/usr/bin:$PATH"
3745
 
  for ac_dir in $ac_dummy; do
3746
 
    test -z "$ac_dir" && ac_dir=.
3747
 
    if test -f $ac_dir/${ac_tool_prefix}file; then
3748
 
      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
3749
 
      if test -n "$file_magic_test_file"; then
3750
 
        case $deplibs_check_method in
3751
 
        "file_magic "*)
3752
 
          file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3753
 
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3754
 
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3755
 
            egrep "$file_magic_regex" > /dev/null; then
3756
 
            :
3757
 
          else
3758
 
            cat <<EOF 1>&2
3759
 
 
3760
 
*** Warning: the command libtool uses to detect shared libraries,
3761
 
*** $file_magic_cmd, produces output that libtool cannot recognize.
3762
 
*** The result is that libtool may fail to recognize shared libraries
3763
 
*** as such.  This will affect the creation of libtool libraries that
3764
 
*** depend on shared libraries, but programs linked with such libtool
3765
 
*** libraries will work regardless of this problem.  Nevertheless, you
3766
 
*** may want to report the problem to your system manager and/or to
3767
 
*** bug-libtool@gnu.org
3768
 
 
3769
 
EOF
3770
 
          fi ;;
3771
 
        esac
3772
 
      fi
3773
 
      break
3774
 
    fi
3775
 
  done
3776
 
  IFS="$ac_save_ifs"
3777
 
  MAGIC_CMD="$ac_save_MAGIC_CMD"
3778
 
  ;;
3779
 
esac
3780
 
fi
3781
 
 
3782
 
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3783
 
if test -n "$MAGIC_CMD"; then
3784
 
  echo "$as_me:3784: result: $MAGIC_CMD" >&5
3785
 
echo "${ECHO_T}$MAGIC_CMD" >&6
3786
 
else
3787
 
  echo "$as_me:3787: result: no" >&5
3788
 
echo "${ECHO_T}no" >&6
3789
 
fi
3790
 
 
3791
 
if test -z "$lt_cv_path_MAGIC_CMD"; then
3792
 
  if test -n "$ac_tool_prefix"; then
3793
 
    echo "$as_me:3793: checking for file" >&5
3794
 
echo $ECHO_N "checking for file... $ECHO_C" >&6
3795
 
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3796
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3797
 
else
3798
 
  case $MAGIC_CMD in
3799
 
  /*)
3800
 
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3801
 
  ;;
3802
 
  ?:/*)
3803
 
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3804
 
  ;;
3805
 
  *)
3806
 
  ac_save_MAGIC_CMD="$MAGIC_CMD"
3807
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
3808
 
  ac_dummy="/usr/bin:$PATH"
3809
 
  for ac_dir in $ac_dummy; do
3810
 
    test -z "$ac_dir" && ac_dir=.
3811
 
    if test -f $ac_dir/file; then
3812
 
      lt_cv_path_MAGIC_CMD="$ac_dir/file"
3813
 
      if test -n "$file_magic_test_file"; then
3814
 
        case $deplibs_check_method in
3815
 
        "file_magic "*)
3816
 
          file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3817
 
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3818
 
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3819
 
            egrep "$file_magic_regex" > /dev/null; then
3820
 
            :
3821
 
          else
3822
 
            cat <<EOF 1>&2
3823
 
 
3824
 
*** Warning: the command libtool uses to detect shared libraries,
3825
 
*** $file_magic_cmd, produces output that libtool cannot recognize.
3826
 
*** The result is that libtool may fail to recognize shared libraries
3827
 
*** as such.  This will affect the creation of libtool libraries that
3828
 
*** depend on shared libraries, but programs linked with such libtool
3829
 
*** libraries will work regardless of this problem.  Nevertheless, you
3830
 
*** may want to report the problem to your system manager and/or to
3831
 
*** bug-libtool@gnu.org
3832
 
 
3833
 
EOF
3834
 
          fi ;;
3835
 
        esac
3836
 
      fi
3837
 
      break
3838
 
    fi
3839
 
  done
3840
 
  IFS="$ac_save_ifs"
3841
 
  MAGIC_CMD="$ac_save_MAGIC_CMD"
3842
 
  ;;
3843
 
esac
3844
 
fi
3845
 
 
3846
 
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3847
 
if test -n "$MAGIC_CMD"; then
3848
 
  echo "$as_me:3848: result: $MAGIC_CMD" >&5
3849
 
echo "${ECHO_T}$MAGIC_CMD" >&6
3850
 
else
3851
 
  echo "$as_me:3851: result: no" >&5
3852
 
echo "${ECHO_T}no" >&6
3853
 
fi
3854
 
 
3855
 
  else
3856
 
    MAGIC_CMD=:
3857
 
  fi
3858
 
fi
3859
 
 
3860
 
  fi
3861
 
  ;;
3862
 
esac
3863
 
 
3864
 
if test -n "$ac_tool_prefix"; then
3865
 
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3866
 
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3867
 
echo "$as_me:3867: checking for $ac_word" >&5
3868
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3869
 
if test "${ac_cv_prog_RANLIB+set}" = set; then
3870
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3871
 
else
3872
 
  if test -n "$RANLIB"; then
3873
 
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3874
 
else
3875
 
  ac_save_IFS=$IFS; IFS=$ac_path_separator
3876
 
ac_dummy="$PATH"
3877
 
for ac_dir in $ac_dummy; do
3878
 
  IFS=$ac_save_IFS
3879
 
  test -z "$ac_dir" && ac_dir=.
3880
 
  $as_executable_p "$ac_dir/$ac_word" || continue
3881
 
ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3882
 
echo "$as_me:3882: found $ac_dir/$ac_word" >&5
3883
 
break
3884
 
done
3885
 
 
3886
 
fi
3887
 
fi
3888
 
RANLIB=$ac_cv_prog_RANLIB
3889
 
if test -n "$RANLIB"; then
3890
 
  echo "$as_me:3890: result: $RANLIB" >&5
3891
 
echo "${ECHO_T}$RANLIB" >&6
3892
 
else
3893
 
  echo "$as_me:3893: result: no" >&5
3894
 
echo "${ECHO_T}no" >&6
3895
 
fi
3896
 
 
3897
 
fi
3898
 
if test -z "$ac_cv_prog_RANLIB"; then
3899
 
  ac_ct_RANLIB=$RANLIB
3900
 
  # Extract the first word of "ranlib", so it can be a program name with args.
3901
 
set dummy ranlib; ac_word=$2
3902
 
echo "$as_me:3902: checking for $ac_word" >&5
3903
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3904
 
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3905
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3906
 
else
3907
 
  if test -n "$ac_ct_RANLIB"; then
3908
 
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3909
 
else
3910
 
  ac_save_IFS=$IFS; IFS=$ac_path_separator
3911
 
ac_dummy="$PATH"
3912
 
for ac_dir in $ac_dummy; do
3913
 
  IFS=$ac_save_IFS
3914
 
  test -z "$ac_dir" && ac_dir=.
3915
 
  $as_executable_p "$ac_dir/$ac_word" || continue
3916
 
ac_cv_prog_ac_ct_RANLIB="ranlib"
3917
 
echo "$as_me:3917: found $ac_dir/$ac_word" >&5
3918
 
break
3919
 
done
3920
 
 
3921
 
  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3922
 
fi
3923
 
fi
3924
 
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3925
 
if test -n "$ac_ct_RANLIB"; then
3926
 
  echo "$as_me:3926: result: $ac_ct_RANLIB" >&5
3927
 
echo "${ECHO_T}$ac_ct_RANLIB" >&6
3928
 
else
3929
 
  echo "$as_me:3929: result: no" >&5
3930
 
echo "${ECHO_T}no" >&6
3931
 
fi
3932
 
 
3933
 
  RANLIB=$ac_ct_RANLIB
3934
 
else
3935
 
  RANLIB="$ac_cv_prog_RANLIB"
3936
 
fi
3937
 
 
3938
 
if test -n "$ac_tool_prefix"; then
 
1531
_ACEOF
 
1532
 
 
1533
# Some tools Automake needs.
 
1534
 
 
1535
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
 
1536
 
 
1537
 
 
1538
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
 
1539
 
 
1540
 
 
1541
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
 
1542
 
 
1543
 
 
1544
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
 
1545
 
 
1546
 
 
1547
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
 
1548
 
 
1549
 
 
1550
AMTAR=${AMTAR-"${am_missing_run}tar"}
 
1551
 
 
1552
install_sh=${install_sh-"$am_aux_dir/install-sh"}
 
1553
 
 
1554
# Installed binaries are usually stripped using `strip' when the user
 
1555
# run `make install-strip'.  However `strip' might not be the right
 
1556
# tool to use in cross-compilation environments, therefore Automake
 
1557
# will honor the `STRIP' environment variable to overrule this program.
 
1558
if test "$cross_compiling" != no; then
 
1559
  if test -n "$ac_tool_prefix"; then
3939
1560
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3940
1561
set dummy ${ac_tool_prefix}strip; ac_word=$2
3941
 
echo "$as_me:3941: checking for $ac_word" >&5
 
1562
echo "$as_me:$LINENO: checking for $ac_word" >&5
3942
1563
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3943
1564
if test "${ac_cv_prog_STRIP+set}" = set; then
3944
1565
  echo $ECHO_N "(cached) $ECHO_C" >&6
3946
1567
  if test -n "$STRIP"; then
3947
1568
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3948
1569
else
3949
 
  ac_save_IFS=$IFS; IFS=$ac_path_separator
3950
 
ac_dummy="$PATH"
3951
 
for ac_dir in $ac_dummy; do
3952
 
  IFS=$ac_save_IFS
3953
 
  test -z "$ac_dir" && ac_dir=.
3954
 
  $as_executable_p "$ac_dir/$ac_word" || continue
3955
 
ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3956
 
echo "$as_me:3956: found $ac_dir/$ac_word" >&5
3957
 
break
 
1570
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1571
for as_dir in $PATH
 
1572
do
 
1573
  IFS=$as_save_IFS
 
1574
  test -z "$as_dir" && as_dir=.
 
1575
  for ac_exec_ext in '' $ac_executable_extensions; do
 
1576
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
1577
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
 
1578
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
1579
    break 2
 
1580
  fi
 
1581
done
3958
1582
done
3959
1583
 
3960
1584
fi
3961
1585
fi
3962
1586
STRIP=$ac_cv_prog_STRIP
3963
1587
if test -n "$STRIP"; then
3964
 
  echo "$as_me:3964: result: $STRIP" >&5
 
1588
  echo "$as_me:$LINENO: result: $STRIP" >&5
3965
1589
echo "${ECHO_T}$STRIP" >&6
3966
1590
else
3967
 
  echo "$as_me:3967: result: no" >&5
 
1591
  echo "$as_me:$LINENO: result: no" >&5
3968
1592
echo "${ECHO_T}no" >&6
3969
1593
fi
3970
1594
 
3973
1597
  ac_ct_STRIP=$STRIP
3974
1598
  # Extract the first word of "strip", so it can be a program name with args.
3975
1599
set dummy strip; ac_word=$2
3976
 
echo "$as_me:3976: checking for $ac_word" >&5
 
1600
echo "$as_me:$LINENO: checking for $ac_word" >&5
3977
1601
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3978
1602
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3979
1603
  echo $ECHO_N "(cached) $ECHO_C" >&6
3981
1605
  if test -n "$ac_ct_STRIP"; then
3982
1606
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3983
1607
else
3984
 
  ac_save_IFS=$IFS; IFS=$ac_path_separator
3985
 
ac_dummy="$PATH"
3986
 
for ac_dir in $ac_dummy; do
3987
 
  IFS=$ac_save_IFS
3988
 
  test -z "$ac_dir" && ac_dir=.
3989
 
  $as_executable_p "$ac_dir/$ac_word" || continue
3990
 
ac_cv_prog_ac_ct_STRIP="strip"
3991
 
echo "$as_me:3991: found $ac_dir/$ac_word" >&5
3992
 
break
 
1608
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1609
for as_dir in $PATH
 
1610
do
 
1611
  IFS=$as_save_IFS
 
1612
  test -z "$as_dir" && as_dir=.
 
1613
  for ac_exec_ext in '' $ac_executable_extensions; do
 
1614
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
1615
    ac_cv_prog_ac_ct_STRIP="strip"
 
1616
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
1617
    break 2
 
1618
  fi
 
1619
done
3993
1620
done
3994
1621
 
3995
1622
  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3997
1624
fi
3998
1625
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3999
1626
if test -n "$ac_ct_STRIP"; then
4000
 
  echo "$as_me:4000: result: $ac_ct_STRIP" >&5
 
1627
  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4001
1628
echo "${ECHO_T}$ac_ct_STRIP" >&6
4002
1629
else
4003
 
  echo "$as_me:4003: result: no" >&5
 
1630
  echo "$as_me:$LINENO: result: no" >&5
4004
1631
echo "${ECHO_T}no" >&6
4005
1632
fi
4006
1633
 
4009
1636
  STRIP="$ac_cv_prog_STRIP"
4010
1637
fi
4011
1638
 
4012
 
enable_dlopen=no
4013
 
enable_win32_dll=no
4014
 
 
4015
 
# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4016
 
if test "${enable_libtool_lock+set}" = set; then
4017
 
  enableval="$enable_libtool_lock"
4018
 
 
4019
 
fi;
4020
 
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4021
 
 
4022
 
# Some flags need to be propagated to the compiler or linker for good
4023
 
# libtool support.
4024
 
case $host in
4025
 
*-*-irix6*)
4026
 
  # Find out which ABI we are using.
4027
 
  echo '#line 4027 "configure"' > conftest.$ac_ext
4028
 
  if { (eval echo "$as_me:4028: \"$ac_compile\"") >&5
4029
 
  (eval $ac_compile) 2>&5
4030
 
  ac_status=$?
4031
 
  echo "$as_me:4031: \$? = $ac_status" >&5
4032
 
  (exit $ac_status); }; then
4033
 
    case `/usr/bin/file conftest.$ac_objext` in
4034
 
    *32-bit*)
4035
 
      LD="${LD-ld} -32"
4036
 
      ;;
4037
 
    *N32*)
4038
 
      LD="${LD-ld} -n32"
4039
 
      ;;
4040
 
    *64-bit*)
4041
 
      LD="${LD-ld} -64"
4042
 
      ;;
4043
 
    esac
4044
 
  fi
4045
 
  rm -rf conftest*
4046
 
  ;;
4047
 
 
4048
 
*-*-sco3.2v5*)
4049
 
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4050
 
  SAVE_CFLAGS="$CFLAGS"
4051
 
  CFLAGS="$CFLAGS -belf"
4052
 
  echo "$as_me:4052: checking whether the C compiler needs -belf" >&5
4053
 
echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4054
 
if test "${lt_cv_cc_needs_belf+set}" = set; then
4055
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4056
 
else
4057
 
 
4058
 
     ac_ext=c
4059
 
ac_cpp='$CPP $CPPFLAGS'
4060
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4061
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4062
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4063
 
 
4064
 
     cat >conftest.$ac_ext <<_ACEOF
4065
 
#line 4065 "configure"
4066
 
#include "confdefs.h"
4067
 
 
4068
 
int
4069
 
main ()
4070
 
{
4071
 
 
4072
 
  ;
4073
 
  return 0;
4074
 
}
4075
 
_ACEOF
4076
 
rm -f conftest.$ac_objext conftest$ac_exeext
4077
 
if { (eval echo "$as_me:4077: \"$ac_link\"") >&5
4078
 
  (eval $ac_link) 2>&5
4079
 
  ac_status=$?
4080
 
  echo "$as_me:4080: \$? = $ac_status" >&5
4081
 
  (exit $ac_status); } &&
4082
 
         { ac_try='test -s conftest$ac_exeext'
4083
 
  { (eval echo "$as_me:4083: \"$ac_try\"") >&5
4084
 
  (eval $ac_try) 2>&5
4085
 
  ac_status=$?
4086
 
  echo "$as_me:4086: \$? = $ac_status" >&5
4087
 
  (exit $ac_status); }; }; then
4088
 
  lt_cv_cc_needs_belf=yes
4089
 
else
4090
 
  echo "$as_me: failed program was:" >&5
4091
 
cat conftest.$ac_ext >&5
4092
 
lt_cv_cc_needs_belf=no
4093
 
fi
4094
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4095
 
     ac_ext=c
4096
 
ac_cpp='$CPP $CPPFLAGS'
4097
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4098
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4099
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4100
 
 
4101
 
fi
4102
 
echo "$as_me:4102: result: $lt_cv_cc_needs_belf" >&5
4103
 
echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4104
 
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4105
 
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4106
 
    CFLAGS="$SAVE_CFLAGS"
4107
 
  fi
4108
 
  ;;
4109
 
 
4110
 
esac
4111
 
 
4112
 
# Sed substitution that helps us do robust quoting.  It backslashifies
4113
 
# metacharacters that are still active within double-quoted strings.
4114
 
Xsed='sed -e s/^X//'
4115
 
sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
4116
 
 
4117
 
# Same as above, but do not quote variable references.
4118
 
double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
4119
 
 
4120
 
# Sed substitution to delay expansion of an escaped shell variable in a
4121
 
# double_quote_subst'ed string.
4122
 
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4123
 
 
4124
 
# Constants:
4125
 
rm="rm -f"
4126
 
 
4127
 
# Global variables:
4128
 
default_ofile=libtool
4129
 
can_build_shared=yes
4130
 
 
4131
 
# All known linkers require a `.a' archive for static linking (except M$VC,
4132
 
# which needs '.lib').
4133
 
libext=a
4134
 
ltmain="$ac_aux_dir/ltmain.sh"
4135
 
ofile="$default_ofile"
4136
 
with_gnu_ld="$lt_cv_prog_gnu_ld"
4137
 
need_locks="$enable_libtool_lock"
4138
 
 
4139
 
old_CC="$CC"
4140
 
old_CFLAGS="$CFLAGS"
4141
 
 
4142
 
# Set sane defaults for various variables
4143
 
test -z "$AR" && AR=ar
4144
 
test -z "$AR_FLAGS" && AR_FLAGS=cru
4145
 
test -z "$AS" && AS=as
4146
 
test -z "$CC" && CC=cc
4147
 
test -z "$DLLTOOL" && DLLTOOL=dlltool
4148
 
test -z "$LD" && LD=ld
4149
 
test -z "$LN_S" && LN_S="ln -s"
4150
 
test -z "$MAGIC_CMD" && MAGIC_CMD=file
4151
 
test -z "$NM" && NM=nm
4152
 
test -z "$OBJDUMP" && OBJDUMP=objdump
4153
 
test -z "$RANLIB" && RANLIB=:
4154
 
test -z "$STRIP" && STRIP=:
4155
 
test -z "$ac_objext" && ac_objext=o
4156
 
 
4157
 
if test x"$host" != x"$build"; then
4158
 
  ac_tool_prefix=${host_alias}-
4159
 
else
4160
 
  ac_tool_prefix=
4161
 
fi
4162
 
 
4163
 
# Transform linux* to *-*-linux-gnu*, to support old configure scripts.
4164
 
case $host_os in
4165
 
linux-gnu*) ;;
4166
 
linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
4167
 
esac
4168
 
 
4169
 
case $host_os in
4170
 
aix3*)
4171
 
  # AIX sometimes has problems with the GCC collect2 program.  For some
4172
 
  # reason, if we set the COLLECT_NAMES environment variable, the problems
4173
 
  # vanish in a puff of smoke.
4174
 
  if test "X${COLLECT_NAMES+set}" != Xset; then
4175
 
    COLLECT_NAMES=
4176
 
    export COLLECT_NAMES
4177
 
  fi
4178
 
  ;;
4179
 
esac
4180
 
 
4181
 
# Determine commands to create old-style static archives.
4182
 
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
4183
 
old_postinstall_cmds='chmod 644 $oldlib'
4184
 
old_postuninstall_cmds=
4185
 
 
4186
 
if test -n "$RANLIB"; then
4187
 
  case $host_os in
4188
 
  openbsd*)
4189
 
    old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
4190
 
    ;;
4191
 
  *)
4192
 
    old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
4193
 
    ;;
4194
 
  esac
4195
 
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
4196
 
fi
4197
 
 
4198
 
# Allow CC to be a program name with arguments.
4199
 
set dummy $CC
4200
 
compiler="$2"
4201
 
 
4202
 
echo "$as_me:4202: checking for objdir" >&5
4203
 
echo $ECHO_N "checking for objdir... $ECHO_C" >&6
4204
 
rm -f .libs 2>/dev/null
4205
 
mkdir .libs 2>/dev/null
4206
 
if test -d .libs; then
4207
 
  objdir=.libs
4208
 
else
4209
 
  # MS-DOS does not allow filenames that begin with a dot.
4210
 
  objdir=_libs
4211
 
fi
4212
 
rmdir .libs 2>/dev/null
4213
 
echo "$as_me:4213: result: $objdir" >&5
4214
 
echo "${ECHO_T}$objdir" >&6
4215
 
 
4216
 
# Check whether --with-pic or --without-pic was given.
4217
 
if test "${with_pic+set}" = set; then
4218
 
  withval="$with_pic"
4219
 
  pic_mode="$withval"
4220
 
else
4221
 
  pic_mode=default
4222
 
fi;
4223
 
test -z "$pic_mode" && pic_mode=default
4224
 
 
4225
 
# We assume here that the value for lt_cv_prog_cc_pic will not be cached
4226
 
# in isolation, and that seeing it set (from the cache) indicates that
4227
 
# the associated values are set (in the cache) correctly too.
4228
 
echo "$as_me:4228: checking for $compiler option to produce PIC" >&5
4229
 
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
4230
 
if test "${lt_cv_prog_cc_pic+set}" = set; then
4231
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4232
 
else
4233
 
   lt_cv_prog_cc_pic=
4234
 
  lt_cv_prog_cc_shlib=
4235
 
  lt_cv_prog_cc_wl=
4236
 
  lt_cv_prog_cc_static=
4237
 
  lt_cv_prog_cc_no_builtin=
4238
 
  lt_cv_prog_cc_can_build_shared=$can_build_shared
4239
 
 
4240
 
  if test "$GCC" = yes; then
4241
 
    lt_cv_prog_cc_wl='-Wl,'
4242
 
    lt_cv_prog_cc_static='-static'
4243
 
 
4244
 
    case $host_os in
4245
 
    aix*)
4246
 
      # Below there is a dirty hack to force normal static linking with -ldl
4247
 
      # The problem is because libdl dynamically linked with both libc and
4248
 
      # libC (AIX C++ library), which obviously doesn't included in libraries
4249
 
      # list by gcc. This cause undefined symbols with -static flags.
4250
 
      # This hack allows C programs to be linked with "-static -ldl", but
4251
 
      # not sure about C++ programs.
4252
 
      lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
4253
 
      ;;
4254
 
    amigaos*)
4255
 
      # FIXME: we need at least 68020 code to build shared libraries, but
4256
 
      # adding the `-m68020' flag to GCC prevents building anything better,
4257
 
      # like `-m68040'.
4258
 
      lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
4259
 
      ;;
4260
 
    beos* | irix5* | irix6* | osf3* | osf4* | osf5*)
4261
 
      # PIC is the default for these OSes.
4262
 
      ;;
4263
 
    darwin* | rhapsody*)
4264
 
      # PIC is the default on this platform
4265
 
      # Common symbols not allowed in MH_DYLIB files
4266
 
      lt_cv_prog_cc_pic='-fno-common'
4267
 
      ;;
4268
 
    cygwin* | mingw* | pw32* | os2*)
4269
 
      # This hack is so that the source file can tell whether it is being
4270
 
      # built for inclusion in a dll (and should export symbols for example).
4271
 
      lt_cv_prog_cc_pic='-DDLL_EXPORT'
4272
 
      ;;
4273
 
    sysv4*MP*)
4274
 
      if test -d /usr/nec; then
4275
 
         lt_cv_prog_cc_pic=-Kconform_pic
4276
 
      fi
4277
 
      ;;
4278
 
    *)
4279
 
      lt_cv_prog_cc_pic='-fPIC'
4280
 
      ;;
4281
 
    esac
4282
 
  else
4283
 
    # PORTME Check for PIC flags for the system compiler.
4284
 
    case $host_os in
4285
 
    aix3* | aix4* | aix5*)
4286
 
      lt_cv_prog_cc_wl='-Wl,'
4287
 
      # All AIX code is PIC.
4288
 
      if test "$host_cpu" = ia64; then
4289
 
        # AIX 5 now supports IA64 processor
4290
 
        lt_cv_prog_cc_static='-Bstatic'
4291
 
      else
4292
 
        lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
4293
 
      fi
4294
 
      ;;
4295
 
 
4296
 
    hpux9* | hpux10* | hpux11*)
4297
 
      # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
4298
 
      lt_cv_prog_cc_wl='-Wl,'
4299
 
      lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
4300
 
      lt_cv_prog_cc_pic='+Z'
4301
 
      ;;
4302
 
 
4303
 
    irix5* | irix6*)
4304
 
      lt_cv_prog_cc_wl='-Wl,'
4305
 
      lt_cv_prog_cc_static='-non_shared'
4306
 
      # PIC (with -KPIC) is the default.
4307
 
      ;;
4308
 
 
4309
 
    cygwin* | mingw* | pw32* | os2*)
4310
 
      # This hack is so that the source file can tell whether it is being
4311
 
      # built for inclusion in a dll (and should export symbols for example).
4312
 
      lt_cv_prog_cc_pic='-DDLL_EXPORT'
4313
 
      ;;
4314
 
 
4315
 
    newsos6)
4316
 
      lt_cv_prog_cc_pic='-KPIC'
4317
 
      lt_cv_prog_cc_static='-Bstatic'
4318
 
      ;;
4319
 
 
4320
 
    osf3* | osf4* | osf5*)
4321
 
      # All OSF/1 code is PIC.
4322
 
      lt_cv_prog_cc_wl='-Wl,'
4323
 
      lt_cv_prog_cc_static='-non_shared'
4324
 
      ;;
4325
 
 
4326
 
    sco3.2v5*)
4327
 
      lt_cv_prog_cc_pic='-Kpic'
4328
 
      lt_cv_prog_cc_static='-dn'
4329
 
      lt_cv_prog_cc_shlib='-belf'
4330
 
      ;;
4331
 
 
4332
 
    solaris*)
4333
 
      lt_cv_prog_cc_pic='-KPIC'
4334
 
      lt_cv_prog_cc_static='-Bstatic'
4335
 
      lt_cv_prog_cc_wl='-Wl,'
4336
 
      ;;
4337
 
 
4338
 
    sunos4*)
4339
 
      lt_cv_prog_cc_pic='-PIC'
4340
 
      lt_cv_prog_cc_static='-Bstatic'
4341
 
      lt_cv_prog_cc_wl='-Qoption ld '
4342
 
      ;;
4343
 
 
4344
 
    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4345
 
      lt_cv_prog_cc_pic='-KPIC'
4346
 
      lt_cv_prog_cc_static='-Bstatic'
4347
 
      if test "x$host_vendor" = xsni; then
4348
 
        lt_cv_prog_cc_wl='-LD'
4349
 
      else
4350
 
        lt_cv_prog_cc_wl='-Wl,'
4351
 
      fi
4352
 
      ;;
4353
 
 
4354
 
    uts4*)
4355
 
      lt_cv_prog_cc_pic='-pic'
4356
 
      lt_cv_prog_cc_static='-Bstatic'
4357
 
      ;;
4358
 
 
4359
 
    sysv4*MP*)
4360
 
      if test -d /usr/nec ;then
4361
 
        lt_cv_prog_cc_pic='-Kconform_pic'
4362
 
        lt_cv_prog_cc_static='-Bstatic'
4363
 
      fi
4364
 
      ;;
4365
 
 
4366
 
    *)
4367
 
      lt_cv_prog_cc_can_build_shared=no
4368
 
      ;;
4369
 
    esac
4370
 
  fi
4371
 
 
4372
 
fi
4373
 
 
4374
 
if test -z "$lt_cv_prog_cc_pic"; then
4375
 
  echo "$as_me:4375: result: none" >&5
4376
 
echo "${ECHO_T}none" >&6
4377
 
else
4378
 
  echo "$as_me:4378: result: $lt_cv_prog_cc_pic" >&5
4379
 
echo "${ECHO_T}$lt_cv_prog_cc_pic" >&6
4380
 
 
4381
 
  # Check to make sure the pic_flag actually works.
4382
 
  echo "$as_me:4382: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
4383
 
echo $ECHO_N "checking if $compiler PIC flag $lt_cv_prog_cc_pic works... $ECHO_C" >&6
4384
 
  if test "${lt_cv_prog_cc_pic_works+set}" = set; then
4385
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4386
 
else
4387
 
      save_CFLAGS="$CFLAGS"
4388
 
    CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
4389
 
    cat >conftest.$ac_ext <<_ACEOF
4390
 
#line 4390 "configure"
4391
 
#include "confdefs.h"
4392
 
 
4393
 
int
4394
 
main ()
4395
 
{
4396
 
 
4397
 
  ;
4398
 
  return 0;
4399
 
}
4400
 
_ACEOF
4401
 
rm -f conftest.$ac_objext
4402
 
if { (eval echo "$as_me:4402: \"$ac_compile\"") >&5
4403
 
  (eval $ac_compile) 2>&5
4404
 
  ac_status=$?
4405
 
  echo "$as_me:4405: \$? = $ac_status" >&5
4406
 
  (exit $ac_status); } &&
4407
 
         { ac_try='test -s conftest.$ac_objext'
4408
 
  { (eval echo "$as_me:4408: \"$ac_try\"") >&5
4409
 
  (eval $ac_try) 2>&5
4410
 
  ac_status=$?
4411
 
  echo "$as_me:4411: \$? = $ac_status" >&5
4412
 
  (exit $ac_status); }; }; then
4413
 
        case $host_os in
4414
 
      hpux9* | hpux10* | hpux11*)
4415
 
        # On HP-UX, both CC and GCC only warn that PIC is supported... then
4416
 
        # they create non-PIC objects.  So, if there were any warnings, we
4417
 
        # assume that PIC is not supported.
4418
 
        if test -s conftest.err; then
4419
 
          lt_cv_prog_cc_pic_works=no
4420
 
        else
4421
 
          lt_cv_prog_cc_pic_works=yes
4422
 
        fi
4423
 
        ;;
4424
 
      *)
4425
 
        lt_cv_prog_cc_pic_works=yes
4426
 
        ;;
4427
 
      esac
4428
 
 
4429
 
else
4430
 
  echo "$as_me: failed program was:" >&5
4431
 
cat conftest.$ac_ext >&5
4432
 
      lt_cv_prog_cc_pic_works=no
4433
 
 
4434
 
fi
4435
 
rm -f conftest.$ac_objext conftest.$ac_ext
4436
 
    CFLAGS="$save_CFLAGS"
4437
 
 
4438
 
fi
4439
 
 
4440
 
  if test "X$lt_cv_prog_cc_pic_works" = Xno; then
4441
 
    lt_cv_prog_cc_pic=
4442
 
    lt_cv_prog_cc_can_build_shared=no
4443
 
  else
4444
 
    lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
4445
 
  fi
4446
 
 
4447
 
  echo "$as_me:4447: result: $lt_cv_prog_cc_pic_works" >&5
4448
 
echo "${ECHO_T}$lt_cv_prog_cc_pic_works" >&6
4449
 
fi
4450
 
 
4451
 
# Check for any special shared library compilation flags.
4452
 
if test -n "$lt_cv_prog_cc_shlib"; then
4453
 
  { echo "$as_me:4453: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&5
4454
 
echo "$as_me: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&2;}
4455
 
  if echo "$old_CC $old_CFLAGS " | egrep -e "[  ]$lt_cv_prog_cc_shlib[  ]" >/dev/null; then :
4456
 
  else
4457
 
   { echo "$as_me:4457: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
4458
 
echo "$as_me: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
4459
 
    lt_cv_prog_cc_can_build_shared=no
4460
 
  fi
4461
 
fi
4462
 
 
4463
 
echo "$as_me:4463: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
4464
 
echo $ECHO_N "checking if $compiler static flag $lt_cv_prog_cc_static works... $ECHO_C" >&6
4465
 
if test "${lt_cv_prog_cc_static_works+set}" = set; then
4466
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4467
 
else
4468
 
    lt_cv_prog_cc_static_works=no
4469
 
  save_LDFLAGS="$LDFLAGS"
4470
 
  LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
4471
 
  cat >conftest.$ac_ext <<_ACEOF
4472
 
#line 4472 "configure"
4473
 
#include "confdefs.h"
4474
 
 
4475
 
int
4476
 
main ()
4477
 
{
4478
 
 
4479
 
  ;
4480
 
  return 0;
4481
 
}
4482
 
_ACEOF
4483
 
rm -f conftest.$ac_objext conftest$ac_exeext
4484
 
if { (eval echo "$as_me:4484: \"$ac_link\"") >&5
4485
 
  (eval $ac_link) 2>&5
4486
 
  ac_status=$?
4487
 
  echo "$as_me:4487: \$? = $ac_status" >&5
4488
 
  (exit $ac_status); } &&
4489
 
         { ac_try='test -s conftest$ac_exeext'
4490
 
  { (eval echo "$as_me:4490: \"$ac_try\"") >&5
4491
 
  (eval $ac_try) 2>&5
4492
 
  ac_status=$?
4493
 
  echo "$as_me:4493: \$? = $ac_status" >&5
4494
 
  (exit $ac_status); }; }; then
4495
 
  lt_cv_prog_cc_static_works=yes
4496
 
else
4497
 
  echo "$as_me: failed program was:" >&5
4498
 
cat conftest.$ac_ext >&5
4499
 
fi
4500
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4501
 
  LDFLAGS="$save_LDFLAGS"
4502
 
 
4503
 
fi
4504
 
 
4505
 
# Belt *and* braces to stop my trousers falling down:
4506
 
test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
4507
 
echo "$as_me:4507: result: $lt_cv_prog_cc_static_works" >&5
4508
 
echo "${ECHO_T}$lt_cv_prog_cc_static_works" >&6
4509
 
 
4510
 
pic_flag="$lt_cv_prog_cc_pic"
4511
 
special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
4512
 
wl="$lt_cv_prog_cc_wl"
4513
 
link_static_flag="$lt_cv_prog_cc_static"
4514
 
no_builtin_flag="$lt_cv_prog_cc_no_builtin"
4515
 
can_build_shared="$lt_cv_prog_cc_can_build_shared"
4516
 
 
4517
 
# Check to see if options -o and -c are simultaneously supported by compiler
4518
 
echo "$as_me:4518: checking if $compiler supports -c -o file.$ac_objext" >&5
4519
 
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
4520
 
if test "${lt_cv_compiler_c_o+set}" = set; then
4521
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4522
 
else
4523
 
 
4524
 
$rm -r conftest 2>/dev/null
4525
 
mkdir conftest
4526
 
cd conftest
4527
 
echo "int some_variable = 0;" > conftest.$ac_ext
4528
 
mkdir out
4529
 
# According to Tom Tromey, Ian Lance Taylor reported there are C compilers
4530
 
# that will create temporary files in the current directory regardless of
4531
 
# the output directory.  Thus, making CWD read-only will cause this test
4532
 
# to fail, enabling locking or at least warning the user not to do parallel
4533
 
# builds.
4534
 
chmod -w .
4535
 
save_CFLAGS="$CFLAGS"
4536
 
CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
4537
 
compiler_c_o=no
4538
 
if { (eval echo configure:4538: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
4539
 
  # The compiler can only warn and ignore the option if not recognized
4540
 
  # So say no if there are warnings
4541
 
  if test -s out/conftest.err; then
4542
 
    lt_cv_compiler_c_o=no
4543
 
  else
4544
 
    lt_cv_compiler_c_o=yes
4545
 
  fi
4546
 
else
4547
 
  # Append any errors to the config.log.
4548
 
  cat out/conftest.err 1>&5
4549
 
  lt_cv_compiler_c_o=no
4550
 
fi
4551
 
CFLAGS="$save_CFLAGS"
4552
 
chmod u+w .
4553
 
$rm conftest* out/*
4554
 
rmdir out
4555
 
cd ..
4556
 
rmdir conftest
4557
 
$rm -r conftest 2>/dev/null
4558
 
 
4559
 
fi
4560
 
 
4561
 
compiler_c_o=$lt_cv_compiler_c_o
4562
 
echo "$as_me:4562: result: $compiler_c_o" >&5
4563
 
echo "${ECHO_T}$compiler_c_o" >&6
4564
 
 
4565
 
if test x"$compiler_c_o" = x"yes"; then
4566
 
  # Check to see if we can write to a .lo
4567
 
  echo "$as_me:4567: checking if $compiler supports -c -o file.lo" >&5
4568
 
echo $ECHO_N "checking if $compiler supports -c -o file.lo... $ECHO_C" >&6
4569
 
  if test "${lt_cv_compiler_o_lo+set}" = set; then
4570
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4571
 
else
4572
 
 
4573
 
  lt_cv_compiler_o_lo=no
4574
 
  save_CFLAGS="$CFLAGS"
4575
 
  CFLAGS="$CFLAGS -c -o conftest.lo"
4576
 
  save_objext="$ac_objext"
4577
 
  ac_objext=lo
4578
 
  cat >conftest.$ac_ext <<_ACEOF
4579
 
#line 4579 "configure"
4580
 
#include "confdefs.h"
4581
 
 
4582
 
int
4583
 
main ()
4584
 
{
4585
 
int some_variable = 0;
4586
 
  ;
4587
 
  return 0;
4588
 
}
4589
 
_ACEOF
4590
 
rm -f conftest.$ac_objext
4591
 
if { (eval echo "$as_me:4591: \"$ac_compile\"") >&5
4592
 
  (eval $ac_compile) 2>&5
4593
 
  ac_status=$?
4594
 
  echo "$as_me:4594: \$? = $ac_status" >&5
4595
 
  (exit $ac_status); } &&
4596
 
         { ac_try='test -s conftest.$ac_objext'
4597
 
  { (eval echo "$as_me:4597: \"$ac_try\"") >&5
4598
 
  (eval $ac_try) 2>&5
4599
 
  ac_status=$?
4600
 
  echo "$as_me:4600: \$? = $ac_status" >&5
4601
 
  (exit $ac_status); }; }; then
4602
 
      # The compiler can only warn and ignore the option if not recognized
4603
 
    # So say no if there are warnings
4604
 
    if test -s conftest.err; then
4605
 
      lt_cv_compiler_o_lo=no
4606
 
    else
4607
 
      lt_cv_compiler_o_lo=yes
4608
 
    fi
4609
 
 
4610
 
else
4611
 
  echo "$as_me: failed program was:" >&5
4612
 
cat conftest.$ac_ext >&5
4613
 
fi
4614
 
rm -f conftest.$ac_objext conftest.$ac_ext
4615
 
  ac_objext="$save_objext"
4616
 
  CFLAGS="$save_CFLAGS"
4617
 
 
4618
 
fi
4619
 
 
4620
 
  compiler_o_lo=$lt_cv_compiler_o_lo
4621
 
  echo "$as_me:4621: result: $compiler_o_lo" >&5
4622
 
echo "${ECHO_T}$compiler_o_lo" >&6
4623
 
else
4624
 
  compiler_o_lo=no
4625
 
fi
4626
 
 
4627
 
# Check to see if we can do hard links to lock some files if needed
4628
 
hard_links="nottested"
4629
 
if test "$compiler_c_o" = no && test "$need_locks" != no; then
4630
 
  # do not overwrite the value of need_locks provided by the user
4631
 
  echo "$as_me:4631: checking if we can lock with hard links" >&5
4632
 
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
4633
 
  hard_links=yes
4634
 
  $rm conftest*
4635
 
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
4636
 
  touch conftest.a
4637
 
  ln conftest.a conftest.b 2>&5 || hard_links=no
4638
 
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
4639
 
  echo "$as_me:4639: result: $hard_links" >&5
4640
 
echo "${ECHO_T}$hard_links" >&6
4641
 
  if test "$hard_links" = no; then
4642
 
    { echo "$as_me:4642: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
4643
 
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
4644
 
    need_locks=warn
4645
 
  fi
4646
 
else
4647
 
  need_locks=no
4648
 
fi
4649
 
 
4650
 
if test "$GCC" = yes; then
4651
 
  # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
4652
 
  echo "$as_me:4652: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
4653
 
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
4654
 
  echo "int some_variable = 0;" > conftest.$ac_ext
4655
 
  save_CFLAGS="$CFLAGS"
4656
 
  CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
4657
 
  compiler_rtti_exceptions=no
4658
 
  cat >conftest.$ac_ext <<_ACEOF
4659
 
#line 4659 "configure"
4660
 
#include "confdefs.h"
4661
 
 
4662
 
int
4663
 
main ()
4664
 
{
4665
 
int some_variable = 0;
4666
 
  ;
4667
 
  return 0;
4668
 
}
4669
 
_ACEOF
4670
 
rm -f conftest.$ac_objext
4671
 
if { (eval echo "$as_me:4671: \"$ac_compile\"") >&5
4672
 
  (eval $ac_compile) 2>&5
4673
 
  ac_status=$?
4674
 
  echo "$as_me:4674: \$? = $ac_status" >&5
4675
 
  (exit $ac_status); } &&
4676
 
         { ac_try='test -s conftest.$ac_objext'
4677
 
  { (eval echo "$as_me:4677: \"$ac_try\"") >&5
4678
 
  (eval $ac_try) 2>&5
4679
 
  ac_status=$?
4680
 
  echo "$as_me:4680: \$? = $ac_status" >&5
4681
 
  (exit $ac_status); }; }; then
4682
 
      # The compiler can only warn and ignore the option if not recognized
4683
 
    # So say no if there are warnings
4684
 
    if test -s conftest.err; then
4685
 
      compiler_rtti_exceptions=no
4686
 
    else
4687
 
      compiler_rtti_exceptions=yes
4688
 
    fi
4689
 
 
4690
 
else
4691
 
  echo "$as_me: failed program was:" >&5
4692
 
cat conftest.$ac_ext >&5
4693
 
fi
4694
 
rm -f conftest.$ac_objext conftest.$ac_ext
4695
 
  CFLAGS="$save_CFLAGS"
4696
 
  echo "$as_me:4696: result: $compiler_rtti_exceptions" >&5
4697
 
echo "${ECHO_T}$compiler_rtti_exceptions" >&6
4698
 
 
4699
 
  if test "$compiler_rtti_exceptions" = "yes"; then
4700
 
    no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
4701
 
  else
4702
 
    no_builtin_flag=' -fno-builtin'
4703
 
  fi
4704
 
fi
4705
 
 
4706
 
# See if the linker supports building shared libraries.
4707
 
echo "$as_me:4707: checking whether the linker ($LD) supports shared libraries" >&5
4708
 
echo $ECHO_N "checking whether the linker ($LD) supports shared libraries... $ECHO_C" >&6
4709
 
 
4710
 
allow_undefined_flag=
4711
 
no_undefined_flag=
4712
 
need_lib_prefix=unknown
4713
 
need_version=unknown
4714
 
# when you set need_version to no, make sure it does not cause -set_version
4715
 
# flags to be left without arguments
4716
 
archive_cmds=
4717
 
archive_expsym_cmds=
4718
 
old_archive_from_new_cmds=
4719
 
old_archive_from_expsyms_cmds=
4720
 
export_dynamic_flag_spec=
4721
 
whole_archive_flag_spec=
4722
 
thread_safe_flag_spec=
4723
 
hardcode_into_libs=no
4724
 
hardcode_libdir_flag_spec=
4725
 
hardcode_libdir_separator=
4726
 
hardcode_direct=no
4727
 
hardcode_minus_L=no
4728
 
hardcode_shlibpath_var=unsupported
4729
 
runpath_var=
4730
 
link_all_deplibs=unknown
4731
 
always_export_symbols=no
4732
 
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
4733
 
# include_expsyms should be a list of space-separated symbols to be *always*
4734
 
# included in the symbol list
4735
 
include_expsyms=
4736
 
# exclude_expsyms can be an egrep regular expression of symbols to exclude
4737
 
# it will be wrapped by ` (' and `)$', so one must not match beginning or
4738
 
# end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
4739
 
# as well as any symbol that contains `d'.
4740
 
exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
4741
 
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
4742
 
# platforms (ab)use it in PIC code, but their linkers get confused if
4743
 
# the symbol is explicitly referenced.  Since portable code cannot
4744
 
# rely on this symbol name, it's probably fine to never include it in
4745
 
# preloaded symbol tables.
4746
 
extract_expsyms_cmds=
4747
 
 
4748
 
case $host_os in
4749
 
cygwin* | mingw* | pw32*)
4750
 
  # FIXME: the MSVC++ port hasn't been tested in a loooong time
4751
 
  # When not using gcc, we currently assume that we are using
4752
 
  # Microsoft Visual C++.
4753
 
  if test "$GCC" != yes; then
4754
 
    with_gnu_ld=no
4755
 
  fi
4756
 
  ;;
4757
 
openbsd*)
4758
 
  with_gnu_ld=no
4759
 
  ;;
4760
 
esac
4761
 
 
4762
 
ld_shlibs=yes
4763
 
if test "$with_gnu_ld" = yes; then
4764
 
  # If archive_cmds runs LD, not CC, wlarc should be empty
4765
 
  wlarc='${wl}'
4766
 
 
4767
 
  # See if GNU ld supports shared libraries.
4768
 
  case $host_os in
4769
 
  aix3* | aix4* | aix5*)
4770
 
    # On AIX, the GNU linker is very broken
4771
 
    # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
4772
 
    ld_shlibs=no
4773
 
    cat <<EOF 1>&2
4774
 
 
4775
 
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
4776
 
*** to be unable to reliably create shared libraries on AIX.
4777
 
*** Therefore, libtool is disabling shared libraries support.  If you
4778
 
*** really care for shared libraries, you may want to modify your PATH
4779
 
*** so that a non-GNU linker is found, and then restart.
4780
 
 
4781
 
EOF
4782
 
    ;;
4783
 
 
4784
 
  amigaos*)
4785
 
    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)'
4786
 
    hardcode_libdir_flag_spec='-L$libdir'
4787
 
    hardcode_minus_L=yes
4788
 
 
4789
 
    # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
4790
 
    # that the semantics of dynamic libraries on AmigaOS, at least up
4791
 
    # to version 4, is to share data among multiple programs linked
4792
 
    # with the same dynamic library.  Since this doesn't match the
4793
 
    # behavior of shared libraries on other platforms, we can use
4794
 
    # them.
4795
 
    ld_shlibs=no
4796
 
    ;;
4797
 
 
4798
 
  beos*)
4799
 
    if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
4800
 
      allow_undefined_flag=unsupported
4801
 
      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
4802
 
      # support --undefined.  This deserves some investigation.  FIXME
4803
 
      archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4804
 
    else
4805
 
      ld_shlibs=no
4806
 
    fi
4807
 
    ;;
4808
 
 
4809
 
  cygwin* | mingw* | pw32*)
4810
 
    # hardcode_libdir_flag_spec is actually meaningless, as there is
4811
 
    # no search path for DLLs.
4812
 
    hardcode_libdir_flag_spec='-L$libdir'
4813
 
    allow_undefined_flag=unsupported
4814
 
    always_export_symbols=yes
4815
 
 
4816
 
    extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
4817
 
      sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
4818
 
      test -f $output_objdir/impgen.exe || (cd $output_objdir && \
4819
 
      if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
4820
 
      else $CC -o impgen impgen.c ; fi)~
4821
 
      $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
4822
 
 
4823
 
    old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
4824
 
 
4825
 
    # cygwin and mingw dlls have different entry points and sets of symbols
4826
 
    # to exclude.
4827
 
    # FIXME: what about values for MSVC?
4828
 
    dll_entry=__cygwin_dll_entry@12
4829
 
    dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
4830
 
    case $host_os in
4831
 
    mingw*)
4832
 
      # mingw values
4833
 
      dll_entry=_DllMainCRTStartup@12
4834
 
      dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
4835
 
      ;;
4836
 
    esac
4837
 
 
4838
 
    # mingw and cygwin differ, and it's simplest to just exclude the union
4839
 
    # of the two symbol sets.
4840
 
    dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
4841
 
 
4842
 
    # recent cygwin and mingw systems supply a stub DllMain which the user
4843
 
    # can override, but on older systems we have to supply one (in ltdll.c)
4844
 
    if test "x$lt_cv_need_dllmain" = "xyes"; then
4845
 
      ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
4846
 
      ltdll_cmds='test -f $output_objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d < [$]0 > $output_objdir/$soname-ltdll.c~
4847
 
        test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
4848
 
    else
4849
 
      ltdll_obj=
4850
 
      ltdll_cmds=
4851
 
    fi
4852
 
 
4853
 
    # Extract the symbol export list from an `--export-all' def file,
4854
 
    # then regenerate the def file from the symbol export list, so that
4855
 
    # the compiled dll only exports the symbol export list.
4856
 
    # Be careful not to strip the DATA tag left be newer dlltools.
4857
 
    export_symbols_cmds="$ltdll_cmds"'
4858
 
      $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
4859
 
      sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
4860
 
 
4861
 
    # If the export-symbols file already is a .def file (1st line
4862
 
    # is EXPORTS), use it as is.
4863
 
    # If DATA tags from a recent dlltool are present, honour them!
4864
 
    archive_expsym_cmds='if test "x`head -1 $export_symbols`" = xEXPORTS; then
4865
 
        cp $export_symbols $output_objdir/$soname-def;
4866
 
      else
4867
 
        echo EXPORTS > $output_objdir/$soname-def;
4868
 
        _lt_hint=1;
4869
 
        cat $export_symbols | while read symbol; do
4870
 
         set dummy \$symbol;
4871
 
         case \$# in
4872
 
           2) echo "   \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
4873
 
           *) echo "     \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
4874
 
         esac;
4875
 
         _lt_hint=`expr 1 + \$_lt_hint`;
4876
 
        done;
4877
 
      fi~
4878
 
      '"$ltdll_cmds"'
4879
 
      $CC -Wl,--base-file,$output_objdir/$soname-base '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
4880
 
      $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp~
4881
 
      $CC -Wl,--base-file,$output_objdir/$soname-base $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
4882
 
      $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp --output-lib $output_objdir/$libname.dll.a~
4883
 
      $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
4884
 
    ;;
4885
 
 
4886
 
  netbsd*)
4887
 
    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
4888
 
      archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
4889
 
      wlarc=
4890
 
    else
4891
 
      archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4892
 
      archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
4893
 
    fi
4894
 
    ;;
4895
 
 
4896
 
  solaris* | sysv5*)
4897
 
    if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
4898
 
      ld_shlibs=no
4899
 
      cat <<EOF 1>&2
4900
 
 
4901
 
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
4902
 
*** create shared libraries on Solaris systems.  Therefore, libtool
4903
 
*** is disabling shared libraries support.  We urge you to upgrade GNU
4904
 
*** binutils to release 2.9.1 or newer.  Another option is to modify
4905
 
*** your PATH or compiler configuration so that the native linker is
4906
 
*** used, and then restart.
4907
 
 
4908
 
EOF
4909
 
    elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
4910
 
      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4911
 
      archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
4912
 
    else
4913
 
      ld_shlibs=no
4914
 
    fi
4915
 
    ;;
4916
 
 
4917
 
  sunos4*)
4918
 
    archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
4919
 
    wlarc=
4920
 
    hardcode_direct=yes
4921
 
    hardcode_shlibpath_var=no
4922
 
    ;;
4923
 
 
4924
 
  *)
4925
 
    if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
4926
 
      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4927
 
      archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
4928
 
    else
4929
 
      ld_shlibs=no
4930
 
    fi
4931
 
    ;;
4932
 
  esac
4933
 
 
4934
 
  if test "$ld_shlibs" = yes; then
4935
 
    runpath_var=LD_RUN_PATH
4936
 
    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
4937
 
    export_dynamic_flag_spec='${wl}--export-dynamic'
4938
 
    case $host_os in
4939
 
    cygwin* | mingw* | pw32*)
4940
 
      # dlltool doesn't understand --whole-archive et. al.
4941
 
      whole_archive_flag_spec=
4942
 
      ;;
4943
 
    *)
4944
 
      # ancient GNU ld didn't support --whole-archive et. al.
4945
 
      if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
4946
 
        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
4947
 
      else
4948
 
        whole_archive_flag_spec=
4949
 
      fi
4950
 
      ;;
4951
 
    esac
4952
 
  fi
4953
 
else
4954
 
  # PORTME fill in a description of your system's linker (not GNU ld)
4955
 
  case $host_os in
4956
 
  aix3*)
4957
 
    allow_undefined_flag=unsupported
4958
 
    always_export_symbols=yes
4959
 
    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'
4960
 
    # Note: this linker hardcodes the directories in LIBPATH if there
4961
 
    # are no directories specified by -L.
4962
 
    hardcode_minus_L=yes
4963
 
    if test "$GCC" = yes && test -z "$link_static_flag"; then
4964
 
      # Neither direct hardcoding nor static linking is supported with a
4965
 
      # broken collect2.
4966
 
      hardcode_direct=unsupported
4967
 
    fi
4968
 
    ;;
4969
 
 
4970
 
  aix4* | aix5*)
4971
 
    if test "$host_cpu" = ia64; then
4972
 
      # On IA64, the linker does run time linking by default, so we don't
4973
 
      # have to do anything special.
4974
 
      aix_use_runtimelinking=no
4975
 
      exp_sym_flag='-Bexport'
4976
 
      no_entry_flag=""
4977
 
    else
4978
 
      aix_use_runtimelinking=no
4979
 
 
4980
 
      # Test if we are trying to use run time linking or normal
4981
 
      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
4982
 
      # need to do runtime linking.
4983
 
      case $host_os in aix4.[23]|aix4.[23].*|aix5*)
4984
 
        for ld_flag in $LDFLAGS; do
4985
 
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
4986
 
            aix_use_runtimelinking=yes
4987
 
            break
4988
 
          fi
4989
 
        done
4990
 
      esac
4991
 
 
4992
 
      exp_sym_flag='-bexport'
4993
 
      no_entry_flag='-bnoentry'
4994
 
    fi
4995
 
 
4996
 
    # When large executables or shared objects are built, AIX ld can
4997
 
    # have problems creating the table of contents.  If linking a library
4998
 
    # or program results in "error TOC overflow" add -mminimal-toc to
4999
 
    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
5000
 
    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
5001
 
 
5002
 
    hardcode_direct=yes
5003
 
    archive_cmds=''
5004
 
    hardcode_libdir_separator=':'
5005
 
    if test "$GCC" = yes; then
5006
 
      case $host_os in aix4.[012]|aix4.[012].*)
5007
 
        collect2name=`${CC} -print-prog-name=collect2`
5008
 
        if test -f "$collect2name" && \
5009
 
          strings "$collect2name" | grep resolve_lib_name >/dev/null
5010
 
        then
5011
 
          # We have reworked collect2
5012
 
          hardcode_direct=yes
5013
 
        else
5014
 
          # We have old collect2
5015
 
          hardcode_direct=unsupported
5016
 
          # It fails to find uninstalled libraries when the uninstalled
5017
 
          # path is not listed in the libpath.  Setting hardcode_minus_L
5018
 
          # to unsupported forces relinking
5019
 
          hardcode_minus_L=yes
5020
 
          hardcode_libdir_flag_spec='-L$libdir'
5021
 
          hardcode_libdir_separator=
5022
 
        fi
5023
 
      esac
5024
 
 
5025
 
      shared_flag='-shared'
5026
 
    else
5027
 
      # not using gcc
5028
 
      if test "$host_cpu" = ia64; then
5029
 
        shared_flag='${wl}-G'
5030
 
      else
5031
 
        if test "$aix_use_runtimelinking" = yes; then
5032
 
          shared_flag='${wl}-G'
5033
 
        else
5034
 
          shared_flag='${wl}-bM:SRE'
5035
 
        fi
5036
 
      fi
5037
 
    fi
5038
 
 
5039
 
    # It seems that -bexpall can do strange things, so it is better to
5040
 
    # generate a list of symbols to export.
5041
 
    always_export_symbols=yes
5042
 
    if test "$aix_use_runtimelinking" = yes; then
5043
 
      # Warning - without using the other runtime loading flags (-brtl),
5044
 
      # -berok will link without error, but may produce a broken library.
5045
 
      allow_undefined_flag='-berok'
5046
 
      hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
5047
 
      archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
5048
 
    else
5049
 
      if test "$host_cpu" = ia64; then
5050
 
        hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
5051
 
        allow_undefined_flag="-z nodefs"
5052
 
        archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname ${wl}-h$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
5053
 
      else
5054
 
        hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
5055
 
        # Warning - without using the other run time loading flags,
5056
 
        # -berok will link without error, but may produce a broken library.
5057
 
        allow_undefined_flag='${wl}-berok'
5058
 
        # This is a bit strange, but is similar to how AIX traditionally builds
5059
 
        # it's shared libraries.
5060
 
        archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"' ~$AR -crlo $objdir/$libname$release.a $objdir/$soname'
5061
 
      fi
5062
 
    fi
5063
 
    ;;
5064
 
 
5065
 
  amigaos*)
5066
 
    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)'
5067
 
    hardcode_libdir_flag_spec='-L$libdir'
5068
 
    hardcode_minus_L=yes
5069
 
    # see comment about different semantics on the GNU ld section
5070
 
    ld_shlibs=no
5071
 
    ;;
5072
 
 
5073
 
  cygwin* | mingw* | pw32*)
5074
 
    # When not using gcc, we currently assume that we are using
5075
 
    # Microsoft Visual C++.
5076
 
    # hardcode_libdir_flag_spec is actually meaningless, as there is
5077
 
    # no search path for DLLs.
5078
 
    hardcode_libdir_flag_spec=' '
5079
 
    allow_undefined_flag=unsupported
5080
 
    # Tell ltmain to make .lib files, not .a files.
5081
 
    libext=lib
5082
 
    # FIXME: Setting linknames here is a bad hack.
5083
 
    archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
5084
 
    # The linker will automatically build a .lib file if we build a DLL.
5085
 
    old_archive_from_new_cmds='true'
5086
 
    # FIXME: Should let the user specify the lib program.
5087
 
    old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
5088
 
    fix_srcfile_path='`cygpath -w "$srcfile"`'
5089
 
    ;;
5090
 
 
5091
 
  darwin* | rhapsody*)
5092
 
    case "$host_os" in
5093
 
    rhapsody* | darwin1.[012])
5094
 
      allow_undefined_flag='-undefined suppress'
5095
 
      ;;
5096
 
    *) # Darwin 1.3 on
5097
 
      allow_undefined_flag='-flat_namespace -undefined suppress'
5098
 
      ;;
5099
 
    esac
5100
 
    # FIXME: Relying on posixy $() will cause problems for
5101
 
    #        cross-compilation, but unfortunately the echo tests do not
5102
 
    #        yet detect zsh echo's removal of \ escapes.
5103
 
    archive_cmds='$nonopt $(test "x$module" = xyes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib $libobjs $deplibs$linker_flags -install_name $rpath/$soname $verstring'
5104
 
    # We need to add '_' to the symbols in $export_symbols first
5105
 
    #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
5106
 
    hardcode_direct=yes
5107
 
    hardcode_shlibpath_var=no
5108
 
    whole_archive_flag_spec='-all_load $convenience'
5109
 
    ;;
5110
 
 
5111
 
  freebsd1*)
5112
 
    ld_shlibs=no
5113
 
    ;;
5114
 
 
5115
 
  # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
5116
 
  # support.  Future versions do this automatically, but an explicit c++rt0.o
5117
 
  # does not break anything, and helps significantly (at the cost of a little
5118
 
  # extra space).
5119
 
  freebsd2.2*)
5120
 
    archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
5121
 
    hardcode_libdir_flag_spec='-R$libdir'
5122
 
    hardcode_direct=yes
5123
 
    hardcode_shlibpath_var=no
5124
 
    ;;
5125
 
 
5126
 
  # Unfortunately, older versions of FreeBSD 2 do not have this feature.
5127
 
  freebsd2*)
5128
 
    archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5129
 
    hardcode_direct=yes
5130
 
    hardcode_minus_L=yes
5131
 
    hardcode_shlibpath_var=no
5132
 
    ;;
5133
 
 
5134
 
  # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
5135
 
  freebsd*)
5136
 
    archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
5137
 
    hardcode_libdir_flag_spec='-R$libdir'
5138
 
    hardcode_direct=yes
5139
 
    hardcode_shlibpath_var=no
5140
 
    ;;
5141
 
 
5142
 
  hpux9* | hpux10* | hpux11*)
5143
 
    case $host_os in
5144
 
    hpux9*) archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' ;;
5145
 
    *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
5146
 
    esac
5147
 
    hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
5148
 
    hardcode_libdir_separator=:
5149
 
    hardcode_direct=yes
5150
 
    hardcode_minus_L=yes # Not in the search PATH, but as the default
5151
 
                         # location of the library.
5152
 
    export_dynamic_flag_spec='${wl}-E'
5153
 
    ;;
5154
 
 
5155
 
  irix5* | irix6*)
5156
 
    if test "$GCC" = yes; then
5157
 
      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
5158
 
    else
5159
 
      archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
5160
 
    fi
5161
 
    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5162
 
    hardcode_libdir_separator=:
5163
 
    link_all_deplibs=yes
5164
 
    ;;
5165
 
 
5166
 
  netbsd*)
5167
 
    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5168
 
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
5169
 
    else
5170
 
      archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
5171
 
    fi
5172
 
    hardcode_libdir_flag_spec='-R$libdir'
5173
 
    hardcode_direct=yes
5174
 
    hardcode_shlibpath_var=no
5175
 
    ;;
5176
 
 
5177
 
  newsos6)
5178
 
    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5179
 
    hardcode_direct=yes
5180
 
    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5181
 
    hardcode_libdir_separator=:
5182
 
    hardcode_shlibpath_var=no
5183
 
    ;;
5184
 
 
5185
 
  openbsd*)
5186
 
    hardcode_direct=yes
5187
 
    hardcode_shlibpath_var=no
5188
 
    if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5189
 
      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
5190
 
      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
5191
 
      export_dynamic_flag_spec='${wl}-E'
5192
 
    else
5193
 
      case "$host_os" in
5194
 
      openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
5195
 
        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5196
 
        hardcode_libdir_flag_spec='-R$libdir'
5197
 
        ;;
5198
 
      *)
5199
 
        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
5200
 
        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
5201
 
        ;;
5202
 
      esac
5203
 
    fi
5204
 
    ;;
5205
 
 
5206
 
  os2*)
5207
 
    hardcode_libdir_flag_spec='-L$libdir'
5208
 
    hardcode_minus_L=yes
5209
 
    allow_undefined_flag=unsupported
5210
 
    archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
5211
 
    old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
5212
 
    ;;
5213
 
 
5214
 
  osf3*)
5215
 
    if test "$GCC" = yes; then
5216
 
      allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
5217
 
      archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
5218
 
    else
5219
 
      allow_undefined_flag=' -expect_unresolved \*'
5220
 
      archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
5221
 
    fi
5222
 
    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5223
 
    hardcode_libdir_separator=:
5224
 
    ;;
5225
 
 
5226
 
  osf4* | osf5*)        # as osf3* with the addition of -msym flag
5227
 
    if test "$GCC" = yes; then
5228
 
      allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
5229
 
      archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
5230
 
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5231
 
    else
5232
 
      allow_undefined_flag=' -expect_unresolved \*'
5233
 
      archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
5234
 
      archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
5235
 
      $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
5236
 
 
5237
 
      #Both c and cxx compiler support -rpath directly
5238
 
      hardcode_libdir_flag_spec='-rpath $libdir'
5239
 
    fi
5240
 
    hardcode_libdir_separator=:
5241
 
    ;;
5242
 
 
5243
 
  sco3.2v5*)
5244
 
    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5245
 
    hardcode_shlibpath_var=no
5246
 
    runpath_var=LD_RUN_PATH
5247
 
    hardcode_runpath_var=yes
5248
 
    export_dynamic_flag_spec='${wl}-Bexport'
5249
 
    ;;
5250
 
 
5251
 
  solaris*)
5252
 
    no_undefined_flag=' -z defs'
5253
 
    # $CC -shared without GNU ld will not create a library from C++
5254
 
    # object files and a static libstdc++, better avoid it by now
5255
 
    archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5256
 
    archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5257
 
                $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
5258
 
    hardcode_libdir_flag_spec='-R$libdir'
5259
 
    hardcode_shlibpath_var=no
5260
 
    case $host_os in
5261
 
    solaris2.[0-5] | solaris2.[0-5].*) ;;
5262
 
    *) # Supported since Solaris 2.6 (maybe 2.5.1?)
5263
 
      whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
5264
 
    esac
5265
 
    link_all_deplibs=yes
5266
 
    ;;
5267
 
 
5268
 
  sunos4*)
5269
 
    if test "x$host_vendor" = xsequent; then
5270
 
      # Use $CC to link under sequent, because it throws in some extra .o
5271
 
      # files that make .init and .fini sections work.
5272
 
      archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
5273
 
    else
5274
 
      archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
5275
 
    fi
5276
 
    hardcode_libdir_flag_spec='-L$libdir'
5277
 
    hardcode_direct=yes
5278
 
    hardcode_minus_L=yes
5279
 
    hardcode_shlibpath_var=no
5280
 
    ;;
5281
 
 
5282
 
  sysv4)
5283
 
    if test "x$host_vendor" = xsno; then
5284
 
      archive_cmds='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linker_flags'
5285
 
      hardcode_direct=yes # is this really true???
5286
 
    else
5287
 
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5288
 
      hardcode_direct=no #Motorola manual says yes, but my tests say they lie
5289
 
    fi
5290
 
    runpath_var='LD_RUN_PATH'
5291
 
    hardcode_shlibpath_var=no
5292
 
    ;;
5293
 
 
5294
 
  sysv4.3*)
5295
 
    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5296
 
    hardcode_shlibpath_var=no
5297
 
    export_dynamic_flag_spec='-Bexport'
5298
 
    ;;
5299
 
 
5300
 
  sysv5*)
5301
 
    no_undefined_flag=' -z text'
5302
 
    # $CC -shared without GNU ld will not create a library from C++
5303
 
    # object files and a static libstdc++, better avoid it by now
5304
 
    archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5305
 
    archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5306
 
                $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
5307
 
    hardcode_libdir_flag_spec=
5308
 
    hardcode_shlibpath_var=no
5309
 
    runpath_var='LD_RUN_PATH'
5310
 
    ;;
5311
 
 
5312
 
  uts4*)
5313
 
    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5314
 
    hardcode_libdir_flag_spec='-L$libdir'
5315
 
    hardcode_shlibpath_var=no
5316
 
    ;;
5317
 
 
5318
 
  dgux*)
5319
 
    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5320
 
    hardcode_libdir_flag_spec='-L$libdir'
5321
 
    hardcode_shlibpath_var=no
5322
 
    ;;
5323
 
 
5324
 
  sysv4*MP*)
5325
 
    if test -d /usr/nec; then
5326
 
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5327
 
      hardcode_shlibpath_var=no
5328
 
      runpath_var=LD_RUN_PATH
5329
 
      hardcode_runpath_var=yes
5330
 
      ld_shlibs=yes
5331
 
    fi
5332
 
    ;;
5333
 
 
5334
 
  sysv4.2uw2*)
5335
 
    archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
5336
 
    hardcode_direct=yes
5337
 
    hardcode_minus_L=no
5338
 
    hardcode_shlibpath_var=no
5339
 
    hardcode_runpath_var=yes
5340
 
    runpath_var=LD_RUN_PATH
5341
 
    ;;
5342
 
 
5343
 
  sysv5uw7* | unixware7*)
5344
 
    no_undefined_flag='${wl}-z ${wl}text'
5345
 
    if test "$GCC" = yes; then
5346
 
      archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5347
 
    else
5348
 
      archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5349
 
    fi
5350
 
    runpath_var='LD_RUN_PATH'
5351
 
    hardcode_shlibpath_var=no
5352
 
    ;;
5353
 
 
5354
 
  *)
5355
 
    ld_shlibs=no
5356
 
    ;;
5357
 
  esac
5358
 
fi
5359
 
echo "$as_me:5359: result: $ld_shlibs" >&5
5360
 
echo "${ECHO_T}$ld_shlibs" >&6
5361
 
test "$ld_shlibs" = no && can_build_shared=no
5362
 
 
5363
 
# Check hardcoding attributes.
5364
 
echo "$as_me:5364: checking how to hardcode library paths into programs" >&5
5365
 
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
5366
 
hardcode_action=
5367
 
if test -n "$hardcode_libdir_flag_spec" || \
5368
 
   test -n "$runpath_var"; then
5369
 
 
5370
 
  # We can hardcode non-existant directories.
5371
 
  if test "$hardcode_direct" != no &&
5372
 
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
5373
 
     # have to relink, otherwise we might link with an installed library
5374
 
     # when we should be linking with a yet-to-be-installed one
5375
 
     ## test "$hardcode_shlibpath_var" != no &&
5376
 
     test "$hardcode_minus_L" != no; then
5377
 
    # Linking always hardcodes the temporary library directory.
5378
 
    hardcode_action=relink
5379
 
  else
5380
 
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
5381
 
    hardcode_action=immediate
5382
 
  fi
5383
 
else
5384
 
  # We cannot hardcode anything, or else we can only hardcode existing
5385
 
  # directories.
5386
 
  hardcode_action=unsupported
5387
 
fi
5388
 
echo "$as_me:5388: result: $hardcode_action" >&5
5389
 
echo "${ECHO_T}$hardcode_action" >&6
5390
 
 
5391
 
striplib=
5392
 
old_striplib=
5393
 
echo "$as_me:5393: checking whether stripping libraries is possible" >&5
5394
 
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
5395
 
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
5396
 
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
5397
 
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
5398
 
  echo "$as_me:5398: result: yes" >&5
5399
 
echo "${ECHO_T}yes" >&6
5400
 
else
5401
 
  echo "$as_me:5401: result: no" >&5
5402
 
echo "${ECHO_T}no" >&6
5403
 
fi
5404
 
 
5405
 
reload_cmds='$LD$reload_flag -o $output$reload_objs'
5406
 
test -z "$deplibs_check_method" && deplibs_check_method=unknown
5407
 
 
5408
 
# PORTME Fill in your ld.so characteristics
5409
 
echo "$as_me:5409: checking dynamic linker characteristics" >&5
5410
 
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
5411
 
library_names_spec=
5412
 
libname_spec='lib$name'
5413
 
soname_spec=
5414
 
postinstall_cmds=
5415
 
postuninstall_cmds=
5416
 
finish_cmds=
5417
 
finish_eval=
5418
 
shlibpath_var=
5419
 
shlibpath_overrides_runpath=unknown
5420
 
version_type=none
5421
 
dynamic_linker="$host_os ld.so"
5422
 
sys_lib_dlsearch_path_spec="/lib /usr/lib"
5423
 
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
5424
 
 
5425
 
case $host_os in
5426
 
aix3*)
5427
 
  version_type=linux
5428
 
  library_names_spec='${libname}${release}.so$versuffix $libname.a'
5429
 
  shlibpath_var=LIBPATH
5430
 
 
5431
 
  # AIX has no versioning support, so we append a major version to the name.
5432
 
  soname_spec='${libname}${release}.so$major'
5433
 
  ;;
5434
 
 
5435
 
aix4* | aix5*)
5436
 
  version_type=linux
5437
 
  if test "$host_cpu" = ia64; then
5438
 
    # AIX 5 supports IA64
5439
 
    library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
5440
 
    shlibpath_var=LD_LIBRARY_PATH
5441
 
  else
5442
 
    # With GCC up to 2.95.x, collect2 would create an import file
5443
 
    # for dependence libraries.  The import file would start with
5444
 
    # the line `#! .'.  This would cause the generated library to
5445
 
    # depend on `.', always an invalid library.  This was fixed in
5446
 
    # development snapshots of GCC prior to 3.0.
5447
 
    case $host_os in
5448
 
       aix4 | aix4.[01] | aix4.[01].*)
5449
 
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
5450
 
           echo ' yes '
5451
 
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
5452
 
        :
5453
 
      else
5454
 
        can_build_shared=no
5455
 
      fi
5456
 
      ;;
5457
 
    esac
5458
 
    # AIX (on Power*) has no versioning support, so currently we can
5459
 
    # not hardcode correct soname into executable. Probably we can
5460
 
    # add versioning support to collect2, so additional links can
5461
 
    # be useful in future.
5462
 
    if test "$aix_use_runtimelinking" = yes; then
5463
 
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
5464
 
      # instead of lib<name>.a to let people know that these are not
5465
 
      # typical AIX shared libraries.
5466
 
      library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5467
 
    else
5468
 
      # We preserve .a as extension for shared libraries through AIX4.2
5469
 
      # and later when we are not doing run time linking.
5470
 
      library_names_spec='${libname}${release}.a $libname.a'
5471
 
      soname_spec='${libname}${release}.so$major'
5472
 
    fi
5473
 
    shlibpath_var=LIBPATH
5474
 
  fi
5475
 
  ;;
5476
 
 
5477
 
amigaos*)
5478
 
  library_names_spec='$libname.ixlibrary $libname.a'
5479
 
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
5480
 
  finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "(cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a)"; (cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a) || exit 1; done'
5481
 
  ;;
5482
 
 
5483
 
beos*)
5484
 
  library_names_spec='${libname}.so'
5485
 
  dynamic_linker="$host_os ld.so"
5486
 
  shlibpath_var=LIBRARY_PATH
5487
 
  ;;
5488
 
 
5489
 
bsdi4*)
5490
 
  version_type=linux
5491
 
  need_version=no
5492
 
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5493
 
  soname_spec='${libname}${release}.so$major'
5494
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
5495
 
  shlibpath_var=LD_LIBRARY_PATH
5496
 
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
5497
 
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
5498
 
  export_dynamic_flag_spec=-rdynamic
5499
 
  # the default ld.so.conf also contains /usr/contrib/lib and
5500
 
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
5501
 
  # libtool to hard-code these into programs
5502
 
  ;;
5503
 
 
5504
 
cygwin* | mingw* | pw32*)
5505
 
  version_type=windows
5506
 
  need_version=no
5507
 
  need_lib_prefix=no
5508
 
  case $GCC,$host_os in
5509
 
  yes,cygwin*)
5510
 
    library_names_spec='$libname.dll.a'
5511
 
    soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
5512
 
    postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
5513
 
      dldir=$destdir/`dirname \$dlpath`~
5514
 
      test -d \$dldir || mkdir -p \$dldir~
5515
 
      $install_prog .libs/$dlname \$dldir/$dlname'
5516
 
    postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
5517
 
      dlpath=$dir/\$dldll~
5518
 
       $rm \$dlpath'
5519
 
    ;;
5520
 
  yes,mingw*)
5521
 
    library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
5522
 
    sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g"`
5523
 
    ;;
5524
 
  yes,pw32*)
5525
 
    library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
5526
 
    ;;
5527
 
  *)
5528
 
    library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
5529
 
    ;;
5530
 
  esac
5531
 
  dynamic_linker='Win32 ld.exe'
5532
 
  # FIXME: first we should search . and the directory the executable is in
5533
 
  shlibpath_var=PATH
5534
 
  ;;
5535
 
 
5536
 
darwin* | rhapsody*)
5537
 
  dynamic_linker="$host_os dyld"
5538
 
  version_type=darwin
5539
 
  need_lib_prefix=no
5540
 
  need_version=no
5541
 
  # FIXME: Relying on posixy $() will cause problems for
5542
 
  #        cross-compilation, but unfortunately the echo tests do not
5543
 
  #        yet detect zsh echo's removal of \ escapes.
5544
 
  library_names_spec='${libname}${release}${versuffix}.$(test .$module = .yes && echo so || echo dylib) ${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib) ${libname}.$(test .$module = .yes && echo so || echo dylib)'
5545
 
  soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
5546
 
  shlibpath_overrides_runpath=yes
5547
 
  shlibpath_var=DYLD_LIBRARY_PATH
5548
 
  ;;
5549
 
 
5550
 
freebsd1*)
5551
 
  dynamic_linker=no
5552
 
  ;;
5553
 
 
5554
 
freebsd*)
5555
 
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
5556
 
  version_type=freebsd-$objformat
5557
 
  case $version_type in
5558
 
    freebsd-elf*)
5559
 
      library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
5560
 
      need_version=no
5561
 
      need_lib_prefix=no
5562
 
      ;;
5563
 
    freebsd-*)
5564
 
      library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
5565
 
      need_version=yes
5566
 
      ;;
5567
 
  esac
5568
 
  shlibpath_var=LD_LIBRARY_PATH
5569
 
  case $host_os in
5570
 
  freebsd2*)
5571
 
    shlibpath_overrides_runpath=yes
5572
 
    ;;
5573
 
  *)
5574
 
    shlibpath_overrides_runpath=no
5575
 
    hardcode_into_libs=yes
5576
 
    ;;
5577
 
  esac
5578
 
  ;;
5579
 
 
5580
 
gnu*)
5581
 
  version_type=linux
5582
 
  need_lib_prefix=no
5583
 
  need_version=no
5584
 
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
5585
 
  soname_spec='${libname}${release}.so$major'
5586
 
  shlibpath_var=LD_LIBRARY_PATH
5587
 
  hardcode_into_libs=yes
5588
 
  ;;
5589
 
 
5590
 
hpux9* | hpux10* | hpux11*)
5591
 
  # Give a soname corresponding to the major version so that dld.sl refuses to
5592
 
  # link against other versions.
5593
 
  dynamic_linker="$host_os dld.sl"
5594
 
  version_type=sunos
5595
 
  need_lib_prefix=no
5596
 
  need_version=no
5597
 
  shlibpath_var=SHLIB_PATH
5598
 
  shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
5599
 
  library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
5600
 
  soname_spec='${libname}${release}.sl$major'
5601
 
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
5602
 
  postinstall_cmds='chmod 555 $lib'
5603
 
  ;;
5604
 
 
5605
 
irix5* | irix6*)
5606
 
  version_type=irix
5607
 
  need_lib_prefix=no
5608
 
  need_version=no
5609
 
  soname_spec='${libname}${release}.so$major'
5610
 
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
5611
 
  case $host_os in
5612
 
  irix5*)
5613
 
    libsuff= shlibsuff=
5614
 
    ;;
5615
 
  *)
5616
 
    case $LD in # libtool.m4 will add one of these switches to LD
5617
 
    *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
5618
 
    *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
5619
 
    *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
5620
 
    *) libsuff= shlibsuff= libmagic=never-match;;
5621
 
    esac
5622
 
    ;;
5623
 
  esac
5624
 
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
5625
 
  shlibpath_overrides_runpath=no
5626
 
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
5627
 
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
5628
 
  ;;
5629
 
 
5630
 
# No shared lib support for Linux oldld, aout, or coff.
5631
 
linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
5632
 
  dynamic_linker=no
5633
 
  ;;
5634
 
 
5635
 
# This must be Linux ELF.
5636
 
linux-gnu*)
5637
 
  version_type=linux
5638
 
  need_lib_prefix=no
5639
 
  need_version=no
5640
 
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5641
 
  soname_spec='${libname}${release}.so$major'
5642
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
5643
 
  shlibpath_var=LD_LIBRARY_PATH
5644
 
  shlibpath_overrides_runpath=no
5645
 
  # This implies no fast_install, which is unacceptable.
5646
 
  # Some rework will be needed to allow for fast_install
5647
 
  # before this can be enabled.
5648
 
  hardcode_into_libs=yes
5649
 
 
5650
 
  # We used to test for /lib/ld.so.1 and disable shared libraries on
5651
 
  # powerpc, because MkLinux only supported shared libraries with the
5652
 
  # GNU dynamic linker.  Since this was broken with cross compilers,
5653
 
  # most powerpc-linux boxes support dynamic linking these days and
5654
 
  # people can always --disable-shared, the test was removed, and we
5655
 
  # assume the GNU/Linux dynamic linker is in use.
5656
 
  dynamic_linker='GNU/Linux ld.so'
5657
 
  ;;
5658
 
 
5659
 
netbsd*)
5660
 
  version_type=sunos
5661
 
  need_lib_prefix=no
5662
 
  need_version=no
5663
 
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5664
 
    library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
5665
 
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
5666
 
    dynamic_linker='NetBSD (a.out) ld.so'
5667
 
  else
5668
 
    library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
5669
 
    soname_spec='${libname}${release}.so$major'
5670
 
    dynamic_linker='NetBSD ld.elf_so'
5671
 
  fi
5672
 
  shlibpath_var=LD_LIBRARY_PATH
5673
 
  shlibpath_overrides_runpath=yes
5674
 
  hardcode_into_libs=yes
5675
 
  ;;
5676
 
 
5677
 
newsos6)
5678
 
  version_type=linux
5679
 
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5680
 
  shlibpath_var=LD_LIBRARY_PATH
5681
 
  shlibpath_overrides_runpath=yes
5682
 
  ;;
5683
 
 
5684
 
openbsd*)
5685
 
  version_type=sunos
5686
 
  need_lib_prefix=no
5687
 
  need_version=no
5688
 
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5689
 
    case "$host_os" in
5690
 
    openbsd2.[89] | openbsd2.[89].*)
5691
 
      shlibpath_overrides_runpath=no
5692
 
      ;;
5693
 
    *)
5694
 
      shlibpath_overrides_runpath=yes
5695
 
      ;;
5696
 
    esac
5697
 
  else
5698
 
    shlibpath_overrides_runpath=yes
5699
 
  fi
5700
 
  library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
5701
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
5702
 
  shlibpath_var=LD_LIBRARY_PATH
5703
 
  ;;
5704
 
 
5705
 
os2*)
5706
 
  libname_spec='$name'
5707
 
  need_lib_prefix=no
5708
 
  library_names_spec='$libname.dll $libname.a'
5709
 
  dynamic_linker='OS/2 ld.exe'
5710
 
  shlibpath_var=LIBPATH
5711
 
  ;;
5712
 
 
5713
 
osf3* | osf4* | osf5*)
5714
 
  version_type=osf
5715
 
  need_version=no
5716
 
  soname_spec='${libname}${release}.so'
5717
 
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
5718
 
  shlibpath_var=LD_LIBRARY_PATH
5719
 
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
5720
 
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
5721
 
  ;;
5722
 
 
5723
 
sco3.2v5*)
5724
 
  version_type=osf
5725
 
  soname_spec='${libname}${release}.so$major'
5726
 
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5727
 
  shlibpath_var=LD_LIBRARY_PATH
5728
 
  ;;
5729
 
 
5730
 
solaris*)
5731
 
  version_type=linux
5732
 
  need_lib_prefix=no
5733
 
  need_version=no
5734
 
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5735
 
  soname_spec='${libname}${release}.so$major'
5736
 
  shlibpath_var=LD_LIBRARY_PATH
5737
 
  shlibpath_overrides_runpath=yes
5738
 
  hardcode_into_libs=yes
5739
 
  # ldd complains unless libraries are executable
5740
 
  postinstall_cmds='chmod +x $lib'
5741
 
  ;;
5742
 
 
5743
 
sunos4*)
5744
 
  version_type=sunos
5745
 
  library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
5746
 
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
5747
 
  shlibpath_var=LD_LIBRARY_PATH
5748
 
  shlibpath_overrides_runpath=yes
5749
 
  if test "$with_gnu_ld" = yes; then
5750
 
    need_lib_prefix=no
5751
 
  fi
5752
 
  need_version=yes
5753
 
  ;;
5754
 
 
5755
 
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5756
 
  version_type=linux
5757
 
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5758
 
  soname_spec='${libname}${release}.so$major'
5759
 
  shlibpath_var=LD_LIBRARY_PATH
5760
 
  case $host_vendor in
5761
 
    sni)
5762
 
      shlibpath_overrides_runpath=no
5763
 
      ;;
5764
 
    motorola)
5765
 
      need_lib_prefix=no
5766
 
      need_version=no
5767
 
      shlibpath_overrides_runpath=no
5768
 
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
5769
 
      ;;
5770
 
  esac
5771
 
  ;;
5772
 
 
5773
 
uts4*)
5774
 
  version_type=linux
5775
 
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5776
 
  soname_spec='${libname}${release}.so$major'
5777
 
  shlibpath_var=LD_LIBRARY_PATH
5778
 
  ;;
5779
 
 
5780
 
dgux*)
5781
 
  version_type=linux
5782
 
  need_lib_prefix=no
5783
 
  need_version=no
5784
 
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5785
 
  soname_spec='${libname}${release}.so$major'
5786
 
  shlibpath_var=LD_LIBRARY_PATH
5787
 
  ;;
5788
 
 
5789
 
sysv4*MP*)
5790
 
  if test -d /usr/nec ;then
5791
 
    version_type=linux
5792
 
    library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
5793
 
    soname_spec='$libname.so.$major'
5794
 
    shlibpath_var=LD_LIBRARY_PATH
5795
 
  fi
5796
 
  ;;
5797
 
 
5798
 
*)
5799
 
  dynamic_linker=no
5800
 
  ;;
5801
 
esac
5802
 
echo "$as_me:5802: result: $dynamic_linker" >&5
5803
 
echo "${ECHO_T}$dynamic_linker" >&6
5804
 
test "$dynamic_linker" = no && can_build_shared=no
5805
 
 
5806
 
# Report the final consequences.
5807
 
echo "$as_me:5807: checking if libtool supports shared libraries" >&5
5808
 
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
5809
 
echo "$as_me:5809: result: $can_build_shared" >&5
5810
 
echo "${ECHO_T}$can_build_shared" >&6
5811
 
 
5812
 
echo "$as_me:5812: checking whether to build shared libraries" >&5
5813
 
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
5814
 
test "$can_build_shared" = "no" && enable_shared=no
5815
 
 
5816
 
# On AIX, shared libraries and static libraries use the same namespace, and
5817
 
# are all built from PIC.
5818
 
case "$host_os" in
5819
 
aix3*)
5820
 
  test "$enable_shared" = yes && enable_static=no
5821
 
  if test -n "$RANLIB"; then
5822
 
    archive_cmds="$archive_cmds~\$RANLIB \$lib"
5823
 
    postinstall_cmds='$RANLIB $lib'
5824
 
  fi
5825
 
  ;;
5826
 
 
5827
 
aix4*)
5828
 
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
5829
 
    test "$enable_shared" = yes && enable_static=no
5830
 
  fi
5831
 
  ;;
5832
 
esac
5833
 
echo "$as_me:5833: result: $enable_shared" >&5
5834
 
echo "${ECHO_T}$enable_shared" >&6
5835
 
 
5836
 
echo "$as_me:5836: checking whether to build static libraries" >&5
5837
 
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
5838
 
# Make sure either enable_shared or enable_static is yes.
5839
 
test "$enable_shared" = yes || enable_static=yes
5840
 
echo "$as_me:5840: result: $enable_static" >&5
5841
 
echo "${ECHO_T}$enable_static" >&6
5842
 
 
5843
 
if test "$hardcode_action" = relink; then
5844
 
  # Fast installation is not supported
5845
 
  enable_fast_install=no
5846
 
elif test "$shlibpath_overrides_runpath" = yes ||
5847
 
     test "$enable_shared" = no; then
5848
 
  # Fast installation is not necessary
5849
 
  enable_fast_install=needless
5850
 
fi
5851
 
 
5852
 
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
5853
 
if test "$GCC" = yes; then
5854
 
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
5855
 
fi
5856
 
 
5857
 
if test "x$enable_dlopen" != xyes; then
5858
 
  enable_dlopen=unknown
5859
 
  enable_dlopen_self=unknown
5860
 
  enable_dlopen_self_static=unknown
5861
 
else
5862
 
  lt_cv_dlopen=no
5863
 
  lt_cv_dlopen_libs=
5864
 
 
5865
 
  case $host_os in
5866
 
  beos*)
5867
 
    lt_cv_dlopen="load_add_on"
5868
 
    lt_cv_dlopen_libs=
5869
 
    lt_cv_dlopen_self=yes
5870
 
    ;;
5871
 
 
5872
 
  cygwin* | mingw* | pw32*)
5873
 
    lt_cv_dlopen="LoadLibrary"
5874
 
    lt_cv_dlopen_libs=
5875
 
   ;;
5876
 
 
5877
 
  *)
5878
 
    echo "$as_me:5878: checking for shl_load" >&5
5879
 
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
5880
 
if test "${ac_cv_func_shl_load+set}" = set; then
5881
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5882
 
else
5883
 
  cat >conftest.$ac_ext <<_ACEOF
5884
 
#line 5884 "configure"
5885
 
#include "confdefs.h"
5886
 
/* System header to define __stub macros and hopefully few prototypes,
5887
 
    which can conflict with char shl_load (); below.  */
5888
 
#include <assert.h>
5889
 
/* Override any gcc2 internal prototype to avoid an error.  */
5890
 
#ifdef __cplusplus
5891
 
extern "C"
5892
 
#endif
5893
 
/* We use char because int might match the return type of a gcc2
5894
 
   builtin and then its argument prototype would still apply.  */
5895
 
char shl_load ();
5896
 
char (*f) ();
5897
 
 
5898
 
int
5899
 
main ()
5900
 
{
5901
 
/* The GNU C library defines this for functions which it implements
5902
 
    to always fail with ENOSYS.  Some functions are actually named
5903
 
    something starting with __ and the normal name is an alias.  */
5904
 
#if defined (__stub_shl_load) || defined (__stub___shl_load)
5905
 
choke me
5906
 
#else
5907
 
f = shl_load;
5908
 
#endif
5909
 
 
5910
 
  ;
5911
 
  return 0;
5912
 
}
5913
 
_ACEOF
5914
 
rm -f conftest.$ac_objext conftest$ac_exeext
5915
 
if { (eval echo "$as_me:5915: \"$ac_link\"") >&5
5916
 
  (eval $ac_link) 2>&5
5917
 
  ac_status=$?
5918
 
  echo "$as_me:5918: \$? = $ac_status" >&5
5919
 
  (exit $ac_status); } &&
5920
 
         { ac_try='test -s conftest$ac_exeext'
5921
 
  { (eval echo "$as_me:5921: \"$ac_try\"") >&5
5922
 
  (eval $ac_try) 2>&5
5923
 
  ac_status=$?
5924
 
  echo "$as_me:5924: \$? = $ac_status" >&5
5925
 
  (exit $ac_status); }; }; then
5926
 
  ac_cv_func_shl_load=yes
5927
 
else
5928
 
  echo "$as_me: failed program was:" >&5
5929
 
cat conftest.$ac_ext >&5
5930
 
ac_cv_func_shl_load=no
5931
 
fi
5932
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5933
 
fi
5934
 
echo "$as_me:5934: result: $ac_cv_func_shl_load" >&5
5935
 
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
5936
 
if test $ac_cv_func_shl_load = yes; then
5937
 
  lt_cv_dlopen="shl_load"
5938
 
else
5939
 
  echo "$as_me:5939: checking for shl_load in -ldld" >&5
5940
 
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
5941
 
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
5942
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5943
 
else
5944
 
  ac_check_lib_save_LIBS=$LIBS
5945
 
LIBS="-ldld  $LIBS"
5946
 
cat >conftest.$ac_ext <<_ACEOF
5947
 
#line 5947 "configure"
5948
 
#include "confdefs.h"
5949
 
 
5950
 
/* Override any gcc2 internal prototype to avoid an error.  */
5951
 
#ifdef __cplusplus
5952
 
extern "C"
5953
 
#endif
5954
 
/* We use char because int might match the return type of a gcc2
5955
 
   builtin and then its argument prototype would still apply.  */
5956
 
char shl_load ();
5957
 
int
5958
 
main ()
5959
 
{
5960
 
shl_load ();
5961
 
  ;
5962
 
  return 0;
5963
 
}
5964
 
_ACEOF
5965
 
rm -f conftest.$ac_objext conftest$ac_exeext
5966
 
if { (eval echo "$as_me:5966: \"$ac_link\"") >&5
5967
 
  (eval $ac_link) 2>&5
5968
 
  ac_status=$?
5969
 
  echo "$as_me:5969: \$? = $ac_status" >&5
5970
 
  (exit $ac_status); } &&
5971
 
         { ac_try='test -s conftest$ac_exeext'
5972
 
  { (eval echo "$as_me:5972: \"$ac_try\"") >&5
5973
 
  (eval $ac_try) 2>&5
5974
 
  ac_status=$?
5975
 
  echo "$as_me:5975: \$? = $ac_status" >&5
5976
 
  (exit $ac_status); }; }; then
5977
 
  ac_cv_lib_dld_shl_load=yes
5978
 
else
5979
 
  echo "$as_me: failed program was:" >&5
5980
 
cat conftest.$ac_ext >&5
5981
 
ac_cv_lib_dld_shl_load=no
5982
 
fi
5983
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5984
 
LIBS=$ac_check_lib_save_LIBS
5985
 
fi
5986
 
echo "$as_me:5986: result: $ac_cv_lib_dld_shl_load" >&5
5987
 
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
5988
 
if test $ac_cv_lib_dld_shl_load = yes; then
5989
 
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
5990
 
else
5991
 
  echo "$as_me:5991: checking for dlopen" >&5
5992
 
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
5993
 
if test "${ac_cv_func_dlopen+set}" = set; then
5994
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5995
 
else
5996
 
  cat >conftest.$ac_ext <<_ACEOF
5997
 
#line 5997 "configure"
5998
 
#include "confdefs.h"
5999
 
/* System header to define __stub macros and hopefully few prototypes,
6000
 
    which can conflict with char dlopen (); below.  */
6001
 
#include <assert.h>
6002
 
/* Override any gcc2 internal prototype to avoid an error.  */
6003
 
#ifdef __cplusplus
6004
 
extern "C"
6005
 
#endif
6006
 
/* We use char because int might match the return type of a gcc2
6007
 
   builtin and then its argument prototype would still apply.  */
6008
 
char dlopen ();
6009
 
char (*f) ();
6010
 
 
6011
 
int
6012
 
main ()
6013
 
{
6014
 
/* The GNU C library defines this for functions which it implements
6015
 
    to always fail with ENOSYS.  Some functions are actually named
6016
 
    something starting with __ and the normal name is an alias.  */
6017
 
#if defined (__stub_dlopen) || defined (__stub___dlopen)
6018
 
choke me
6019
 
#else
6020
 
f = dlopen;
6021
 
#endif
6022
 
 
6023
 
  ;
6024
 
  return 0;
6025
 
}
6026
 
_ACEOF
6027
 
rm -f conftest.$ac_objext conftest$ac_exeext
6028
 
if { (eval echo "$as_me:6028: \"$ac_link\"") >&5
6029
 
  (eval $ac_link) 2>&5
6030
 
  ac_status=$?
6031
 
  echo "$as_me:6031: \$? = $ac_status" >&5
6032
 
  (exit $ac_status); } &&
6033
 
         { ac_try='test -s conftest$ac_exeext'
6034
 
  { (eval echo "$as_me:6034: \"$ac_try\"") >&5
6035
 
  (eval $ac_try) 2>&5
6036
 
  ac_status=$?
6037
 
  echo "$as_me:6037: \$? = $ac_status" >&5
6038
 
  (exit $ac_status); }; }; then
6039
 
  ac_cv_func_dlopen=yes
6040
 
else
6041
 
  echo "$as_me: failed program was:" >&5
6042
 
cat conftest.$ac_ext >&5
6043
 
ac_cv_func_dlopen=no
6044
 
fi
6045
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6046
 
fi
6047
 
echo "$as_me:6047: result: $ac_cv_func_dlopen" >&5
6048
 
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
6049
 
if test $ac_cv_func_dlopen = yes; then
6050
 
  lt_cv_dlopen="dlopen"
6051
 
else
6052
 
  echo "$as_me:6052: checking for dlopen in -ldl" >&5
6053
 
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
6054
 
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
6055
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6056
 
else
6057
 
  ac_check_lib_save_LIBS=$LIBS
6058
 
LIBS="-ldl  $LIBS"
6059
 
cat >conftest.$ac_ext <<_ACEOF
6060
 
#line 6060 "configure"
6061
 
#include "confdefs.h"
6062
 
 
6063
 
/* Override any gcc2 internal prototype to avoid an error.  */
6064
 
#ifdef __cplusplus
6065
 
extern "C"
6066
 
#endif
6067
 
/* We use char because int might match the return type of a gcc2
6068
 
   builtin and then its argument prototype would still apply.  */
6069
 
char dlopen ();
6070
 
int
6071
 
main ()
6072
 
{
6073
 
dlopen ();
6074
 
  ;
6075
 
  return 0;
6076
 
}
6077
 
_ACEOF
6078
 
rm -f conftest.$ac_objext conftest$ac_exeext
6079
 
if { (eval echo "$as_me:6079: \"$ac_link\"") >&5
6080
 
  (eval $ac_link) 2>&5
6081
 
  ac_status=$?
6082
 
  echo "$as_me:6082: \$? = $ac_status" >&5
6083
 
  (exit $ac_status); } &&
6084
 
         { ac_try='test -s conftest$ac_exeext'
6085
 
  { (eval echo "$as_me:6085: \"$ac_try\"") >&5
6086
 
  (eval $ac_try) 2>&5
6087
 
  ac_status=$?
6088
 
  echo "$as_me:6088: \$? = $ac_status" >&5
6089
 
  (exit $ac_status); }; }; then
6090
 
  ac_cv_lib_dl_dlopen=yes
6091
 
else
6092
 
  echo "$as_me: failed program was:" >&5
6093
 
cat conftest.$ac_ext >&5
6094
 
ac_cv_lib_dl_dlopen=no
6095
 
fi
6096
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6097
 
LIBS=$ac_check_lib_save_LIBS
6098
 
fi
6099
 
echo "$as_me:6099: result: $ac_cv_lib_dl_dlopen" >&5
6100
 
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
6101
 
if test $ac_cv_lib_dl_dlopen = yes; then
6102
 
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
6103
 
else
6104
 
  echo "$as_me:6104: checking for dlopen in -lsvld" >&5
6105
 
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
6106
 
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
6107
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6108
 
else
6109
 
  ac_check_lib_save_LIBS=$LIBS
6110
 
LIBS="-lsvld  $LIBS"
6111
 
cat >conftest.$ac_ext <<_ACEOF
6112
 
#line 6112 "configure"
6113
 
#include "confdefs.h"
6114
 
 
6115
 
/* Override any gcc2 internal prototype to avoid an error.  */
6116
 
#ifdef __cplusplus
6117
 
extern "C"
6118
 
#endif
6119
 
/* We use char because int might match the return type of a gcc2
6120
 
   builtin and then its argument prototype would still apply.  */
6121
 
char dlopen ();
6122
 
int
6123
 
main ()
6124
 
{
6125
 
dlopen ();
6126
 
  ;
6127
 
  return 0;
6128
 
}
6129
 
_ACEOF
6130
 
rm -f conftest.$ac_objext conftest$ac_exeext
6131
 
if { (eval echo "$as_me:6131: \"$ac_link\"") >&5
6132
 
  (eval $ac_link) 2>&5
6133
 
  ac_status=$?
6134
 
  echo "$as_me:6134: \$? = $ac_status" >&5
6135
 
  (exit $ac_status); } &&
6136
 
         { ac_try='test -s conftest$ac_exeext'
6137
 
  { (eval echo "$as_me:6137: \"$ac_try\"") >&5
6138
 
  (eval $ac_try) 2>&5
6139
 
  ac_status=$?
6140
 
  echo "$as_me:6140: \$? = $ac_status" >&5
6141
 
  (exit $ac_status); }; }; then
6142
 
  ac_cv_lib_svld_dlopen=yes
6143
 
else
6144
 
  echo "$as_me: failed program was:" >&5
6145
 
cat conftest.$ac_ext >&5
6146
 
ac_cv_lib_svld_dlopen=no
6147
 
fi
6148
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6149
 
LIBS=$ac_check_lib_save_LIBS
6150
 
fi
6151
 
echo "$as_me:6151: result: $ac_cv_lib_svld_dlopen" >&5
6152
 
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
6153
 
if test $ac_cv_lib_svld_dlopen = yes; then
6154
 
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
6155
 
else
6156
 
  echo "$as_me:6156: checking for dld_link in -ldld" >&5
6157
 
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
6158
 
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
6159
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6160
 
else
6161
 
  ac_check_lib_save_LIBS=$LIBS
6162
 
LIBS="-ldld  $LIBS"
6163
 
cat >conftest.$ac_ext <<_ACEOF
6164
 
#line 6164 "configure"
6165
 
#include "confdefs.h"
6166
 
 
6167
 
/* Override any gcc2 internal prototype to avoid an error.  */
6168
 
#ifdef __cplusplus
6169
 
extern "C"
6170
 
#endif
6171
 
/* We use char because int might match the return type of a gcc2
6172
 
   builtin and then its argument prototype would still apply.  */
6173
 
char dld_link ();
6174
 
int
6175
 
main ()
6176
 
{
6177
 
dld_link ();
6178
 
  ;
6179
 
  return 0;
6180
 
}
6181
 
_ACEOF
6182
 
rm -f conftest.$ac_objext conftest$ac_exeext
6183
 
if { (eval echo "$as_me:6183: \"$ac_link\"") >&5
6184
 
  (eval $ac_link) 2>&5
6185
 
  ac_status=$?
6186
 
  echo "$as_me:6186: \$? = $ac_status" >&5
6187
 
  (exit $ac_status); } &&
6188
 
         { ac_try='test -s conftest$ac_exeext'
6189
 
  { (eval echo "$as_me:6189: \"$ac_try\"") >&5
6190
 
  (eval $ac_try) 2>&5
6191
 
  ac_status=$?
6192
 
  echo "$as_me:6192: \$? = $ac_status" >&5
6193
 
  (exit $ac_status); }; }; then
6194
 
  ac_cv_lib_dld_dld_link=yes
6195
 
else
6196
 
  echo "$as_me: failed program was:" >&5
6197
 
cat conftest.$ac_ext >&5
6198
 
ac_cv_lib_dld_dld_link=no
6199
 
fi
6200
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6201
 
LIBS=$ac_check_lib_save_LIBS
6202
 
fi
6203
 
echo "$as_me:6203: result: $ac_cv_lib_dld_dld_link" >&5
6204
 
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
6205
 
if test $ac_cv_lib_dld_dld_link = yes; then
6206
 
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
6207
 
fi
6208
 
 
6209
 
fi
6210
 
 
6211
 
fi
6212
 
 
6213
 
fi
6214
 
 
6215
 
fi
6216
 
 
6217
 
fi
6218
 
 
6219
 
    ;;
6220
 
  esac
6221
 
 
6222
 
  if test "x$lt_cv_dlopen" != xno; then
6223
 
    enable_dlopen=yes
6224
 
  else
6225
 
    enable_dlopen=no
6226
 
  fi
6227
 
 
6228
 
  case $lt_cv_dlopen in
6229
 
  dlopen)
6230
 
    save_CPPFLAGS="$CPPFLAGS"
6231
 
        test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
6232
 
 
6233
 
    save_LDFLAGS="$LDFLAGS"
6234
 
    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
6235
 
 
6236
 
    save_LIBS="$LIBS"
6237
 
    LIBS="$lt_cv_dlopen_libs $LIBS"
6238
 
 
6239
 
    echo "$as_me:6239: checking whether a program can dlopen itself" >&5
6240
 
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
6241
 
if test "${lt_cv_dlopen_self+set}" = set; then
6242
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6243
 
else
6244
 
          if test "$cross_compiling" = yes; then :
6245
 
  lt_cv_dlopen_self=cross
6246
 
else
6247
 
    lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
6248
 
  lt_status=$lt_dlunknown
6249
 
  cat > conftest.$ac_ext <<EOF
6250
 
#line 6250 "configure"
6251
 
#include "confdefs.h"
6252
 
 
6253
 
#if HAVE_DLFCN_H
6254
 
#include <dlfcn.h>
6255
 
#endif
6256
 
 
6257
 
#include <stdio.h>
6258
 
 
6259
 
#ifdef RTLD_GLOBAL
6260
 
#  define LT_DLGLOBAL           RTLD_GLOBAL
6261
 
#else
6262
 
#  ifdef DL_GLOBAL
6263
 
#    define LT_DLGLOBAL         DL_GLOBAL
6264
 
#  else
6265
 
#    define LT_DLGLOBAL         0
6266
 
#  endif
6267
 
#endif
6268
 
 
6269
 
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
6270
 
   find out it does not work in some platform. */
6271
 
#ifndef LT_DLLAZY_OR_NOW
6272
 
#  ifdef RTLD_LAZY
6273
 
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
6274
 
#  else
6275
 
#    ifdef DL_LAZY
6276
 
#      define LT_DLLAZY_OR_NOW          DL_LAZY
6277
 
#    else
6278
 
#      ifdef RTLD_NOW
6279
 
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
6280
 
#      else
6281
 
#        ifdef DL_NOW
6282
 
#          define LT_DLLAZY_OR_NOW      DL_NOW
6283
 
#        else
6284
 
#          define LT_DLLAZY_OR_NOW      0
6285
 
#        endif
6286
 
#      endif
6287
 
#    endif
6288
 
#  endif
6289
 
#endif
6290
 
 
6291
 
#ifdef __cplusplus
6292
 
extern "C" void exit (int);
6293
 
#endif
6294
 
 
6295
 
void fnord() { int i=42;}
6296
 
int main ()
6297
 
{
6298
 
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
6299
 
  int status = $lt_dlunknown;
6300
 
 
6301
 
  if (self)
6302
 
    {
6303
 
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
6304
 
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
6305
 
      /* dlclose (self); */
6306
 
    }
6307
 
 
6308
 
    exit (status);
6309
 
}
6310
 
EOF
6311
 
  if { (eval echo "$as_me:6311: \"$ac_link\"") >&5
6312
 
  (eval $ac_link) 2>&5
6313
 
  ac_status=$?
6314
 
  echo "$as_me:6314: \$? = $ac_status" >&5
6315
 
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
6316
 
    (./conftest; exit; ) 2>/dev/null
6317
 
    lt_status=$?
6318
 
    case x$lt_status in
6319
 
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
6320
 
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
6321
 
      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
6322
 
    esac
6323
 
  else :
6324
 
    # compilation failed
6325
 
    lt_cv_dlopen_self=no
6326
 
  fi
6327
 
fi
6328
 
rm -fr conftest*
6329
 
 
6330
 
fi
6331
 
echo "$as_me:6331: result: $lt_cv_dlopen_self" >&5
6332
 
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
6333
 
 
6334
 
    if test "x$lt_cv_dlopen_self" = xyes; then
6335
 
      LDFLAGS="$LDFLAGS $link_static_flag"
6336
 
      echo "$as_me:6336: checking whether a statically linked program can dlopen itself" >&5
6337
 
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
6338
 
if test "${lt_cv_dlopen_self_static+set}" = set; then
6339
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6340
 
else
6341
 
          if test "$cross_compiling" = yes; then :
6342
 
  lt_cv_dlopen_self_static=cross
6343
 
else
6344
 
    lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
6345
 
  lt_status=$lt_dlunknown
6346
 
  cat > conftest.$ac_ext <<EOF
6347
 
#line 6347 "configure"
6348
 
#include "confdefs.h"
6349
 
 
6350
 
#if HAVE_DLFCN_H
6351
 
#include <dlfcn.h>
6352
 
#endif
6353
 
 
6354
 
#include <stdio.h>
6355
 
 
6356
 
#ifdef RTLD_GLOBAL
6357
 
#  define LT_DLGLOBAL           RTLD_GLOBAL
6358
 
#else
6359
 
#  ifdef DL_GLOBAL
6360
 
#    define LT_DLGLOBAL         DL_GLOBAL
6361
 
#  else
6362
 
#    define LT_DLGLOBAL         0
6363
 
#  endif
6364
 
#endif
6365
 
 
6366
 
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
6367
 
   find out it does not work in some platform. */
6368
 
#ifndef LT_DLLAZY_OR_NOW
6369
 
#  ifdef RTLD_LAZY
6370
 
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
6371
 
#  else
6372
 
#    ifdef DL_LAZY
6373
 
#      define LT_DLLAZY_OR_NOW          DL_LAZY
6374
 
#    else
6375
 
#      ifdef RTLD_NOW
6376
 
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
6377
 
#      else
6378
 
#        ifdef DL_NOW
6379
 
#          define LT_DLLAZY_OR_NOW      DL_NOW
6380
 
#        else
6381
 
#          define LT_DLLAZY_OR_NOW      0
6382
 
#        endif
6383
 
#      endif
6384
 
#    endif
6385
 
#  endif
6386
 
#endif
6387
 
 
6388
 
#ifdef __cplusplus
6389
 
extern "C" void exit (int);
6390
 
#endif
6391
 
 
6392
 
void fnord() { int i=42;}
6393
 
int main ()
6394
 
{
6395
 
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
6396
 
  int status = $lt_dlunknown;
6397
 
 
6398
 
  if (self)
6399
 
    {
6400
 
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
6401
 
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
6402
 
      /* dlclose (self); */
6403
 
    }
6404
 
 
6405
 
    exit (status);
6406
 
}
6407
 
EOF
6408
 
  if { (eval echo "$as_me:6408: \"$ac_link\"") >&5
6409
 
  (eval $ac_link) 2>&5
6410
 
  ac_status=$?
6411
 
  echo "$as_me:6411: \$? = $ac_status" >&5
6412
 
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
6413
 
    (./conftest; exit; ) 2>/dev/null
6414
 
    lt_status=$?
6415
 
    case x$lt_status in
6416
 
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
6417
 
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
6418
 
      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
6419
 
    esac
6420
 
  else :
6421
 
    # compilation failed
6422
 
    lt_cv_dlopen_self_static=no
6423
 
  fi
6424
 
fi
6425
 
rm -fr conftest*
6426
 
 
6427
 
fi
6428
 
echo "$as_me:6428: result: $lt_cv_dlopen_self_static" >&5
6429
 
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
6430
 
    fi
6431
 
 
6432
 
    CPPFLAGS="$save_CPPFLAGS"
6433
 
    LDFLAGS="$save_LDFLAGS"
6434
 
    LIBS="$save_LIBS"
6435
 
    ;;
6436
 
  esac
6437
 
 
6438
 
  case $lt_cv_dlopen_self in
6439
 
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
6440
 
  *) enable_dlopen_self=unknown ;;
6441
 
  esac
6442
 
 
6443
 
  case $lt_cv_dlopen_self_static in
6444
 
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
6445
 
  *) enable_dlopen_self_static=unknown ;;
6446
 
  esac
6447
 
fi
6448
 
 
6449
 
if test "$enable_shared" = yes && test "$GCC" = yes; then
6450
 
  case $archive_cmds in
6451
 
  *'~'*)
6452
 
    # FIXME: we may have to deal with multi-command sequences.
6453
 
    ;;
6454
 
  '$CC '*)
6455
 
    # Test whether the compiler implicitly links with -lc since on some
6456
 
    # systems, -lgcc has to come before -lc. If gcc already passes -lc
6457
 
    # to ld, don't add -lc before -lgcc.
6458
 
    echo "$as_me:6458: checking whether -lc should be explicitly linked in" >&5
6459
 
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
6460
 
    if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
6461
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6462
 
else
6463
 
  $rm conftest*
6464
 
    echo 'static int dummy;' > conftest.$ac_ext
6465
 
 
6466
 
    if { (eval echo "$as_me:6466: \"$ac_compile\"") >&5
6467
 
  (eval $ac_compile) 2>&5
6468
 
  ac_status=$?
6469
 
  echo "$as_me:6469: \$? = $ac_status" >&5
6470
 
  (exit $ac_status); }; then
6471
 
      soname=conftest
6472
 
      lib=conftest
6473
 
      libobjs=conftest.$ac_objext
6474
 
      deplibs=
6475
 
      wl=$lt_cv_prog_cc_wl
6476
 
      compiler_flags=-v
6477
 
      linker_flags=-v
6478
 
      verstring=
6479
 
      output_objdir=.
6480
 
      libname=conftest
6481
 
      save_allow_undefined_flag=$allow_undefined_flag
6482
 
      allow_undefined_flag=
6483
 
      if { (eval echo "$as_me:6483: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
6484
 
  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
6485
 
  ac_status=$?
6486
 
  echo "$as_me:6486: \$? = $ac_status" >&5
6487
 
  (exit $ac_status); }
6488
 
      then
6489
 
        lt_cv_archive_cmds_need_lc=no
6490
 
      else
6491
 
        lt_cv_archive_cmds_need_lc=yes
6492
 
      fi
6493
 
      allow_undefined_flag=$save_allow_undefined_flag
6494
 
    else
6495
 
      cat conftest.err 1>&5
6496
 
    fi
6497
 
fi
6498
 
 
6499
 
    echo "$as_me:6499: result: $lt_cv_archive_cmds_need_lc" >&5
6500
 
echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6
6501
 
    ;;
6502
 
  esac
6503
 
fi
6504
 
need_lc=${lt_cv_archive_cmds_need_lc-yes}
6505
 
 
6506
 
# The second clause should only fire when bootstrapping the
6507
 
# libtool distribution, otherwise you forgot to ship ltmain.sh
6508
 
# with your package, and you will get complaints that there are
6509
 
# no rules to generate ltmain.sh.
6510
 
if test -f "$ltmain"; then
6511
 
  :
6512
 
else
6513
 
  # If there is no Makefile yet, we rely on a make rule to execute
6514
 
  # `config.status --recheck' to rerun these tests and create the
6515
 
  # libtool script then.
6516
 
  test -f Makefile && make "$ltmain"
6517
 
fi
6518
 
 
6519
 
if test -f "$ltmain"; then
6520
 
  trap "$rm \"${ofile}T\"; exit 1" 1 2 15
6521
 
  $rm -f "${ofile}T"
6522
 
 
6523
 
  echo creating $ofile
6524
 
 
6525
 
  # Now quote all the things that may contain metacharacters while being
6526
 
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
6527
 
  # variables and quote the copies for generation of the libtool script.
6528
 
  for var in echo old_CC old_CFLAGS \
6529
 
    AR AR_FLAGS CC LD LN_S NM SHELL \
6530
 
    reload_flag reload_cmds wl \
6531
 
    pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
6532
 
    thread_safe_flag_spec whole_archive_flag_spec libname_spec \
6533
 
    library_names_spec soname_spec \
6534
 
    RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
6535
 
    old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
6536
 
    postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
6537
 
    old_striplib striplib file_magic_cmd export_symbols_cmds \
6538
 
    deplibs_check_method allow_undefined_flag no_undefined_flag \
6539
 
    finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
6540
 
    global_symbol_to_c_name_address \
6541
 
    hardcode_libdir_flag_spec hardcode_libdir_separator  \
6542
 
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
6543
 
    compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
6544
 
 
6545
 
    case $var in
6546
 
    reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
6547
 
    old_postinstall_cmds | old_postuninstall_cmds | \
6548
 
    export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
6549
 
    extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
6550
 
    postinstall_cmds | postuninstall_cmds | \
6551
 
    finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
6552
 
      # Double-quote double-evaled strings.
6553
 
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
6554
 
      ;;
6555
 
    *)
6556
 
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
6557
 
      ;;
6558
 
    esac
6559
 
  done
6560
 
 
6561
 
  cat <<__EOF__ > "${ofile}T"
6562
 
#! $SHELL
6563
 
 
6564
 
# `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
6565
 
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
6566
 
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
6567
 
#
6568
 
# Copyright (C) 1996-2000 Free Software Foundation, Inc.
6569
 
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
6570
 
#
6571
 
# This program is free software; you can redistribute it and/or modify
6572
 
# it under the terms of the GNU General Public License as published by
6573
 
# the Free Software Foundation; either version 2 of the License, or
6574
 
# (at your option) any later version.
6575
 
#
6576
 
# This program is distributed in the hope that it will be useful, but
6577
 
# WITHOUT ANY WARRANTY; without even the implied warranty of
6578
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
6579
 
# General Public License for more details.
6580
 
#
6581
 
# You should have received a copy of the GNU General Public License
6582
 
# along with this program; if not, write to the Free Software
6583
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
6584
 
#
6585
 
# As a special exception to the GNU General Public License, if you
6586
 
# distribute this file as part of a program that contains a
6587
 
# configuration script generated by Autoconf, you may include it under
6588
 
# the same distribution terms that you use for the rest of that program.
6589
 
 
6590
 
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
6591
 
Xsed="sed -e s/^X//"
6592
 
 
6593
 
# The HP-UX ksh and POSIX shell print the target directory to stdout
6594
 
# if CDPATH is set.
6595
 
if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
6596
 
 
6597
 
# ### BEGIN LIBTOOL CONFIG
6598
 
 
6599
 
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
6600
 
 
6601
 
# Shell to use when invoking shell scripts.
6602
 
SHELL=$lt_SHELL
6603
 
 
6604
 
# Whether or not to build shared libraries.
6605
 
build_libtool_libs=$enable_shared
6606
 
 
6607
 
# Whether or not to build static libraries.
6608
 
build_old_libs=$enable_static
6609
 
 
6610
 
# Whether or not to add -lc for building shared libraries.
6611
 
build_libtool_need_lc=$need_lc
6612
 
 
6613
 
# Whether or not to optimize for fast installation.
6614
 
fast_install=$enable_fast_install
6615
 
 
6616
 
# The host system.
6617
 
host_alias=$host_alias
6618
 
host=$host
6619
 
 
6620
 
# An echo program that does not interpret backslashes.
6621
 
echo=$lt_echo
6622
 
 
6623
 
# The archiver.
6624
 
AR=$lt_AR
6625
 
AR_FLAGS=$lt_AR_FLAGS
6626
 
 
6627
 
# The default C compiler.
6628
 
CC=$lt_CC
6629
 
 
6630
 
# Is the compiler the GNU C compiler?
6631
 
with_gcc=$GCC
6632
 
 
6633
 
# The linker used to build libraries.
6634
 
LD=$lt_LD
6635
 
 
6636
 
# Whether we need hard or soft links.
6637
 
LN_S=$lt_LN_S
6638
 
 
6639
 
# A BSD-compatible nm program.
6640
 
NM=$lt_NM
6641
 
 
6642
 
# A symbol stripping program
6643
 
STRIP=$STRIP
6644
 
 
6645
 
# Used to examine libraries when file_magic_cmd begins "file"
6646
 
MAGIC_CMD=$MAGIC_CMD
6647
 
 
6648
 
# Used on cygwin: DLL creation program.
6649
 
DLLTOOL="$DLLTOOL"
6650
 
 
6651
 
# Used on cygwin: object dumper.
6652
 
OBJDUMP="$OBJDUMP"
6653
 
 
6654
 
# Used on cygwin: assembler.
6655
 
AS="$AS"
6656
 
 
6657
 
# The name of the directory that contains temporary libtool files.
6658
 
objdir=$objdir
6659
 
 
6660
 
# How to create reloadable object files.
6661
 
reload_flag=$lt_reload_flag
6662
 
reload_cmds=$lt_reload_cmds
6663
 
 
6664
 
# How to pass a linker flag through the compiler.
6665
 
wl=$lt_wl
6666
 
 
6667
 
# Object file suffix (normally "o").
6668
 
objext="$ac_objext"
6669
 
 
6670
 
# Old archive suffix (normally "a").
6671
 
libext="$libext"
6672
 
 
6673
 
# Executable file suffix (normally "").
6674
 
exeext="$exeext"
6675
 
 
6676
 
# Additional compiler flags for building library objects.
6677
 
pic_flag=$lt_pic_flag
6678
 
pic_mode=$pic_mode
6679
 
 
6680
 
# Does compiler simultaneously support -c and -o options?
6681
 
compiler_c_o=$lt_compiler_c_o
6682
 
 
6683
 
# Can we write directly to a .lo ?
6684
 
compiler_o_lo=$lt_compiler_o_lo
6685
 
 
6686
 
# Must we lock files when doing compilation ?
6687
 
need_locks=$lt_need_locks
6688
 
 
6689
 
# Do we need the lib prefix for modules?
6690
 
need_lib_prefix=$need_lib_prefix
6691
 
 
6692
 
# Do we need a version for libraries?
6693
 
need_version=$need_version
6694
 
 
6695
 
# Whether dlopen is supported.
6696
 
dlopen_support=$enable_dlopen
6697
 
 
6698
 
# Whether dlopen of programs is supported.
6699
 
dlopen_self=$enable_dlopen_self
6700
 
 
6701
 
# Whether dlopen of statically linked programs is supported.
6702
 
dlopen_self_static=$enable_dlopen_self_static
6703
 
 
6704
 
# Compiler flag to prevent dynamic linking.
6705
 
link_static_flag=$lt_link_static_flag
6706
 
 
6707
 
# Compiler flag to turn off builtin functions.
6708
 
no_builtin_flag=$lt_no_builtin_flag
6709
 
 
6710
 
# Compiler flag to allow reflexive dlopens.
6711
 
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
6712
 
 
6713
 
# Compiler flag to generate shared objects directly from archives.
6714
 
whole_archive_flag_spec=$lt_whole_archive_flag_spec
6715
 
 
6716
 
# Compiler flag to generate thread-safe objects.
6717
 
thread_safe_flag_spec=$lt_thread_safe_flag_spec
6718
 
 
6719
 
# Library versioning type.
6720
 
version_type=$version_type
6721
 
 
6722
 
# Format of library name prefix.
6723
 
libname_spec=$lt_libname_spec
6724
 
 
6725
 
# List of archive names.  First name is the real one, the rest are links.
6726
 
# The last name is the one that the linker finds with -lNAME.
6727
 
library_names_spec=$lt_library_names_spec
6728
 
 
6729
 
# The coded name of the library, if different from the real name.
6730
 
soname_spec=$lt_soname_spec
6731
 
 
6732
 
# Commands used to build and install an old-style archive.
6733
 
RANLIB=$lt_RANLIB
6734
 
old_archive_cmds=$lt_old_archive_cmds
6735
 
old_postinstall_cmds=$lt_old_postinstall_cmds
6736
 
old_postuninstall_cmds=$lt_old_postuninstall_cmds
6737
 
 
6738
 
# Create an old-style archive from a shared archive.
6739
 
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
6740
 
 
6741
 
# Create a temporary old-style archive to link instead of a shared archive.
6742
 
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
6743
 
 
6744
 
# Commands used to build and install a shared archive.
6745
 
archive_cmds=$lt_archive_cmds
6746
 
archive_expsym_cmds=$lt_archive_expsym_cmds
6747
 
postinstall_cmds=$lt_postinstall_cmds
6748
 
postuninstall_cmds=$lt_postuninstall_cmds
6749
 
 
6750
 
# Commands to strip libraries.
6751
 
old_striplib=$lt_old_striplib
6752
 
striplib=$lt_striplib
6753
 
 
6754
 
# Method to check whether dependent libraries are shared objects.
6755
 
deplibs_check_method=$lt_deplibs_check_method
6756
 
 
6757
 
# Command to use when deplibs_check_method == file_magic.
6758
 
file_magic_cmd=$lt_file_magic_cmd
6759
 
 
6760
 
# Flag that allows shared libraries with undefined symbols to be built.
6761
 
allow_undefined_flag=$lt_allow_undefined_flag
6762
 
 
6763
 
# Flag that forces no undefined symbols.
6764
 
no_undefined_flag=$lt_no_undefined_flag
6765
 
 
6766
 
# Commands used to finish a libtool library installation in a directory.
6767
 
finish_cmds=$lt_finish_cmds
6768
 
 
6769
 
# Same as above, but a single script fragment to be evaled but not shown.
6770
 
finish_eval=$lt_finish_eval
6771
 
 
6772
 
# Take the output of nm and produce a listing of raw symbols and C names.
6773
 
global_symbol_pipe=$lt_global_symbol_pipe
6774
 
 
6775
 
# Transform the output of nm in a proper C declaration
6776
 
global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
6777
 
 
6778
 
# Transform the output of nm in a C name address pair
6779
 
global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address
6780
 
 
6781
 
# This is the shared library runtime path variable.
6782
 
runpath_var=$runpath_var
6783
 
 
6784
 
# This is the shared library path variable.
6785
 
shlibpath_var=$shlibpath_var
6786
 
 
6787
 
# Is shlibpath searched before the hard-coded library search path?
6788
 
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
6789
 
 
6790
 
# How to hardcode a shared library path into an executable.
6791
 
hardcode_action=$hardcode_action
6792
 
 
6793
 
# Whether we should hardcode library paths into libraries.
6794
 
hardcode_into_libs=$hardcode_into_libs
6795
 
 
6796
 
# Flag to hardcode \$libdir into a binary during linking.
6797
 
# This must work even if \$libdir does not exist.
6798
 
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
6799
 
 
6800
 
# Whether we need a single -rpath flag with a separated argument.
6801
 
hardcode_libdir_separator=$lt_hardcode_libdir_separator
6802
 
 
6803
 
# Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
6804
 
# resulting binary.
6805
 
hardcode_direct=$hardcode_direct
6806
 
 
6807
 
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
6808
 
# resulting binary.
6809
 
hardcode_minus_L=$hardcode_minus_L
6810
 
 
6811
 
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
6812
 
# the resulting binary.
6813
 
hardcode_shlibpath_var=$hardcode_shlibpath_var
6814
 
 
6815
 
# Variables whose values should be saved in libtool wrapper scripts and
6816
 
# restored at relink time.
6817
 
variables_saved_for_relink="$variables_saved_for_relink"
6818
 
 
6819
 
# Whether libtool must link a program against all its dependency libraries.
6820
 
link_all_deplibs=$link_all_deplibs
6821
 
 
6822
 
# Compile-time system search path for libraries
6823
 
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
6824
 
 
6825
 
# Run-time system search path for libraries
6826
 
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
6827
 
 
6828
 
# Fix the shell variable \$srcfile for the compiler.
6829
 
fix_srcfile_path="$fix_srcfile_path"
6830
 
 
6831
 
# Set to yes if exported symbols are required.
6832
 
always_export_symbols=$always_export_symbols
6833
 
 
6834
 
# The commands to list exported symbols.
6835
 
export_symbols_cmds=$lt_export_symbols_cmds
6836
 
 
6837
 
# The commands to extract the exported symbol list from a shared archive.
6838
 
extract_expsyms_cmds=$lt_extract_expsyms_cmds
6839
 
 
6840
 
# Symbols that should not be listed in the preloaded symbols.
6841
 
exclude_expsyms=$lt_exclude_expsyms
6842
 
 
6843
 
# Symbols that must always be exported.
6844
 
include_expsyms=$lt_include_expsyms
6845
 
 
6846
 
# ### END LIBTOOL CONFIG
6847
 
 
6848
 
__EOF__
6849
 
 
6850
 
  case $host_os in
6851
 
  aix3*)
6852
 
    cat <<\EOF >> "${ofile}T"
6853
 
 
6854
 
# AIX sometimes has problems with the GCC collect2 program.  For some
6855
 
# reason, if we set the COLLECT_NAMES environment variable, the problems
6856
 
# vanish in a puff of smoke.
6857
 
if test "X${COLLECT_NAMES+set}" != Xset; then
6858
 
  COLLECT_NAMES=
6859
 
  export COLLECT_NAMES
6860
 
fi
6861
 
EOF
6862
 
    ;;
6863
 
  esac
6864
 
 
6865
 
  case $host_os in
6866
 
  cygwin* | mingw* | pw32* | os2*)
6867
 
    cat <<'EOF' >> "${ofile}T"
6868
 
      # This is a source program that is used to create dlls on Windows
6869
 
      # Don't remove nor modify the starting and closing comments
6870
 
# /* ltdll.c starts here */
6871
 
# #define WIN32_LEAN_AND_MEAN
6872
 
# #include <windows.h>
6873
 
# #undef WIN32_LEAN_AND_MEAN
6874
 
# #include <stdio.h>
6875
 
#
6876
 
# #ifndef __CYGWIN__
6877
 
# #  ifdef __CYGWIN32__
6878
 
# #    define __CYGWIN__ __CYGWIN32__
6879
 
# #  endif
6880
 
# #endif
6881
 
#
6882
 
# #ifdef __cplusplus
6883
 
# extern "C" {
6884
 
# #endif
6885
 
# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
6886
 
# #ifdef __cplusplus
6887
 
# }
6888
 
# #endif
6889
 
#
6890
 
# #ifdef __CYGWIN__
6891
 
# #include <cygwin/cygwin_dll.h>
6892
 
# DECLARE_CYGWIN_DLL( DllMain );
6893
 
# #endif
6894
 
# HINSTANCE __hDllInstance_base;
6895
 
#
6896
 
# BOOL APIENTRY
6897
 
# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
6898
 
# {
6899
 
#   __hDllInstance_base = hInst;
6900
 
#   return TRUE;
6901
 
# }
6902
 
# /* ltdll.c ends here */
6903
 
        # This is a source program that is used to create import libraries
6904
 
        # on Windows for dlls which lack them. Don't remove nor modify the
6905
 
        # starting and closing comments
6906
 
# /* impgen.c starts here */
6907
 
# /*   Copyright (C) 1999-2000 Free Software Foundation, Inc.
6908
 
#
6909
 
#  This file is part of GNU libtool.
6910
 
#
6911
 
#  This program is free software; you can redistribute it and/or modify
6912
 
#  it under the terms of the GNU General Public License as published by
6913
 
#  the Free Software Foundation; either version 2 of the License, or
6914
 
#  (at your option) any later version.
6915
 
#
6916
 
#  This program is distributed in the hope that it will be useful,
6917
 
#  but WITHOUT ANY WARRANTY; without even the implied warranty of
6918
 
#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
6919
 
#  GNU General Public License for more details.
6920
 
#
6921
 
#  You should have received a copy of the GNU General Public License
6922
 
#  along with this program; if not, write to the Free Software
6923
 
#  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
6924
 
#  */
6925
 
#
6926
 
# #include <stdio.h>            /* for printf() */
6927
 
# #include <unistd.h>           /* for open(), lseek(), read() */
6928
 
# #include <fcntl.h>            /* for O_RDONLY, O_BINARY */
6929
 
# #include <string.h>           /* for strdup() */
6930
 
#
6931
 
# /* O_BINARY isn't required (or even defined sometimes) under Unix */
6932
 
# #ifndef O_BINARY
6933
 
# #define O_BINARY 0
6934
 
# #endif
6935
 
#
6936
 
# static unsigned int
6937
 
# pe_get16 (fd, offset)
6938
 
#      int fd;
6939
 
#      int offset;
6940
 
# {
6941
 
#   unsigned char b[2];
6942
 
#   lseek (fd, offset, SEEK_SET);
6943
 
#   read (fd, b, 2);
6944
 
#   return b[0] + (b[1]<<8);
6945
 
# }
6946
 
#
6947
 
# static unsigned int
6948
 
# pe_get32 (fd, offset)
6949
 
#     int fd;
6950
 
#     int offset;
6951
 
# {
6952
 
#   unsigned char b[4];
6953
 
#   lseek (fd, offset, SEEK_SET);
6954
 
#   read (fd, b, 4);
6955
 
#   return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
6956
 
# }
6957
 
#
6958
 
# static unsigned int
6959
 
# pe_as32 (ptr)
6960
 
#      void *ptr;
6961
 
# {
6962
 
#   unsigned char *b = ptr;
6963
 
#   return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
6964
 
# }
6965
 
#
6966
 
# int
6967
 
# main (argc, argv)
6968
 
#     int argc;
6969
 
#     char *argv[];
6970
 
# {
6971
 
#     int dll;
6972
 
#     unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
6973
 
#     unsigned long export_rva, export_size, nsections, secptr, expptr;
6974
 
#     unsigned long name_rvas, nexp;
6975
 
#     unsigned char *expdata, *erva;
6976
 
#     char *filename, *dll_name;
6977
 
#
6978
 
#     filename = argv[1];
6979
 
#
6980
 
#     dll = open(filename, O_RDONLY|O_BINARY);
6981
 
#     if (dll < 1)
6982
 
#       return 1;
6983
 
#
6984
 
#     dll_name = filename;
6985
 
#
6986
 
#     for (i=0; filename[i]; i++)
6987
 
#       if (filename[i] == '/' || filename[i] == '\\'  || filename[i] == ':')
6988
 
#           dll_name = filename + i +1;
6989
 
#
6990
 
#     pe_header_offset = pe_get32 (dll, 0x3c);
6991
 
#     opthdr_ofs = pe_header_offset + 4 + 20;
6992
 
#     num_entries = pe_get32 (dll, opthdr_ofs + 92);
6993
 
#
6994
 
#     if (num_entries < 1) /* no exports */
6995
 
#       return 1;
6996
 
#
6997
 
#     export_rva = pe_get32 (dll, opthdr_ofs + 96);
6998
 
#     export_size = pe_get32 (dll, opthdr_ofs + 100);
6999
 
#     nsections = pe_get16 (dll, pe_header_offset + 4 +2);
7000
 
#     secptr = (pe_header_offset + 4 + 20 +
7001
 
#             pe_get16 (dll, pe_header_offset + 4 + 16));
7002
 
#
7003
 
#     expptr = 0;
7004
 
#     for (i = 0; i < nsections; i++)
7005
 
#     {
7006
 
#       char sname[8];
7007
 
#       unsigned long secptr1 = secptr + 40 * i;
7008
 
#       unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
7009
 
#       unsigned long vsize = pe_get32 (dll, secptr1 + 16);
7010
 
#       unsigned long fptr = pe_get32 (dll, secptr1 + 20);
7011
 
#       lseek(dll, secptr1, SEEK_SET);
7012
 
#       read(dll, sname, 8);
7013
 
#       if (vaddr <= export_rva && vaddr+vsize > export_rva)
7014
 
#       {
7015
 
#           expptr = fptr + (export_rva - vaddr);
7016
 
#           if (export_rva + export_size > vaddr + vsize)
7017
 
#               export_size = vsize - (export_rva - vaddr);
7018
 
#           break;
7019
 
#       }
7020
 
#     }
7021
 
#
7022
 
#     expdata = (unsigned char*)malloc(export_size);
7023
 
#     lseek (dll, expptr, SEEK_SET);
7024
 
#     read (dll, expdata, export_size);
7025
 
#     erva = expdata - export_rva;
7026
 
#
7027
 
#     nexp = pe_as32 (expdata+24);
7028
 
#     name_rvas = pe_as32 (expdata+32);
7029
 
#
7030
 
#     printf ("EXPORTS\n");
7031
 
#     for (i = 0; i<nexp; i++)
7032
 
#     {
7033
 
#       unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
7034
 
#       printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
7035
 
#     }
7036
 
#
7037
 
#     return 0;
7038
 
# }
7039
 
# /* impgen.c ends here */
7040
 
 
7041
 
EOF
7042
 
    ;;
7043
 
  esac
7044
 
 
7045
 
  # We use sed instead of cat because bash on DJGPP gets confused if
7046
 
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
7047
 
  # text mode, it properly converts lines to CR/LF.  This bash problem
7048
 
  # is reportedly fixed, but why not run on old versions too?
7049
 
  sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
7050
 
 
7051
 
  mv -f "${ofile}T" "$ofile" || \
7052
 
    (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
7053
 
  chmod +x "$ofile"
7054
 
fi
7055
 
 
7056
 
# This can be used to rebuild libtool when needed
7057
 
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
7058
 
 
7059
 
# Always use our own libtool.
7060
 
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7061
 
 
7062
 
# Prevent multiple expansion
7063
 
 
7064
 
for ac_prog in mawk gawk nawk awk
7065
 
do
7066
 
  # Extract the first word of "$ac_prog", so it can be a program name with args.
7067
 
set dummy $ac_prog; ac_word=$2
7068
 
echo "$as_me:7068: checking for $ac_word" >&5
7069
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7070
 
if test "${ac_cv_prog_AWK+set}" = set; then
7071
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
7072
 
else
7073
 
  if test -n "$AWK"; then
7074
 
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
7075
 
else
7076
 
  ac_save_IFS=$IFS; IFS=$ac_path_separator
7077
 
ac_dummy="$PATH"
7078
 
for ac_dir in $ac_dummy; do
7079
 
  IFS=$ac_save_IFS
7080
 
  test -z "$ac_dir" && ac_dir=.
7081
 
  $as_executable_p "$ac_dir/$ac_word" || continue
7082
 
ac_cv_prog_AWK="$ac_prog"
7083
 
echo "$as_me:7083: found $ac_dir/$ac_word" >&5
7084
 
break
7085
 
done
7086
 
 
7087
 
fi
7088
 
fi
7089
 
AWK=$ac_cv_prog_AWK
7090
 
if test -n "$AWK"; then
7091
 
  echo "$as_me:7091: result: $AWK" >&5
7092
 
echo "${ECHO_T}$AWK" >&6
7093
 
else
7094
 
  echo "$as_me:7094: result: no" >&5
7095
 
echo "${ECHO_T}no" >&6
7096
 
fi
7097
 
 
7098
 
  test -n "$AWK" && break
7099
 
done
7100
 
 
7101
 
# Extract the first word of "pkg-config", so it can be a program name with args.
7102
 
set dummy pkg-config; ac_word=$2
7103
 
echo "$as_me:7103: checking for $ac_word" >&5
7104
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7105
 
if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
7106
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
7107
 
else
7108
 
  case $PKG_CONFIG in
7109
 
  [\\/]* | ?:[\\/]*)
7110
 
  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7111
 
  ;;
7112
 
  *)
7113
 
  ac_save_IFS=$IFS; IFS=$ac_path_separator
7114
 
ac_dummy="$PATH"
7115
 
for ac_dir in $ac_dummy; do
7116
 
  IFS=$ac_save_IFS
7117
 
  test -z "$ac_dir" && ac_dir=.
7118
 
  if $as_executable_p "$ac_dir/$ac_word"; then
7119
 
   ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
7120
 
   echo "$as_me:7120: found $ac_dir/$ac_word" >&5
7121
 
   break
7122
 
fi
7123
 
done
7124
 
 
7125
 
  ;;
7126
 
esac
7127
 
fi
7128
 
PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7129
 
 
7130
 
if test -n "$PKG_CONFIG"; then
7131
 
  echo "$as_me:7131: result: $PKG_CONFIG" >&5
7132
 
echo "${ECHO_T}$PKG_CONFIG" >&6
7133
 
else
7134
 
  echo "$as_me:7134: result: no" >&5
7135
 
echo "${ECHO_T}no" >&6
7136
 
fi
7137
 
 
7138
 
if ! test -x "$PKG_CONFIG" ; then
7139
 
   { { echo "$as_me:7139: error:
7140
 
*** You need the latest pkg-config.
7141
 
*** Get the latest version of pkg-config from
7142
 
*** <http://www.freedesktop.org/software/pkgconfig/>." >&5
7143
 
echo "$as_me: error:
7144
 
*** You need the latest pkg-config.
7145
 
*** Get the latest version of pkg-config from
7146
 
*** <http://www.freedesktop.org/software/pkgconfig/>." >&2;}
7147
 
   { (exit 1); exit 1; }; }
7148
 
fi
7149
 
 
7150
 
ac_config_files="$ac_config_files Makefile gnome-common.spec macros/Makefile macros2/Makefile bin/Makefile doc/Makefile"
 
1639
fi
 
1640
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
 
1641
 
 
1642
# We need awk for the "check" target.  The system "awk" is bad on
 
1643
# some platforms.
 
1644
 
 
1645
 
 
1646
 
 
1647
echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
 
1648
echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
 
1649
    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
 
1650
if test "${enable_maintainer_mode+set}" = set; then
 
1651
  enableval="$enable_maintainer_mode"
 
1652
  USE_MAINTAINER_MODE=$enableval
 
1653
else
 
1654
  USE_MAINTAINER_MODE=no
 
1655
fi;
 
1656
  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
 
1657
echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
 
1658
 
 
1659
 
 
1660
if test $USE_MAINTAINER_MODE = yes; then
 
1661
  MAINTAINER_MODE_TRUE=
 
1662
  MAINTAINER_MODE_FALSE='#'
 
1663
else
 
1664
  MAINTAINER_MODE_TRUE='#'
 
1665
  MAINTAINER_MODE_FALSE=
 
1666
fi
 
1667
 
 
1668
  MAINT=$MAINTAINER_MODE_TRUE
 
1669
 
 
1670
 
 
1671
 
 
1672
                                                  ac_config_files="$ac_config_files Makefile gnome-common.spec macros2/Makefile doc-build/Makefile doc-build/gnome-doc-common"
 
1673
 
 
1674
 
7151
1675
cat >confcache <<\_ACEOF
7152
1676
# This file is a shell script that caches the results of configure
7153
1677
# tests run on this system so they can be shared between configure
7158
1682
# config.status only pays attention to the cache file if you give it
7159
1683
# the --recheck option to rerun configure.
7160
1684
#
7161
 
# `ac_cv_env_foo' variables (set or unset) will be overriden when
 
1685
# `ac_cv_env_foo' variables (set or unset) will be overridden when
7162
1686
# loading this file, other *unset* `ac_cv_foo' will be assigned the
7163
1687
# following values.
7164
1688
 
7176
1700
      # `set' does not quote correctly, so add quotes (double-quote
7177
1701
      # substitution turns \\\\ into \\, and sed turns \\ into \).
7178
1702
      sed -n \
7179
 
        "s/'/'\\\\''/g;
7180
 
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
 
1703
        "s/'/'\\\\''/g;
 
1704
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7181
1705
      ;;
7182
1706
    *)
7183
1707
      # `set' quotes correctly as required by POSIX, so do not add quotes.
7184
1708
      sed -n \
7185
 
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
 
1709
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
7186
1710
      ;;
7187
1711
    esac;
7188
1712
} |
7193
1717
     t end
7194
1718
     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7195
1719
     : end' >>confcache
7196
 
if cmp -s $cache_file confcache; then :; else
 
1720
if diff $cache_file confcache >/dev/null 2>&1; then :; else
7197
1721
  if test -w $cache_file; then
7198
1722
    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
7199
1723
    cat confcache >$cache_file
7212
1736
# trailing colons and then remove the whole line if VPATH becomes empty
7213
1737
# (actually we leave an empty line to preserve line numbers).
7214
1738
if test "x$srcdir" = x.; then
7215
 
  ac_vpsub='/^[         ]*VPATH[        ]*=/{
 
1739
  ac_vpsub='/^[  ]*VPATH[        ]*=/{
7216
1740
s/:*\$(srcdir):*/:/;
7217
1741
s/:*\${srcdir}:*/:/;
7218
1742
s/:*@srcdir@:*/:/;
7219
 
s/^\([^=]*=[    ]*\):*/\1/;
 
1743
s/^\([^=]*=[     ]*\):*/\1/;
7220
1744
s/:*$//;
7221
 
s/^[^=]*=[      ]*$//;
 
1745
s/^[^=]*=[       ]*$//;
7222
1746
}'
7223
1747
fi
7224
1748
 
7229
1753
# If the first sed substitution is executed (which looks for macros that
7230
1754
# take arguments), then we branch to the quote section.  Otherwise,
7231
1755
# look for a macro that doesn't take arguments.
7232
 
cat >confdef2opt.sed <<\EOF
 
1756
cat >confdef2opt.sed <<\_ACEOF
7233
1757
t clear
7234
1758
: clear
7235
 
s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\),-D\1=\2,g
 
1759
s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\),-D\1=\2,g
7236
1760
t quote
7237
 
s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\),-D\1=\2,g
 
1761
s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\),-D\1=\2,g
7238
1762
t quote
7239
1763
d
7240
1764
: quote
7241
 
s,[     `~#$^&*(){}\\|;'"<>?],\\&,g
 
1765
s,[      `~#$^&*(){}\\|;'"<>?],\\&,g
7242
1766
s,\[,\\&,g
7243
1767
s,\],\\&,g
7244
1768
s,\$,$$,g
7245
1769
p
7246
 
EOF
 
1770
_ACEOF
7247
1771
# We use echo to avoid assuming a particular line-breaking character.
7248
1772
# The extra dot is to prevent the shell from consuming trailing
7249
1773
# line-breaks from the sub-command output.  A line-break within
7254
1778
DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
7255
1779
rm -f confdef2opt.sed
7256
1780
 
 
1781
 
 
1782
ac_libobjs=
 
1783
ac_ltlibobjs=
 
1784
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
 
1785
  # 1. Remove the extension, and $U if already installed.
 
1786
  ac_i=`echo "$ac_i" |
 
1787
         sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
 
1788
  # 2. Add them.
 
1789
  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
 
1790
  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
 
1791
done
 
1792
LIBOBJS=$ac_libobjs
 
1793
 
 
1794
LTLIBOBJS=$ac_ltlibobjs
 
1795
 
 
1796
 
 
1797
if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
 
1798
  { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
 
1799
Usually this means the macro was only invoked conditionally." >&5
 
1800
echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
 
1801
Usually this means the macro was only invoked conditionally." >&2;}
 
1802
   { (exit 1); exit 1; }; }
 
1803
fi
 
1804
 
7257
1805
: ${CONFIG_STATUS=./config.status}
7258
1806
ac_clean_files_save=$ac_clean_files
7259
1807
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
7260
 
{ echo "$as_me:7260: creating $CONFIG_STATUS" >&5
 
1808
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
7261
1809
echo "$as_me: creating $CONFIG_STATUS" >&6;}
7262
1810
cat >$CONFIG_STATUS <<_ACEOF
7263
1811
#! $SHELL
7264
 
# Generated automatically by configure.
 
1812
# Generated by $as_me.
7265
1813
# Run this file to recreate the current configuration.
7266
1814
# Compiler output produced by configure, useful for debugging
7267
1815
# configure, is in config.log if it exists.
7268
1816
 
7269
1817
debug=false
 
1818
ac_cs_recheck=false
 
1819
ac_cs_silent=false
7270
1820
SHELL=\${CONFIG_SHELL-$SHELL}
7271
 
ac_cs_invocation="\$0 \$@"
7272
 
 
7273
1821
_ACEOF
7274
1822
 
7275
1823
cat >>$CONFIG_STATUS <<\_ACEOF
 
1824
## --------------------- ##
 
1825
## M4sh Initialization.  ##
 
1826
## --------------------- ##
 
1827
 
7276
1828
# Be Bourne compatible
7277
1829
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
7278
1830
  emulate sh
7279
1831
  NULLCMD=:
 
1832
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
 
1833
  # is contrary to our usage.  Disable this feature.
 
1834
  alias -g '${1+"$@"}'='"$@"'
7280
1835
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
7281
1836
  set -o posix
7282
1837
fi
 
1838
DUALCASE=1; export DUALCASE # for MKS sh
 
1839
 
 
1840
# Support unset when possible.
 
1841
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
 
1842
  as_unset=unset
 
1843
else
 
1844
  as_unset=false
 
1845
fi
 
1846
 
 
1847
 
 
1848
# Work around bugs in pre-3.0 UWIN ksh.
 
1849
$as_unset ENV MAIL MAILPATH
 
1850
PS1='$ '
 
1851
PS2='> '
 
1852
PS4='+ '
 
1853
 
 
1854
# NLS nuisances.
 
1855
for as_var in \
 
1856
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
 
1857
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
 
1858
  LC_TELEPHONE LC_TIME
 
1859
do
 
1860
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
 
1861
    eval $as_var=C; export $as_var
 
1862
  else
 
1863
    $as_unset $as_var
 
1864
  fi
 
1865
done
 
1866
 
 
1867
# Required to use basename.
 
1868
if expr a : '\(a\)' >/dev/null 2>&1; then
 
1869
  as_expr=expr
 
1870
else
 
1871
  as_expr=false
 
1872
fi
 
1873
 
 
1874
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
 
1875
  as_basename=basename
 
1876
else
 
1877
  as_basename=false
 
1878
fi
 
1879
 
7283
1880
 
7284
1881
# Name of the executable.
7285
 
as_me=`echo "$0" |sed 's,.*[\\/],,'`
 
1882
as_me=`$as_basename "$0" ||
 
1883
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 
1884
         X"$0" : 'X\(//\)$' \| \
 
1885
         X"$0" : 'X\(/\)$' \| \
 
1886
         .     : '\(.\)' 2>/dev/null ||
 
1887
echo X/"$0" |
 
1888
    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
 
1889
          /^X\/\(\/\/\)$/{ s//\1/; q; }
 
1890
          /^X\/\(\/\).*/{ s//\1/; q; }
 
1891
          s/.*/./; q'`
 
1892
 
 
1893
 
 
1894
# PATH needs CR, and LINENO needs CR and PATH.
 
1895
# Avoid depending upon Character Ranges.
 
1896
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
1897
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
1898
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
1899
as_cr_digits='0123456789'
 
1900
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
1901
 
 
1902
# The user is always right.
 
1903
if test "${PATH_SEPARATOR+set}" != set; then
 
1904
  echo "#! /bin/sh" >conf$$.sh
 
1905
  echo  "exit 0"   >>conf$$.sh
 
1906
  chmod +x conf$$.sh
 
1907
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
 
1908
    PATH_SEPARATOR=';'
 
1909
  else
 
1910
    PATH_SEPARATOR=:
 
1911
  fi
 
1912
  rm -f conf$$.sh
 
1913
fi
 
1914
 
 
1915
 
 
1916
  as_lineno_1=$LINENO
 
1917
  as_lineno_2=$LINENO
 
1918
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
 
1919
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
1920
  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
 
1921
  # Find who we are.  Look in the path if we contain no path at all
 
1922
  # relative or not.
 
1923
  case $0 in
 
1924
    *[\\/]* ) as_myself=$0 ;;
 
1925
    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1926
for as_dir in $PATH
 
1927
do
 
1928
  IFS=$as_save_IFS
 
1929
  test -z "$as_dir" && as_dir=.
 
1930
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
1931
done
 
1932
 
 
1933
       ;;
 
1934
  esac
 
1935
  # We did not find ourselves, most probably we were run as `sh COMMAND'
 
1936
  # in which case we are not to be found in the path.
 
1937
  if test "x$as_myself" = x; then
 
1938
    as_myself=$0
 
1939
  fi
 
1940
  if test ! -f "$as_myself"; then
 
1941
    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
 
1942
echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
 
1943
   { (exit 1); exit 1; }; }
 
1944
  fi
 
1945
  case $CONFIG_SHELL in
 
1946
  '')
 
1947
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1948
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
 
1949
do
 
1950
  IFS=$as_save_IFS
 
1951
  test -z "$as_dir" && as_dir=.
 
1952
  for as_base in sh bash ksh sh5; do
 
1953
         case $as_dir in
 
1954
         /*)
 
1955
           if ("$as_dir/$as_base" -c '
 
1956
  as_lineno_1=$LINENO
 
1957
  as_lineno_2=$LINENO
 
1958
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
 
1959
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
1960
  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
 
1961
             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
 
1962
             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
 
1963
             CONFIG_SHELL=$as_dir/$as_base
 
1964
             export CONFIG_SHELL
 
1965
             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
 
1966
           fi;;
 
1967
         esac
 
1968
       done
 
1969
done
 
1970
;;
 
1971
  esac
 
1972
 
 
1973
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
 
1974
  # uniformly replaced by the line number.  The first 'sed' inserts a
 
1975
  # line-number line before each line; the second 'sed' does the real
 
1976
  # work.  The second script uses 'N' to pair each line-number line
 
1977
  # with the numbered line, and appends trailing '-' during
 
1978
  # substitution so that $LINENO is not a special case at line end.
 
1979
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
 
1980
  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
 
1981
  sed '=' <$as_myself |
 
1982
    sed '
 
1983
      N
 
1984
      s,$,-,
 
1985
      : loop
 
1986
      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
 
1987
      t loop
 
1988
      s,-$,,
 
1989
      s,^['$as_cr_digits']*\n,,
 
1990
    ' >$as_me.lineno &&
 
1991
  chmod +x $as_me.lineno ||
 
1992
    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
 
1993
echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
 
1994
   { (exit 1); exit 1; }; }
 
1995
 
 
1996
  # Don't try to exec as it changes $[0], causing all sort of problems
 
1997
  # (the dirname of $[0] is not the place where we might find the
 
1998
  # original and so on.  Autoconf is especially sensible to this).
 
1999
  . ./$as_me.lineno
 
2000
  # Exit status is that of the last command.
 
2001
  exit
 
2002
}
 
2003
 
 
2004
 
 
2005
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
 
2006
  *c*,-n*) ECHO_N= ECHO_C='
 
2007
' ECHO_T='      ' ;;
 
2008
  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
 
2009
  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
 
2010
esac
7286
2011
 
7287
2012
if expr a : '\(a\)' >/dev/null 2>&1; then
7288
2013
  as_expr=expr
7308
2033
fi
7309
2034
rm -f conf$$ conf$$.exe conf$$.file
7310
2035
 
 
2036
if mkdir -p . 2>/dev/null; then
 
2037
  as_mkdir_p=:
 
2038
else
 
2039
  test -d ./-p && rmdir ./-p
 
2040
  as_mkdir_p=false
 
2041
fi
 
2042
 
7311
2043
as_executable_p="test -f"
7312
2044
 
7313
 
# Support unset when possible.
7314
 
if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
7315
 
  as_unset=unset
7316
 
else
7317
 
  as_unset=false
7318
 
fi
7319
 
 
7320
 
# NLS nuisances.
7321
 
$as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
7322
 
$as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
7323
 
$as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
7324
 
$as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
7325
 
$as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
7326
 
$as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
7327
 
$as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
7328
 
$as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
 
2045
# Sed expression to map a string onto a valid CPP name.
 
2046
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
 
2047
 
 
2048
# Sed expression to map a string onto a valid variable name.
 
2049
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
 
2050
 
7329
2051
 
7330
2052
# IFS
7331
2053
# We need space, tab and new line, in precisely that order.
7334
2056
IFS="   $as_nl"
7335
2057
 
7336
2058
# CDPATH.
7337
 
$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
 
2059
$as_unset CDPATH
7338
2060
 
7339
2061
exec 6>&1
7340
2062
 
 
2063
# Open the log real soon, to keep \$[0] and so on meaningful, and to
 
2064
# report actual input values of CONFIG_FILES etc. instead of their
 
2065
# values after options handling.  Logging --version etc. is OK.
 
2066
exec 5>>config.log
 
2067
{
 
2068
  echo
 
2069
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
 
2070
## Running $as_me. ##
 
2071
_ASBOX
 
2072
} >&5
 
2073
cat >&5 <<_CSEOF
 
2074
 
 
2075
This file was extended by gnome-common $as_me 2.8.0, which was
 
2076
generated by GNU Autoconf 2.59.  Invocation command line was
 
2077
 
 
2078
  CONFIG_FILES    = $CONFIG_FILES
 
2079
  CONFIG_HEADERS  = $CONFIG_HEADERS
 
2080
  CONFIG_LINKS    = $CONFIG_LINKS
 
2081
  CONFIG_COMMANDS = $CONFIG_COMMANDS
 
2082
  $ $0 $@
 
2083
 
 
2084
_CSEOF
 
2085
echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
 
2086
echo >&5
7341
2087
_ACEOF
7342
2088
 
7343
2089
# Files that config.status was made for.
7357
2103
  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
7358
2104
fi
7359
2105
 
7360
 
cat >>$CONFIG_STATUS <<\EOF
 
2106
cat >>$CONFIG_STATUS <<\_ACEOF
7361
2107
 
7362
2108
ac_cs_usage="\
7363
2109
\`$as_me' instantiates files from templates according to the
7367
2113
 
7368
2114
  -h, --help       print this help, then exit
7369
2115
  -V, --version    print version number, then exit
 
2116
  -q, --quiet      do not print progress messages
7370
2117
  -d, --debug      don't remove temporary files
7371
2118
      --recheck    update $as_me by reconfiguring in the same conditions
7372
2119
  --file=FILE[:TEMPLATE]
7373
 
                   instantiate the configuration file FILE
 
2120
                   instantiate the configuration file FILE
7374
2121
 
7375
2122
Configuration files:
7376
2123
$config_files
7377
2124
 
7378
2125
Report bugs to <bug-autoconf@gnu.org>."
7379
 
EOF
 
2126
_ACEOF
7380
2127
 
7381
 
cat >>$CONFIG_STATUS <<EOF
 
2128
cat >>$CONFIG_STATUS <<_ACEOF
7382
2129
ac_cs_version="\\
7383
 
config.status
7384
 
configured by $0, generated by GNU Autoconf 2.52,
 
2130
gnome-common config.status 2.8.0
 
2131
configured by $0, generated by GNU Autoconf 2.59,
7385
2132
  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
7386
2133
 
7387
 
Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
7388
 
Free Software Foundation, Inc.
 
2134
Copyright (C) 2003 Free Software Foundation, Inc.
7389
2135
This config.status script is free software; the Free Software Foundation
7390
2136
gives unlimited permission to copy, distribute and modify it."
7391
2137
srcdir=$srcdir
7392
2138
INSTALL="$INSTALL"
7393
 
EOF
 
2139
_ACEOF
7394
2140
 
7395
 
cat >>$CONFIG_STATUS <<\EOF
 
2141
cat >>$CONFIG_STATUS <<\_ACEOF
7396
2142
# If no file are specified by the user, then we need to provide default
7397
2143
# value.  By we need to know if files were specified by the user.
7398
2144
ac_need_defaults=:
7402
2148
  --*=*)
7403
2149
    ac_option=`expr "x$1" : 'x\([^=]*\)='`
7404
2150
    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
7405
 
    shift
7406
 
    set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
7407
 
    shift
7408
 
    ;;
7409
 
  -*);;
 
2151
    ac_shift=:
 
2152
    ;;
 
2153
  -*)
 
2154
    ac_option=$1
 
2155
    ac_optarg=$2
 
2156
    ac_shift=shift
 
2157
    ;;
7410
2158
  *) # This is not an option, so the user has probably given explicit
7411
2159
     # arguments.
 
2160
     ac_option=$1
7412
2161
     ac_need_defaults=false;;
7413
2162
  esac
7414
2163
 
7415
 
  case $1 in
 
2164
  case $ac_option in
7416
2165
  # Handling of the options.
7417
 
EOF
7418
 
cat >>$CONFIG_STATUS <<EOF
 
2166
_ACEOF
 
2167
cat >>$CONFIG_STATUS <<\_ACEOF
7419
2168
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7420
 
    echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
7421
 
    exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
7422
 
EOF
7423
 
cat >>$CONFIG_STATUS <<\EOF
 
2169
    ac_cs_recheck=: ;;
7424
2170
  --version | --vers* | -V )
7425
2171
    echo "$ac_cs_version"; exit 0 ;;
7426
2172
  --he | --h)
7427
2173
    # Conflict between --help and --header
7428
 
    { { echo "$as_me:7428: error: ambiguous option: $1
 
2174
    { { echo "$as_me:$LINENO: error: ambiguous option: $1
7429
2175
Try \`$0 --help' for more information." >&5
7430
2176
echo "$as_me: error: ambiguous option: $1
7431
2177
Try \`$0 --help' for more information." >&2;}
7435
2181
  --debug | --d* | -d )
7436
2182
    debug=: ;;
7437
2183
  --file | --fil | --fi | --f )
7438
 
    shift
7439
 
    CONFIG_FILES="$CONFIG_FILES $1"
 
2184
    $ac_shift
 
2185
    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
7440
2186
    ac_need_defaults=false;;
7441
2187
  --header | --heade | --head | --hea )
7442
 
    shift
7443
 
    CONFIG_HEADERS="$CONFIG_HEADERS $1"
 
2188
    $ac_shift
 
2189
    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
7444
2190
    ac_need_defaults=false;;
 
2191
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
2192
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
 
2193
    ac_cs_silent=: ;;
7445
2194
 
7446
2195
  # This is an error.
7447
 
  -*) { { echo "$as_me:7447: error: unrecognized option: $1
 
2196
  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
7448
2197
Try \`$0 --help' for more information." >&5
7449
2198
echo "$as_me: error: unrecognized option: $1
7450
2199
Try \`$0 --help' for more information." >&2;}
7456
2205
  shift
7457
2206
done
7458
2207
 
7459
 
exec 5>>config.log
7460
 
cat >&5 << _ACEOF
7461
 
 
7462
 
## ----------------------- ##
7463
 
## Running config.status.  ##
7464
 
## ----------------------- ##
7465
 
 
7466
 
This file was extended by $as_me 2.52, executed with
7467
 
  CONFIG_FILES    = $CONFIG_FILES
7468
 
  CONFIG_HEADERS  = $CONFIG_HEADERS
7469
 
  CONFIG_LINKS    = $CONFIG_LINKS
7470
 
  CONFIG_COMMANDS = $CONFIG_COMMANDS
7471
 
  > $ac_cs_invocation
7472
 
on `(hostname || uname -n) 2>/dev/null | sed 1q`
7473
 
 
7474
 
_ACEOF
7475
 
EOF
7476
 
 
7477
 
cat >>$CONFIG_STATUS <<\EOF
 
2208
ac_configure_extra_args=
 
2209
 
 
2210
if $ac_cs_silent; then
 
2211
  exec 6>/dev/null
 
2212
  ac_configure_extra_args="$ac_configure_extra_args --silent"
 
2213
fi
 
2214
 
 
2215
_ACEOF
 
2216
cat >>$CONFIG_STATUS <<_ACEOF
 
2217
if \$ac_cs_recheck; then
 
2218
  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
 
2219
  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
 
2220
fi
 
2221
 
 
2222
_ACEOF
 
2223
 
 
2224
 
 
2225
 
 
2226
 
 
2227
 
 
2228
cat >>$CONFIG_STATUS <<\_ACEOF
7478
2229
for ac_config_target in $ac_config_targets
7479
2230
do
7480
2231
  case "$ac_config_target" in
7481
2232
  # Handling of arguments.
7482
2233
  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
7483
2234
  "gnome-common.spec" ) CONFIG_FILES="$CONFIG_FILES gnome-common.spec" ;;
7484
 
  "macros/Makefile" ) CONFIG_FILES="$CONFIG_FILES macros/Makefile" ;;
7485
2235
  "macros2/Makefile" ) CONFIG_FILES="$CONFIG_FILES macros2/Makefile" ;;
7486
 
  "bin/Makefile" ) CONFIG_FILES="$CONFIG_FILES bin/Makefile" ;;
7487
 
  "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
7488
 
  *) { { echo "$as_me:7488: error: invalid argument: $ac_config_target" >&5
 
2236
  "doc-build/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc-build/Makefile" ;;
 
2237
  "doc-build/gnome-doc-common" ) CONFIG_FILES="$CONFIG_FILES doc-build/gnome-doc-common" ;;
 
2238
  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
7489
2239
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
7490
2240
   { (exit 1); exit 1; }; };;
7491
2241
  esac
7499
2249
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
7500
2250
fi
7501
2251
 
 
2252
# Have a temporary directory for convenience.  Make it in the build tree
 
2253
# simply because there is no reason to put it here, and in addition,
 
2254
# creating and moving files from /tmp can sometimes cause problems.
7502
2255
# Create a temporary directory, and hook for its removal unless debugging.
7503
2256
$debug ||
7504
2257
{
7507
2260
}
7508
2261
 
7509
2262
# Create a (secure) tmp directory for tmp files.
7510
 
: ${TMPDIR=/tmp}
 
2263
 
7511
2264
{
7512
 
  tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
 
2265
  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
7513
2266
  test -n "$tmp" && test -d "$tmp"
7514
2267
}  ||
7515
2268
{
7516
 
  tmp=$TMPDIR/cs$$-$RANDOM
 
2269
  tmp=./confstat$$-$RANDOM
7517
2270
  (umask 077 && mkdir $tmp)
7518
2271
} ||
7519
2272
{
7520
 
   echo "$me: cannot create a temporary directory in $TMPDIR" >&2
 
2273
   echo "$me: cannot create a temporary directory in ." >&2
7521
2274
   { (exit 1); exit 1; }
7522
2275
}
7523
2276
 
7524
 
EOF
 
2277
_ACEOF
7525
2278
 
7526
 
cat >>$CONFIG_STATUS <<EOF
 
2279
cat >>$CONFIG_STATUS <<_ACEOF
7527
2280
 
7528
2281
#
7529
2282
# CONFIG_FILES section.
7536
2289
  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
7537
2290
   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
7538
2291
s,@SHELL@,$SHELL,;t t
 
2292
s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
 
2293
s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
 
2294
s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
 
2295
s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
 
2296
s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
 
2297
s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
7539
2298
s,@exec_prefix@,$exec_prefix,;t t
7540
2299
s,@prefix@,$prefix,;t t
7541
2300
s,@program_transform_name@,$program_transform_name,;t t
7551
2310
s,@oldincludedir@,$oldincludedir,;t t
7552
2311
s,@infodir@,$infodir,;t t
7553
2312
s,@mandir@,$mandir,;t t
7554
 
s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
7555
 
s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
7556
 
s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
7557
 
s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
7558
 
s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
7559
2313
s,@build_alias@,$build_alias,;t t
7560
2314
s,@host_alias@,$host_alias,;t t
7561
2315
s,@target_alias@,$target_alias,;t t
 
2316
s,@DEFS@,$DEFS,;t t
7562
2317
s,@ECHO_C@,$ECHO_C,;t t
7563
2318
s,@ECHO_N@,$ECHO_N,;t t
7564
2319
s,@ECHO_T@,$ECHO_T,;t t
7565
 
s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
7566
 
s,@DEFS@,$DEFS,;t t
7567
2320
s,@LIBS@,$LIBS,;t t
7568
2321
s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
7569
2322
s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
7570
2323
s,@INSTALL_DATA@,$INSTALL_DATA,;t t
 
2324
s,@CYGPATH_W@,$CYGPATH_W,;t t
7571
2325
s,@PACKAGE@,$PACKAGE,;t t
7572
2326
s,@VERSION@,$VERSION,;t t
7573
2327
s,@ACLOCAL@,$ACLOCAL,;t t
7575
2329
s,@AUTOMAKE@,$AUTOMAKE,;t t
7576
2330
s,@AUTOHEADER@,$AUTOHEADER,;t t
7577
2331
s,@MAKEINFO@,$MAKEINFO,;t t
 
2332
s,@AMTAR@,$AMTAR,;t t
 
2333
s,@install_sh@,$install_sh,;t t
 
2334
s,@STRIP@,$STRIP,;t t
 
2335
s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
 
2336
s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
 
2337
s,@AWK@,$AWK,;t t
7578
2338
s,@SET_MAKE@,$SET_MAKE,;t t
 
2339
s,@am__leading_dot@,$am__leading_dot,;t t
7579
2340
s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
7580
2341
s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
7581
2342
s,@MAINT@,$MAINT,;t t
7582
 
s,@INSIDE_GNOME_COMMON_TRUE@,$INSIDE_GNOME_COMMON_TRUE,;t t
7583
 
s,@INSIDE_GNOME_COMMON_FALSE@,$INSIDE_GNOME_COMMON_FALSE,;t t
7584
 
s,@CC@,$CC,;t t
7585
 
s,@CFLAGS@,$CFLAGS,;t t
7586
 
s,@LDFLAGS@,$LDFLAGS,;t t
7587
 
s,@CPPFLAGS@,$CPPFLAGS,;t t
7588
 
s,@ac_ct_CC@,$ac_ct_CC,;t t
7589
 
s,@EXEEXT@,$EXEEXT,;t t
7590
 
s,@OBJEXT@,$OBJEXT,;t t
7591
 
s,@CPP@,$CPP,;t t
7592
 
s,@build@,$build,;t t
7593
 
s,@build_cpu@,$build_cpu,;t t
7594
 
s,@build_vendor@,$build_vendor,;t t
7595
 
s,@build_os@,$build_os,;t t
7596
 
s,@host@,$host,;t t
7597
 
s,@host_cpu@,$host_cpu,;t t
7598
 
s,@host_vendor@,$host_vendor,;t t
7599
 
s,@host_os@,$host_os,;t t
7600
 
s,@LN_S@,$LN_S,;t t
7601
 
s,@ECHO@,$ECHO,;t t
7602
 
s,@RANLIB@,$RANLIB,;t t
7603
 
s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
7604
 
s,@STRIP@,$STRIP,;t t
7605
 
s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
7606
 
s,@LIBTOOL@,$LIBTOOL,;t t
7607
 
s,@AWK@,$AWK,;t t
7608
 
s,@PKG_CONFIG@,$PKG_CONFIG,;t t
 
2343
s,@LIBOBJS@,$LIBOBJS,;t t
 
2344
s,@LTLIBOBJS@,$LTLIBOBJS,;t t
7609
2345
CEOF
7610
2346
 
7611
 
EOF
 
2347
_ACEOF
7612
2348
 
7613
 
  cat >>$CONFIG_STATUS <<\EOF
 
2349
  cat >>$CONFIG_STATUS <<\_ACEOF
7614
2350
  # Split the substitutions into bite-sized pieces for seds with
7615
2351
  # small command number limits, like on Digital OSF/1 and HP-UX.
7616
2352
  ac_max_sed_lines=48
7635
2371
      (echo ':t
7636
2372
  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
7637
2373
      if test -z "$ac_sed_cmds"; then
7638
 
        ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
 
2374
        ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
7639
2375
      else
7640
 
        ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
 
2376
        ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
7641
2377
      fi
7642
2378
      ac_sed_frag=`expr $ac_sed_frag + 1`
7643
2379
      ac_beg=$ac_end
7649
2385
  fi
7650
2386
fi # test -n "$CONFIG_FILES"
7651
2387
 
7652
 
EOF
7653
 
cat >>$CONFIG_STATUS <<\EOF
 
2388
_ACEOF
 
2389
cat >>$CONFIG_STATUS <<\_ACEOF
7654
2390
for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
7655
2391
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7656
2392
  case $ac_file in
7657
2393
  - | *:- | *:-:* ) # input from stdin
7658
 
        cat >$tmp/stdin
7659
 
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7660
 
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
2394
        cat >$tmp/stdin
 
2395
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
2396
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7661
2397
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7662
 
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
2398
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7663
2399
  * )   ac_file_in=$ac_file.in ;;
7664
2400
  esac
7665
2401
 
7666
2402
  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
7667
 
  ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7668
 
         X"$ac_file" : 'X\(//\)[^/]' \| \
7669
 
         X"$ac_file" : 'X\(//\)$' \| \
7670
 
         X"$ac_file" : 'X\(/\)' \| \
7671
 
         .     : '\(.\)' 2>/dev/null ||
 
2403
  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
 
2404
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
2405
         X"$ac_file" : 'X\(//\)[^/]' \| \
 
2406
         X"$ac_file" : 'X\(//\)$' \| \
 
2407
         X"$ac_file" : 'X\(/\)' \| \
 
2408
         .     : '\(.\)' 2>/dev/null ||
7672
2409
echo X"$ac_file" |
7673
2410
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7674
2411
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7675
2412
          /^X\(\/\/\)$/{ s//\1/; q; }
7676
2413
          /^X\(\/\).*/{ s//\1/; q; }
7677
2414
          s/.*/./; q'`
7678
 
  if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
7679
 
    { case "$ac_dir" in
7680
 
  [\\/]* | ?:[\\/]* ) as_incr_dir=;;
7681
 
  *)                      as_incr_dir=.;;
7682
 
esac
7683
 
as_dummy="$ac_dir"
7684
 
for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
7685
 
  case $as_mkdir_dir in
7686
 
    # Skip DOS drivespec
7687
 
    ?:) as_incr_dir=$as_mkdir_dir ;;
7688
 
    *)
7689
 
      as_incr_dir=$as_incr_dir/$as_mkdir_dir
7690
 
      test -d "$as_incr_dir" || mkdir "$as_incr_dir"
7691
 
    ;;
7692
 
  esac
7693
 
done; }
7694
 
 
7695
 
    ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
7696
 
    # A "../" for each directory in $ac_dir_suffix.
7697
 
    ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
 
2415
  { if $as_mkdir_p; then
 
2416
    mkdir -p "$ac_dir"
7698
2417
  else
7699
 
    ac_dir_suffix= ac_dots=
7700
 
  fi
7701
 
 
7702
 
  case $srcdir in
7703
 
  .)  ac_srcdir=.
7704
 
      if test -z "$ac_dots"; then
7705
 
         ac_top_srcdir=.
7706
 
      else
7707
 
         ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'`
7708
 
      fi ;;
7709
 
  [\\/]* | ?:[\\/]* )
7710
 
      ac_srcdir=$srcdir$ac_dir_suffix;
7711
 
      ac_top_srcdir=$srcdir ;;
 
2418
    as_dir="$ac_dir"
 
2419
    as_dirs=
 
2420
    while test ! -d "$as_dir"; do
 
2421
      as_dirs="$as_dir $as_dirs"
 
2422
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
 
2423
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
2424
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
2425
         X"$as_dir" : 'X\(//\)$' \| \
 
2426
         X"$as_dir" : 'X\(/\)' \| \
 
2427
         .     : '\(.\)' 2>/dev/null ||
 
2428
echo X"$as_dir" |
 
2429
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
2430
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
2431
          /^X\(\/\/\)$/{ s//\1/; q; }
 
2432
          /^X\(\/\).*/{ s//\1/; q; }
 
2433
          s/.*/./; q'`
 
2434
    done
 
2435
    test ! -n "$as_dirs" || mkdir $as_dirs
 
2436
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
 
2437
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
 
2438
   { (exit 1); exit 1; }; }; }
 
2439
 
 
2440
  ac_builddir=.
 
2441
 
 
2442
if test "$ac_dir" != .; then
 
2443
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
 
2444
  # A "../" for each directory in $ac_dir_suffix.
 
2445
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
 
2446
else
 
2447
  ac_dir_suffix= ac_top_builddir=
 
2448
fi
 
2449
 
 
2450
case $srcdir in
 
2451
  .)  # No --srcdir option.  We are building in place.
 
2452
    ac_srcdir=.
 
2453
    if test -z "$ac_top_builddir"; then
 
2454
       ac_top_srcdir=.
 
2455
    else
 
2456
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
 
2457
    fi ;;
 
2458
  [\\/]* | ?:[\\/]* )  # Absolute path.
 
2459
    ac_srcdir=$srcdir$ac_dir_suffix;
 
2460
    ac_top_srcdir=$srcdir ;;
7712
2461
  *) # Relative path.
7713
 
    ac_srcdir=$ac_dots$srcdir$ac_dir_suffix
7714
 
    ac_top_srcdir=$ac_dots$srcdir ;;
7715
 
  esac
 
2462
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
 
2463
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
 
2464
esac
 
2465
 
 
2466
# Do not use `cd foo && pwd` to compute absolute paths, because
 
2467
# the directories may not exist.
 
2468
case `pwd` in
 
2469
.) ac_abs_builddir="$ac_dir";;
 
2470
*)
 
2471
  case "$ac_dir" in
 
2472
  .) ac_abs_builddir=`pwd`;;
 
2473
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
 
2474
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
 
2475
  esac;;
 
2476
esac
 
2477
case $ac_abs_builddir in
 
2478
.) ac_abs_top_builddir=${ac_top_builddir}.;;
 
2479
*)
 
2480
  case ${ac_top_builddir}. in
 
2481
  .) ac_abs_top_builddir=$ac_abs_builddir;;
 
2482
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
 
2483
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
 
2484
  esac;;
 
2485
esac
 
2486
case $ac_abs_builddir in
 
2487
.) ac_abs_srcdir=$ac_srcdir;;
 
2488
*)
 
2489
  case $ac_srcdir in
 
2490
  .) ac_abs_srcdir=$ac_abs_builddir;;
 
2491
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
 
2492
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
 
2493
  esac;;
 
2494
esac
 
2495
case $ac_abs_builddir in
 
2496
.) ac_abs_top_srcdir=$ac_top_srcdir;;
 
2497
*)
 
2498
  case $ac_top_srcdir in
 
2499
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
 
2500
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
 
2501
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
 
2502
  esac;;
 
2503
esac
 
2504
 
7716
2505
 
7717
2506
  case $INSTALL in
7718
2507
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7719
 
  *) ac_INSTALL=$ac_dots$INSTALL ;;
 
2508
  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
7720
2509
  esac
7721
2510
 
7722
2511
  if test x"$ac_file" != x-; then
7723
 
    { echo "$as_me:7723: creating $ac_file" >&5
 
2512
    { echo "$as_me:$LINENO: creating $ac_file" >&5
7724
2513
echo "$as_me: creating $ac_file" >&6;}
7725
2514
    rm -f "$ac_file"
7726
2515
  fi
7727
2516
  # Let's still pretend it is `configure' which instantiates (i.e., don't
7728
2517
  # use $as_me), people would be surprised to read:
7729
 
  #    /* config.h.  Generated automatically by config.status.  */
7730
 
  configure_input="Generated automatically from `echo $ac_file_in |
7731
 
                                                 sed 's,.*/,,'` by configure."
 
2518
  #    /* config.h.  Generated by config.status.  */
 
2519
  if test x"$ac_file" = x-; then
 
2520
    configure_input=
 
2521
  else
 
2522
    configure_input="$ac_file.  "
 
2523
  fi
 
2524
  configure_input=$configure_input"Generated from `echo $ac_file_in |
 
2525
                                     sed 's,.*/,,'` by configure."
7732
2526
 
7733
2527
  # First look for the input files in the build tree, otherwise in the
7734
2528
  # src tree.
7737
2531
      case $f in
7738
2532
      -) echo $tmp/stdin ;;
7739
2533
      [\\/$]*)
7740
 
         # Absolute (can't be DOS-style, as IFS=:)
7741
 
         test -f "$f" || { { echo "$as_me:7741: error: cannot find input file: $f" >&5
 
2534
         # Absolute (can't be DOS-style, as IFS=:)
 
2535
         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7742
2536
echo "$as_me: error: cannot find input file: $f" >&2;}
7743
2537
   { (exit 1); exit 1; }; }
7744
 
         echo $f;;
 
2538
         echo "$f";;
7745
2539
      *) # Relative
7746
 
         if test -f "$f"; then
7747
 
           # Build tree
7748
 
           echo $f
7749
 
         elif test -f "$srcdir/$f"; then
7750
 
           # Source tree
7751
 
           echo $srcdir/$f
7752
 
         else
7753
 
           # /dev/null tree
7754
 
           { { echo "$as_me:7754: error: cannot find input file: $f" >&5
 
2540
         if test -f "$f"; then
 
2541
           # Build tree
 
2542
           echo "$f"
 
2543
         elif test -f "$srcdir/$f"; then
 
2544
           # Source tree
 
2545
           echo "$srcdir/$f"
 
2546
         else
 
2547
           # /dev/null tree
 
2548
           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7755
2549
echo "$as_me: error: cannot find input file: $f" >&2;}
7756
2550
   { (exit 1); exit 1; }; }
7757
 
         fi;;
 
2551
         fi;;
7758
2552
      esac
7759
2553
    done` || { (exit 1); exit 1; }
7760
 
EOF
7761
 
cat >>$CONFIG_STATUS <<EOF
 
2554
_ACEOF
 
2555
cat >>$CONFIG_STATUS <<_ACEOF
7762
2556
  sed "$ac_vpsub
7763
2557
$extrasub
7764
 
EOF
7765
 
cat >>$CONFIG_STATUS <<\EOF
 
2558
_ACEOF
 
2559
cat >>$CONFIG_STATUS <<\_ACEOF
7766
2560
:t
7767
2561
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7768
2562
s,@configure_input@,$configure_input,;t t
7769
2563
s,@srcdir@,$ac_srcdir,;t t
 
2564
s,@abs_srcdir@,$ac_abs_srcdir,;t t
7770
2565
s,@top_srcdir@,$ac_top_srcdir,;t t
 
2566
s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
 
2567
s,@builddir@,$ac_builddir,;t t
 
2568
s,@abs_builddir@,$ac_abs_builddir,;t t
 
2569
s,@top_builddir@,$ac_top_builddir,;t t
 
2570
s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
7771
2571
s,@INSTALL@,$ac_INSTALL,;t t
7772
2572
" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
7773
2573
  rm -f $tmp/stdin
7779
2579
  fi
7780
2580
 
7781
2581
done
7782
 
EOF
 
2582
_ACEOF
7783
2583
 
7784
 
cat >>$CONFIG_STATUS <<\EOF
 
2584
cat >>$CONFIG_STATUS <<\_ACEOF
7785
2585
 
7786
2586
{ (exit 0); exit 0; }
7787
 
EOF
 
2587
_ACEOF
7788
2588
chmod +x $CONFIG_STATUS
7789
2589
ac_clean_files=$ac_clean_files_save
7790
2590
 
 
2591
 
7791
2592
# configure is writing to config.log, and then calls config.status.
7792
2593
# config.status does its own redirection, appending to config.log.
7793
2594
# Unfortunately, on DOS this fails, as config.log is still kept open
7798
2599
# need to make the FD available again.
7799
2600
if test "$no_create" != yes; then
7800
2601
  ac_cs_success=:
 
2602
  ac_config_status_args=
 
2603
  test "$silent" = yes &&
 
2604
    ac_config_status_args="$ac_config_status_args --quiet"
7801
2605
  exec 5>/dev/null
7802
 
  $SHELL $CONFIG_STATUS || ac_cs_success=false
 
2606
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
7803
2607
  exec 5>>config.log
7804
2608
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7805
2609
  # would make configure fail if this is the last instruction.