~ubuntu-branches/ubuntu/precise/ejabberd/precise-updates

« back to all changes in this revision

Viewing changes to src/configure

  • Committer: Bazaar Package Importer
  • Author(s): Konstantin Khomoutov, Konstantin Khomoutov
  • Date: 2011-10-03 20:27:12 UTC
  • mfrom: (21.1.3 sid)
  • Revision ID: james.westby@ubuntu.com-20111003202712-7j03r8c8hobtc5m6
Tags: 2.1.9-1
[ Konstantin Khomoutov ]
* New upstream release.
* Remove obsoleted version.patch.

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 GNU Autoconf 2.65 for ejabberd 2.1.x.
 
3
# Generated by GNU Autoconf 2.68 for ejabberd 2.1.x.
4
4
#
5
5
# Report bugs to <ejabberd@process-one.net>.
6
6
#
7
7
#
8
8
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9
 
# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
10
 
# Inc.
 
9
# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
 
10
# Foundation, Inc.
11
11
#
12
12
#
13
13
# This configure script is free software; the Free Software Foundation
91
91
IFS=" ""        $as_nl"
92
92
 
93
93
# Find who we are.  Look in the path if we contain no directory separator.
 
94
as_myself=
94
95
case $0 in #((
95
96
  *[\\/]* ) as_myself=$0 ;;
96
97
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
216
217
  # We cannot yet assume a decent shell, so we have to provide a
217
218
        # neutralization value for shells without unset; and this also
218
219
        # works around shells that cannot unset nonexistent variables.
 
220
        # Preserve -v and -x to the replacement shell.
219
221
        BASH_ENV=/dev/null
220
222
        ENV=/dev/null
221
223
        (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
222
224
        export CONFIG_SHELL
223
 
        exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
 
225
        case $- in # ((((
 
226
          *v*x* | *x*v* ) as_opts=-vx ;;
 
227
          *v* ) as_opts=-v ;;
 
228
          *x* ) as_opts=-x ;;
 
229
          * ) as_opts= ;;
 
230
        esac
 
231
        exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
224
232
fi
225
233
 
226
234
    if test x$as_have_required = xno; then :
319
327
      test -d "$as_dir" && break
320
328
    done
321
329
    test -z "$as_dirs" || eval "mkdir $as_dirs"
322
 
  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
 
330
  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
323
331
 
324
332
 
325
333
} # as_fn_mkdir_p
359
367
fi # as_fn_arith
360
368
 
361
369
 
362
 
# as_fn_error ERROR [LINENO LOG_FD]
363
 
# ---------------------------------
 
370
# as_fn_error STATUS ERROR [LINENO LOG_FD]
 
371
# ----------------------------------------
364
372
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
365
373
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
366
 
# script with status $?, using 1 if that was 0.
 
374
# script with STATUS, using 1 if that was 0.
367
375
as_fn_error ()
368
376
{
369
 
  as_status=$?; test $as_status -eq 0 && as_status=1
370
 
  if test "$3"; then
371
 
    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
372
 
    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
 
377
  as_status=$1; test $as_status -eq 0 && as_status=1
 
378
  if test "$4"; then
 
379
    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
380
    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
373
381
  fi
374
 
  $as_echo "$as_me: error: $1" >&2
 
382
  $as_echo "$as_me: error: $2" >&2
375
383
  as_fn_exit $as_status
376
384
} # as_fn_error
377
385
 
533
541
exec 6>&1
534
542
 
535
543
# Name of the host.
536
 
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
 
544
# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
537
545
# so uname gets run too.
538
546
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
539
547
 
800
808
  fi
801
809
 
802
810
  case $ac_option in
803
 
  *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
804
 
  *)    ac_optarg=yes ;;
 
811
  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
 
812
  *=)   ac_optarg= ;;
 
813
  *)    ac_optarg=yes ;;
805
814
  esac
806
815
 
807
816
  # Accept the important Cygnus configure options, so we can diagnose typos.
846
855
    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
847
856
    # Reject names that are not valid shell variable names.
848
857
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
849
 
      as_fn_error "invalid feature name: $ac_useropt"
 
858
      as_fn_error $? "invalid feature name: $ac_useropt"
850
859
    ac_useropt_orig=$ac_useropt
851
860
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
852
861
    case $ac_user_opts in
872
881
    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
873
882
    # Reject names that are not valid shell variable names.
874
883
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
875
 
      as_fn_error "invalid feature name: $ac_useropt"
 
884
      as_fn_error $? "invalid feature name: $ac_useropt"
876
885
    ac_useropt_orig=$ac_useropt
877
886
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
878
887
    case $ac_user_opts in
1076
1085
    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1077
1086
    # Reject names that are not valid shell variable names.
1078
1087
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1079
 
      as_fn_error "invalid package name: $ac_useropt"
 
1088
      as_fn_error $? "invalid package name: $ac_useropt"
1080
1089
    ac_useropt_orig=$ac_useropt
1081
1090
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1082
1091
    case $ac_user_opts in
1092
1101
    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1093
1102
    # Reject names that are not valid shell variable names.
1094
1103
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1095
 
      as_fn_error "invalid package name: $ac_useropt"
 
1104
      as_fn_error $? "invalid package name: $ac_useropt"
1096
1105
    ac_useropt_orig=$ac_useropt
1097
1106
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1098
1107
    case $ac_user_opts in
1122
1131
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1123
1132
    x_libraries=$ac_optarg ;;
1124
1133
 
1125
 
  -*) as_fn_error "unrecognized option: \`$ac_option'
1126
 
Try \`$0 --help' for more information."
 
1134
  -*) as_fn_error $? "unrecognized option: \`$ac_option'
 
1135
Try \`$0 --help' for more information"
1127
1136
    ;;
1128
1137
 
1129
1138
  *=*)
1131
1140
    # Reject names that are not valid shell variable names.
1132
1141
    case $ac_envvar in #(
1133
1142
      '' | [0-9]* | *[!_$as_cr_alnum]* )
1134
 
      as_fn_error "invalid variable name: \`$ac_envvar'" ;;
 
1143
      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1135
1144
    esac
1136
1145
    eval $ac_envvar=\$ac_optarg
1137
1146
    export $ac_envvar ;;
1141
1150
    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1142
1151
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1143
1152
      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1144
 
    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
 
1153
    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1145
1154
    ;;
1146
1155
 
1147
1156
  esac
1149
1158
 
1150
1159
if test -n "$ac_prev"; then
1151
1160
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1152
 
  as_fn_error "missing argument to $ac_option"
 
1161
  as_fn_error $? "missing argument to $ac_option"
1153
1162
fi
1154
1163
 
1155
1164
if test -n "$ac_unrecognized_opts"; then
1156
1165
  case $enable_option_checking in
1157
1166
    no) ;;
1158
 
    fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
 
1167
    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1159
1168
    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1160
1169
  esac
1161
1170
fi
1178
1187
    [\\/$]* | ?:[\\/]* )  continue;;
1179
1188
    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1180
1189
  esac
1181
 
  as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
 
1190
  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1182
1191
done
1183
1192
 
1184
1193
# There might be people who depend on the old broken behavior: `$host'
1192
1201
if test "x$host_alias" != x; then
1193
1202
  if test "x$build_alias" = x; then
1194
1203
    cross_compiling=maybe
1195
 
    $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1196
 
    If a cross compiler is detected then cross compile mode will be used." >&2
 
1204
    $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
 
1205
    If a cross compiler is detected then cross compile mode will be used" >&2
1197
1206
  elif test "x$build_alias" != "x$host_alias"; then
1198
1207
    cross_compiling=yes
1199
1208
  fi
1208
1217
ac_pwd=`pwd` && test -n "$ac_pwd" &&
1209
1218
ac_ls_di=`ls -di .` &&
1210
1219
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1211
 
  as_fn_error "working directory cannot be determined"
 
1220
  as_fn_error $? "working directory cannot be determined"
1212
1221
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1213
 
  as_fn_error "pwd does not report name of working directory"
 
1222
  as_fn_error $? "pwd does not report name of working directory"
1214
1223
 
1215
1224
 
1216
1225
# Find the source files, if location was not specified.
1249
1258
fi
1250
1259
if test ! -r "$srcdir/$ac_unique_file"; then
1251
1260
  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1252
 
  as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
 
1261
  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1253
1262
fi
1254
1263
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1255
1264
ac_abs_confdir=`(
1256
 
        cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
 
1265
        cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1257
1266
        pwd)`
1258
1267
# When building in place, set srcdir=.
1259
1268
if test "$ac_abs_confdir" = "$ac_pwd"; then
1293
1302
      --help=short        display options specific to this package
1294
1303
      --help=recursive    display the short help of all the included packages
1295
1304
  -V, --version           display version information and exit
1296
 
  -q, --quiet, --silent   do not print \`checking...' messages
 
1305
  -q, --quiet, --silent   do not print \`checking ...' messages
1297
1306
      --cache-file=FILE   cache test results in FILE [disabled]
1298
1307
  -C, --config-cache      alias for \`--cache-file=config.cache'
1299
1308
  -n, --no-create         do not create output files
1471
1480
if $ac_init_version; then
1472
1481
  cat <<\_ACEOF
1473
1482
ejabberd configure 2.1.x
1474
 
generated by GNU Autoconf 2.65
 
1483
generated by GNU Autoconf 2.68
1475
1484
 
1476
 
Copyright (C) 2009 Free Software Foundation, Inc.
 
1485
Copyright (C) 2010 Free Software Foundation, Inc.
1477
1486
This configure script is free software; the Free Software Foundation
1478
1487
gives unlimited permission to copy, distribute and modify it.
1479
1488
_ACEOF
1517
1526
 
1518
1527
        ac_retval=1
1519
1528
fi
1520
 
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
1529
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1521
1530
  as_fn_set_status $ac_retval
1522
1531
 
1523
1532
} # ac_fn_c_try_compile
1563
1572
  # interfere with the next link command; also delete a directory that is
1564
1573
  # left behind by Apple's compiler.  We do this before executing the actions.
1565
1574
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1566
 
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
1575
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1567
1576
  as_fn_set_status $ac_retval
1568
1577
 
1569
1578
} # ac_fn_c_try_link
1589
1598
    mv -f conftest.er1 conftest.err
1590
1599
  fi
1591
1600
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1592
 
  test $ac_status = 0; } >/dev/null && {
 
1601
  test $ac_status = 0; } > conftest.i && {
1593
1602
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1594
1603
         test ! -s conftest.err
1595
1604
       }; then :
1600
1609
 
1601
1610
    ac_retval=1
1602
1611
fi
1603
 
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
1612
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1604
1613
  as_fn_set_status $ac_retval
1605
1614
 
1606
1615
} # ac_fn_c_try_cpp
1613
1622
ac_fn_c_check_header_mongrel ()
1614
1623
{
1615
1624
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1616
 
  if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
 
1625
  if eval \${$3+:} false; then :
1617
1626
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1618
1627
$as_echo_n "checking for $2... " >&6; }
1619
 
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
 
1628
if eval \${$3+:} false; then :
1620
1629
  $as_echo_n "(cached) " >&6
1621
1630
fi
1622
1631
eval ac_res=\$$3
1652
1661
else
1653
1662
  ac_header_preproc=no
1654
1663
fi
1655
 
rm -f conftest.err conftest.$ac_ext
 
1664
rm -f conftest.err conftest.i conftest.$ac_ext
1656
1665
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1657
1666
$as_echo "$ac_header_preproc" >&6; }
1658
1667
 
1675
1684
$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1676
1685
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1677
1686
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1678
 
( cat <<\_ASBOX
1679
 
## --------------------------------------- ##
 
1687
( $as_echo "## --------------------------------------- ##
1680
1688
## Report this to ejabberd@process-one.net ##
1681
 
## --------------------------------------- ##
1682
 
_ASBOX
 
1689
## --------------------------------------- ##"
1683
1690
     ) | sed "s/^/$as_me: WARNING:     /" >&2
1684
1691
    ;;
1685
1692
esac
1686
1693
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1687
1694
$as_echo_n "checking for $2... " >&6; }
1688
 
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
 
1695
if eval \${$3+:} false; then :
1689
1696
  $as_echo_n "(cached) " >&6
1690
1697
else
1691
1698
  eval "$3=\$ac_header_compiler"
1694
1701
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1695
1702
$as_echo "$ac_res" >&6; }
1696
1703
fi
1697
 
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
1704
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1698
1705
 
1699
1706
} # ac_fn_c_check_header_mongrel
1700
1707
 
1735
1742
       ac_retval=$ac_status
1736
1743
fi
1737
1744
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1738
 
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
1745
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1739
1746
  as_fn_set_status $ac_retval
1740
1747
 
1741
1748
} # ac_fn_c_try_run
1749
1756
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1750
1757
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1751
1758
$as_echo_n "checking for $2... " >&6; }
1752
 
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
 
1759
if eval \${$3+:} false; then :
1753
1760
  $as_echo_n "(cached) " >&6
1754
1761
else
1755
1762
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1767
1774
eval ac_res=\$$3
1768
1775
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1769
1776
$as_echo "$ac_res" >&6; }
1770
 
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
1777
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1771
1778
 
1772
1779
} # ac_fn_c_check_header_compile
1773
1780
 
1808
1815
       ac_retval=$ac_status
1809
1816
fi
1810
1817
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1811
 
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
1818
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1812
1819
  as_fn_set_status $ac_retval
1813
1820
 
1814
1821
} # ac_fn_erl_try_run
1817
1824
running configure, to aid debugging if configure makes a mistake.
1818
1825
 
1819
1826
It was created by ejabberd $as_me 2.1.x, which was
1820
 
generated by GNU Autoconf 2.65.  Invocation command line was
 
1827
generated by GNU Autoconf 2.68.  Invocation command line was
1821
1828
 
1822
1829
  $ $0 $@
1823
1830
 
1927
1934
  {
1928
1935
    echo
1929
1936
 
1930
 
    cat <<\_ASBOX
1931
 
## ---------------- ##
 
1937
    $as_echo "## ---------------- ##
1932
1938
## Cache variables. ##
1933
 
## ---------------- ##
1934
 
_ASBOX
 
1939
## ---------------- ##"
1935
1940
    echo
1936
1941
    # The following way of writing the cache mishandles newlines in values,
1937
1942
(
1965
1970
)
1966
1971
    echo
1967
1972
 
1968
 
    cat <<\_ASBOX
1969
 
## ----------------- ##
 
1973
    $as_echo "## ----------------- ##
1970
1974
## Output variables. ##
1971
 
## ----------------- ##
1972
 
_ASBOX
 
1975
## ----------------- ##"
1973
1976
    echo
1974
1977
    for ac_var in $ac_subst_vars
1975
1978
    do
1982
1985
    echo
1983
1986
 
1984
1987
    if test -n "$ac_subst_files"; then
1985
 
      cat <<\_ASBOX
1986
 
## ------------------- ##
 
1988
      $as_echo "## ------------------- ##
1987
1989
## File substitutions. ##
1988
 
## ------------------- ##
1989
 
_ASBOX
 
1990
## ------------------- ##"
1990
1991
      echo
1991
1992
      for ac_var in $ac_subst_files
1992
1993
      do
2000
2001
    fi
2001
2002
 
2002
2003
    if test -s confdefs.h; then
2003
 
      cat <<\_ASBOX
2004
 
## ----------- ##
 
2004
      $as_echo "## ----------- ##
2005
2005
## confdefs.h. ##
2006
 
## ----------- ##
2007
 
_ASBOX
 
2006
## ----------- ##"
2008
2007
      echo
2009
2008
      cat confdefs.h
2010
2009
      echo
2059
2058
ac_site_file1=NONE
2060
2059
ac_site_file2=NONE
2061
2060
if test -n "$CONFIG_SITE"; then
2062
 
  ac_site_file1=$CONFIG_SITE
 
2061
  # We do not want a PATH search for config.site.
 
2062
  case $CONFIG_SITE in #((
 
2063
    -*)  ac_site_file1=./$CONFIG_SITE;;
 
2064
    */*) ac_site_file1=$CONFIG_SITE;;
 
2065
    *)   ac_site_file1=./$CONFIG_SITE;;
 
2066
  esac
2063
2067
elif test "x$prefix" != xNONE; then
2064
2068
  ac_site_file1=$prefix/share/config.site
2065
2069
  ac_site_file2=$prefix/etc/config.site
2074
2078
    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2075
2079
$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2076
2080
    sed 's/^/| /' "$ac_site_file" >&5
2077
 
    . "$ac_site_file"
 
2081
    . "$ac_site_file" \
 
2082
      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
2083
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
2084
as_fn_error $? "failed to load site script $ac_site_file
 
2085
See \`config.log' for more details" "$LINENO" 5; }
2078
2086
  fi
2079
2087
done
2080
2088
 
2150
2158
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2151
2159
  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2152
2160
$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2153
 
  as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
 
2161
  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2154
2162
fi
2155
2163
## -------------------- ##
2156
2164
## Main body of script. ##
2175
2183
set dummy ${ac_tool_prefix}gcc; ac_word=$2
2176
2184
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2177
2185
$as_echo_n "checking for $ac_word... " >&6; }
2178
 
if test "${ac_cv_prog_CC+set}" = set; then :
 
2186
if ${ac_cv_prog_CC+:} false; then :
2179
2187
  $as_echo_n "(cached) " >&6
2180
2188
else
2181
2189
  if test -n "$CC"; then
2215
2223
set dummy gcc; ac_word=$2
2216
2224
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2217
2225
$as_echo_n "checking for $ac_word... " >&6; }
2218
 
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
 
2226
if ${ac_cv_prog_ac_ct_CC+:} false; then :
2219
2227
  $as_echo_n "(cached) " >&6
2220
2228
else
2221
2229
  if test -n "$ac_ct_CC"; then
2268
2276
set dummy ${ac_tool_prefix}cc; ac_word=$2
2269
2277
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2270
2278
$as_echo_n "checking for $ac_word... " >&6; }
2271
 
if test "${ac_cv_prog_CC+set}" = set; then :
 
2279
if ${ac_cv_prog_CC+:} false; then :
2272
2280
  $as_echo_n "(cached) " >&6
2273
2281
else
2274
2282
  if test -n "$CC"; then
2308
2316
set dummy cc; ac_word=$2
2309
2317
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2310
2318
$as_echo_n "checking for $ac_word... " >&6; }
2311
 
if test "${ac_cv_prog_CC+set}" = set; then :
 
2319
if ${ac_cv_prog_CC+:} false; then :
2312
2320
  $as_echo_n "(cached) " >&6
2313
2321
else
2314
2322
  if test -n "$CC"; then
2367
2375
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2368
2376
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2369
2377
$as_echo_n "checking for $ac_word... " >&6; }
2370
 
if test "${ac_cv_prog_CC+set}" = set; then :
 
2378
if ${ac_cv_prog_CC+:} false; then :
2371
2379
  $as_echo_n "(cached) " >&6
2372
2380
else
2373
2381
  if test -n "$CC"; then
2411
2419
set dummy $ac_prog; ac_word=$2
2412
2420
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2413
2421
$as_echo_n "checking for $ac_word... " >&6; }
2414
 
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
 
2422
if ${ac_cv_prog_ac_ct_CC+:} false; then :
2415
2423
  $as_echo_n "(cached) " >&6
2416
2424
else
2417
2425
  if test -n "$ac_ct_CC"; then
2465
2473
 
2466
2474
test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2467
2475
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2468
 
as_fn_error "no acceptable C compiler found in \$PATH
2469
 
See \`config.log' for more details." "$LINENO" 5; }
 
2476
as_fn_error $? "no acceptable C compiler found in \$PATH
 
2477
See \`config.log' for more details" "$LINENO" 5; }
2470
2478
 
2471
2479
# Provide some information about the compiler.
2472
2480
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2580
2588
 
2581
2589
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2582
2590
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2583
 
{ as_fn_set_status 77
2584
 
as_fn_error "C compiler cannot create executables
2585
 
See \`config.log' for more details." "$LINENO" 5; }; }
 
2591
as_fn_error 77 "C compiler cannot create executables
 
2592
See \`config.log' for more details" "$LINENO" 5; }
2586
2593
else
2587
2594
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2588
2595
$as_echo "yes" >&6; }
2624
2631
else
2625
2632
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2626
2633
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2627
 
as_fn_error "cannot compute suffix of executables: cannot compile and link
2628
 
See \`config.log' for more details." "$LINENO" 5; }
 
2634
as_fn_error $? "cannot compute suffix of executables: cannot compile and link
 
2635
See \`config.log' for more details" "$LINENO" 5; }
2629
2636
fi
2630
2637
rm -f conftest conftest$ac_cv_exeext
2631
2638
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2682
2689
    else
2683
2690
        { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2684
2691
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2685
 
as_fn_error "cannot run C compiled programs.
 
2692
as_fn_error $? "cannot run C compiled programs.
2686
2693
If you meant to cross compile, use \`--host'.
2687
 
See \`config.log' for more details." "$LINENO" 5; }
 
2694
See \`config.log' for more details" "$LINENO" 5; }
2688
2695
    fi
2689
2696
  fi
2690
2697
fi
2695
2702
ac_clean_files=$ac_clean_files_save
2696
2703
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2697
2704
$as_echo_n "checking for suffix of object files... " >&6; }
2698
 
if test "${ac_cv_objext+set}" = set; then :
 
2705
if ${ac_cv_objext+:} false; then :
2699
2706
  $as_echo_n "(cached) " >&6
2700
2707
else
2701
2708
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2735
2742
 
2736
2743
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2737
2744
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2738
 
as_fn_error "cannot compute suffix of object files: cannot compile
2739
 
See \`config.log' for more details." "$LINENO" 5; }
 
2745
as_fn_error $? "cannot compute suffix of object files: cannot compile
 
2746
See \`config.log' for more details" "$LINENO" 5; }
2740
2747
fi
2741
2748
rm -f conftest.$ac_cv_objext conftest.$ac_ext
2742
2749
fi
2746
2753
ac_objext=$OBJEXT
2747
2754
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2748
2755
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2749
 
if test "${ac_cv_c_compiler_gnu+set}" = set; then :
 
2756
if ${ac_cv_c_compiler_gnu+:} false; then :
2750
2757
  $as_echo_n "(cached) " >&6
2751
2758
else
2752
2759
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2783
2790
ac_save_CFLAGS=$CFLAGS
2784
2791
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2785
2792
$as_echo_n "checking whether $CC accepts -g... " >&6; }
2786
 
if test "${ac_cv_prog_cc_g+set}" = set; then :
 
2793
if ${ac_cv_prog_cc_g+:} false; then :
2787
2794
  $as_echo_n "(cached) " >&6
2788
2795
else
2789
2796
  ac_save_c_werror_flag=$ac_c_werror_flag
2861
2868
fi
2862
2869
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
2863
2870
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2864
 
if test "${ac_cv_prog_cc_c89+set}" = set; then :
 
2871
if ${ac_cv_prog_cc_c89+:} false; then :
2865
2872
  $as_echo_n "(cached) " >&6
2866
2873
else
2867
2874
  ac_cv_prog_cc_c89=no
2960
2967
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2961
2968
set x ${MAKE-make}
2962
2969
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2963
 
if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
 
2970
if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2964
2971
  $as_echo_n "(cached) " >&6
2965
2972
else
2966
2973
  cat >conftest.make <<\_ACEOF
2968
2975
all:
2969
2976
        @echo '@@@%%%=$(MAKE)=@@@%%%'
2970
2977
_ACEOF
2971
 
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
 
2978
# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2972
2979
case `${MAKE-make} -f conftest.make 2>/dev/null` in
2973
2980
  *@@@%%%=?*=@@@%%%*)
2974
2981
    eval ac_cv_prog_make_${ac_make}_set=yes;;
3005
3012
set dummy ${ac_tool_prefix}erlc; ac_word=$2
3006
3013
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3007
3014
$as_echo_n "checking for $ac_word... " >&6; }
3008
 
if test "${ac_cv_path_ERLC+set}" = set; then :
 
3015
if ${ac_cv_path_ERLC+:} false; then :
3009
3016
  $as_echo_n "(cached) " >&6
3010
3017
else
3011
3018
  case $ERLC in
3049
3056
set dummy erlc; ac_word=$2
3050
3057
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3051
3058
$as_echo_n "checking for $ac_word... " >&6; }
3052
 
if test "${ac_cv_path_ac_pt_ERLC+set}" = set; then :
 
3059
if ${ac_cv_path_ac_pt_ERLC+:} false; then :
3053
3060
  $as_echo_n "(cached) " >&6
3054
3061
else
3055
3062
  case $ac_pt_ERLC in
3105
3112
set dummy ${ac_tool_prefix}erl; ac_word=$2
3106
3113
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3107
3114
$as_echo_n "checking for $ac_word... " >&6; }
3108
 
if test "${ac_cv_path_ERL+set}" = set; then :
 
3115
if ${ac_cv_path_ERL+:} false; then :
3109
3116
  $as_echo_n "(cached) " >&6
3110
3117
else
3111
3118
  case $ERL in
3149
3156
set dummy erl; ac_word=$2
3150
3157
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3151
3158
$as_echo_n "checking for $ac_word... " >&6; }
3152
 
if test "${ac_cv_path_ac_pt_ERL+set}" = set; then :
 
3159
if ${ac_cv_path_ac_pt_ERL+:} false; then :
3153
3160
  $as_echo_n "(cached) " >&6
3154
3161
else
3155
3162
  case $ac_pt_ERL in
3202
3209
 
3203
3210
 
3204
3211
   if test "z$ERLC" = "z" || test "z$ERL" = "z"; then
3205
 
                as_fn_error "erlang not found" "$LINENO" 5
 
3212
                as_fn_error $? "erlang not found" "$LINENO" 5
3206
3213
   fi
3207
3214
 
3208
3215
 
3260
3267
_EOF
3261
3268
 
3262
3269
   if ! $ERLC conftest.erl; then
3263
 
           as_fn_error "could not compile sample program" "$LINENO" 5
 
3270
           as_fn_error $? "could not compile sample program" "$LINENO" 5
3264
3271
   fi
3265
3272
 
3266
3273
   if ! $ERL -s conftest -noshell; then
3267
 
       as_fn_error "could not run sample program" "$LINENO" 5
 
3274
       as_fn_error $? "could not run sample program" "$LINENO" 5
3268
3275
   fi
3269
3276
 
3270
3277
   if ! test -f conftest.out; then
3271
 
       as_fn_error "erlang program was not properly executed, (conftest.out was not produced)" "$LINENO" 5
 
3278
       as_fn_error $? "erlang program was not properly executed, (conftest.out was not produced)" "$LINENO" 5
3272
3279
   fi
3273
3280
 
3274
3281
   # First line
3307
3314
 
3308
3315
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
3309
3316
$as_echo_n "checking for iconv... " >&6; }
3310
 
if test "${am_cv_func_iconv+set}" = set; then :
 
3317
if ${am_cv_func_iconv+:} false; then :
3311
3318
  $as_echo_n "(cached) " >&6
3312
3319
else
3313
3320
 
3401
3408
 
3402
3409
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
3403
3410
$as_echo_n "checking for iconv declaration... " >&6; }
3404
 
    if test "${am_cv_proto_iconv+set}" = set; then :
 
3411
    if ${am_cv_proto_iconv+:} false; then :
3405
3412
  $as_echo_n "(cached) " >&6
3406
3413
else
3407
3414
 
3467
3474
  CPP=
3468
3475
fi
3469
3476
if test -z "$CPP"; then
3470
 
  if test "${ac_cv_prog_CPP+set}" = set; then :
 
3477
  if ${ac_cv_prog_CPP+:} false; then :
3471
3478
  $as_echo_n "(cached) " >&6
3472
3479
else
3473
3480
      # Double quotes because CPP needs to be expanded
3497
3504
  # Broken: fails on valid input.
3498
3505
continue
3499
3506
fi
3500
 
rm -f conftest.err conftest.$ac_ext
 
3507
rm -f conftest.err conftest.i conftest.$ac_ext
3501
3508
 
3502
3509
  # OK, works on sane cases.  Now check whether nonexistent headers
3503
3510
  # can be detected and how.
3513
3520
ac_preproc_ok=:
3514
3521
break
3515
3522
fi
3516
 
rm -f conftest.err conftest.$ac_ext
 
3523
rm -f conftest.err conftest.i conftest.$ac_ext
3517
3524
 
3518
3525
done
3519
3526
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3520
 
rm -f conftest.err conftest.$ac_ext
 
3527
rm -f conftest.i conftest.err conftest.$ac_ext
3521
3528
if $ac_preproc_ok; then :
3522
3529
  break
3523
3530
fi
3556
3563
  # Broken: fails on valid input.
3557
3564
continue
3558
3565
fi
3559
 
rm -f conftest.err conftest.$ac_ext
 
3566
rm -f conftest.err conftest.i conftest.$ac_ext
3560
3567
 
3561
3568
  # OK, works on sane cases.  Now check whether nonexistent headers
3562
3569
  # can be detected and how.
3572
3579
ac_preproc_ok=:
3573
3580
break
3574
3581
fi
3575
 
rm -f conftest.err conftest.$ac_ext
 
3582
rm -f conftest.err conftest.i conftest.$ac_ext
3576
3583
 
3577
3584
done
3578
3585
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3579
 
rm -f conftest.err conftest.$ac_ext
 
3586
rm -f conftest.i conftest.err conftest.$ac_ext
3580
3587
if $ac_preproc_ok; then :
3581
3588
 
3582
3589
else
3583
3590
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3584
3591
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3585
 
as_fn_error "C preprocessor \"$CPP\" fails sanity check
3586
 
See \`config.log' for more details." "$LINENO" 5; }
 
3592
as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
 
3593
See \`config.log' for more details" "$LINENO" 5; }
3587
3594
fi
3588
3595
 
3589
3596
ac_ext=c
3595
3602
 
3596
3603
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3597
3604
$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3598
 
if test "${ac_cv_path_GREP+set}" = set; then :
 
3605
if ${ac_cv_path_GREP+:} false; then :
3599
3606
  $as_echo_n "(cached) " >&6
3600
3607
else
3601
3608
  if test -z "$GREP"; then
3644
3651
  done
3645
3652
IFS=$as_save_IFS
3646
3653
  if test -z "$ac_cv_path_GREP"; then
3647
 
    as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
 
3654
    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3648
3655
  fi
3649
3656
else
3650
3657
  ac_cv_path_GREP=$GREP
3658
3665
 
3659
3666
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3660
3667
$as_echo_n "checking for egrep... " >&6; }
3661
 
if test "${ac_cv_path_EGREP+set}" = set; then :
 
3668
if ${ac_cv_path_EGREP+:} false; then :
3662
3669
  $as_echo_n "(cached) " >&6
3663
3670
else
3664
3671
  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3710
3717
  done
3711
3718
IFS=$as_save_IFS
3712
3719
  if test -z "$ac_cv_path_EGREP"; then
3713
 
    as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
 
3720
    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3714
3721
  fi
3715
3722
else
3716
3723
  ac_cv_path_EGREP=$EGREP
3725
3732
 
3726
3733
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3727
3734
$as_echo_n "checking for ANSI C header files... " >&6; }
3728
 
if test "${ac_cv_header_stdc+set}" = set; then :
 
3735
if ${ac_cv_header_stdc+:} false; then :
3729
3736
  $as_echo_n "(cached) " >&6
3730
3737
else
3731
3738
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3842
3849
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3843
3850
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3844
3851
"
3845
 
eval as_val=\$$as_ac_Header
3846
 
   if test "x$as_val" = x""yes; then :
 
3852
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3847
3853
  cat >>confdefs.h <<_ACEOF
3848
3854
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3849
3855
_ACEOF
3869
3875
 
3870
3876
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML_ParserCreate in -lexpat" >&5
3871
3877
$as_echo_n "checking for XML_ParserCreate in -lexpat... " >&6; }
3872
 
if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then :
 
3878
if ${ac_cv_lib_expat_XML_ParserCreate+:} false; then :
3873
3879
  $as_echo_n "(cached) " >&6
3874
3880
else
3875
3881
  ac_check_lib_save_LIBS=$LIBS
3903
3909
fi
3904
3910
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
3905
3911
$as_echo "$ac_cv_lib_expat_XML_ParserCreate" >&6; }
3906
 
if test "x$ac_cv_lib_expat_XML_ParserCreate" = x""yes; then :
 
3912
if test "x$ac_cv_lib_expat_XML_ParserCreate" = xyes; then :
3907
3913
   EXPAT_LIBS="$EXPAT_LIBS -lexpat"
3908
3914
                       expat_found=yes
3909
3915
else
3911
3917
fi
3912
3918
 
3913
3919
        if test $expat_found = no; then
3914
 
                as_fn_error "Could not find development files of Expat library" "$LINENO" 5
 
3920
                as_fn_error $? "Could not find development files of Expat library" "$LINENO" 5
3915
3921
        fi
3916
3922
        expat_save_CFLAGS="$CFLAGS"
3917
3923
        CFLAGS="$CFLAGS $EXPAT_CFLAGS"
3920
3926
        for ac_header in expat.h
3921
3927
do :
3922
3928
  ac_fn_c_check_header_mongrel "$LINENO" "expat.h" "ac_cv_header_expat_h" "$ac_includes_default"
3923
 
if test "x$ac_cv_header_expat_h" = x""yes; then :
 
3929
if test "x$ac_cv_header_expat_h" = xyes; then :
3924
3930
  cat >>confdefs.h <<_ACEOF
3925
3931
#define HAVE_EXPAT_H 1
3926
3932
_ACEOF
3932
3938
done
3933
3939
 
3934
3940
        if test $expat_found = no; then
3935
 
                as_fn_error "Could not find expat.h" "$LINENO" 5
 
3941
                as_fn_error $? "Could not find expat.h" "$LINENO" 5
3936
3942
        fi
3937
3943
        CFLAGS="$expat_save_CFLAGS"
3938
3944
       CPPFLAGS="$expat_save_CPPFLAGS"
3944
3950
# Checks for typedefs, structures, and compiler characteristics.
3945
3951
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
3946
3952
$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
3947
 
if test "${ac_cv_c_const+set}" = set; then :
 
3953
if ${ac_cv_c_const+:} false; then :
3948
3954
  $as_echo_n "(cached) " >&6
3949
3955
else
3950
3956
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4033
4039
for ac_header in stdlib.h
4034
4040
do :
4035
4041
  ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
4036
 
if test "x$ac_cv_header_stdlib_h" = x""yes; then :
 
4042
if test "x$ac_cv_header_stdlib_h" = xyes; then :
4037
4043
  cat >>confdefs.h <<_ACEOF
4038
4044
#define HAVE_STDLIB_H 1
4039
4045
_ACEOF
4044
4050
 
4045
4051
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
4046
4052
$as_echo_n "checking for GNU libc compatible malloc... " >&6; }
4047
 
if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then :
 
4053
if ${ac_cv_func_malloc_0_nonnull+:} false; then :
4048
4054
  $as_echo_n "(cached) " >&6
4049
4055
else
4050
4056
  if test "$cross_compiling" = yes; then :
4099
4105
 
4100
4106
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4101
4107
$as_echo_n "checking for ANSI C header files... " >&6; }
4102
 
if test "${ac_cv_header_stdc+set}" = set; then :
 
4108
if ${ac_cv_header_stdc+:} false; then :
4103
4109
  $as_echo_n "(cached) " >&6
4104
4110
else
4105
4111
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4427
4433
 
4428
4434
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzgets in -lz" >&5
4429
4435
$as_echo_n "checking for gzgets in -lz... " >&6; }
4430
 
if test "${ac_cv_lib_z_gzgets+set}" = set; then :
 
4436
if ${ac_cv_lib_z_gzgets+:} false; then :
4431
4437
  $as_echo_n "(cached) " >&6
4432
4438
else
4433
4439
  ac_check_lib_save_LIBS=$LIBS
4461
4467
fi
4462
4468
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzgets" >&5
4463
4469
$as_echo "$ac_cv_lib_z_gzgets" >&6; }
4464
 
if test "x$ac_cv_lib_z_gzgets" = x""yes; then :
 
4470
if test "x$ac_cv_lib_z_gzgets" = xyes; then :
4465
4471
   ZLIB_LIBS="$ZLIB_LIBS -lz"
4466
4472
                       zlib_found=yes
4467
4473
else
4469
4475
fi
4470
4476
 
4471
4477
        if test $zlib_found = no; then
4472
 
                as_fn_error "Could not find development files of zlib library. Install them or disable \`ejabberd_zlib' with: --disable-ejabberd_zlib" "$LINENO" 5
 
4478
                as_fn_error $? "Could not find development files of zlib library. Install them or disable \`ejabberd_zlib' with: --disable-ejabberd_zlib" "$LINENO" 5
4473
4479
        fi
4474
4480
        zlib_save_CFLAGS="$CFLAGS"
4475
4481
        CFLAGS="$CFLAGS $ZLIB_CFLAGS"
4478
4484
        for ac_header in zlib.h
4479
4485
do :
4480
4486
  ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
4481
 
if test "x$ac_cv_header_zlib_h" = x""yes; then :
 
4487
if test "x$ac_cv_header_zlib_h" = xyes; then :
4482
4488
  cat >>confdefs.h <<_ACEOF
4483
4489
#define HAVE_ZLIB_H 1
4484
4490
_ACEOF
4490
4496
done
4491
4497
 
4492
4498
        if test $zlib_found = no; then
4493
 
                as_fn_error "Could not find zlib.h. Install it or disable \`ejabberd_zlib' with: --disable-ejabberd_zlib" "$LINENO" 5
 
4499
                as_fn_error $? "Could not find zlib.h. Install it or disable \`ejabberd_zlib' with: --disable-ejabberd_zlib" "$LINENO" 5
4494
4500
        fi
4495
4501
        CFLAGS="$zlib_save_CFLAGS"
4496
4502
       CPPFLAGS="$zlib_save_CPPFLAGS"
4539
4545
 
4540
4546
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_start in -lpam" >&5
4541
4547
$as_echo_n "checking for pam_start in -lpam... " >&6; }
4542
 
if test "${ac_cv_lib_pam_pam_start+set}" = set; then :
 
4548
if ${ac_cv_lib_pam_pam_start+:} false; then :
4543
4549
  $as_echo_n "(cached) " >&6
4544
4550
else
4545
4551
  ac_check_lib_save_LIBS=$LIBS
4573
4579
fi
4574
4580
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_start" >&5
4575
4581
$as_echo "$ac_cv_lib_pam_pam_start" >&6; }
4576
 
if test "x$ac_cv_lib_pam_pam_start" = x""yes; then :
 
4582
if test "x$ac_cv_lib_pam_pam_start" = xyes; then :
4577
4583
   PAM_LIBS="$PAM_LIBS -lpam"
4578
4584
                       pam_found=yes
4579
4585
else
4581
4587
fi
4582
4588
 
4583
4589
        if test $pam_found = no; then
4584
 
                as_fn_error "Could not find development files of PAM library. Install them or disable \`pam' with: --disable-pam" "$LINENO" 5
 
4590
                as_fn_error $? "Could not find development files of PAM library. Install them or disable \`pam' with: --disable-pam" "$LINENO" 5
4585
4591
        fi
4586
4592
        pam_save_CFLAGS="$CFLAGS"
4587
4593
        CFLAGS="$CFLAGS $PAM_CFLAGS"
4590
4596
        for ac_header in security/pam_appl.h
4591
4597
do :
4592
4598
  ac_fn_c_check_header_mongrel "$LINENO" "security/pam_appl.h" "ac_cv_header_security_pam_appl_h" "$ac_includes_default"
4593
 
if test "x$ac_cv_header_security_pam_appl_h" = x""yes; then :
 
4599
if test "x$ac_cv_header_security_pam_appl_h" = xyes; then :
4594
4600
  cat >>confdefs.h <<_ACEOF
4595
4601
#define HAVE_SECURITY_PAM_APPL_H 1
4596
4602
_ACEOF
4602
4608
done
4603
4609
 
4604
4610
        if test $pam_found = no; then
4605
 
                as_fn_error "Could not find security/pam_appl.h. Install it or disable \`pam' with: --disable-pam" "$LINENO" 5
 
4611
                as_fn_error $? "Could not find security/pam_appl.h. Install it or disable \`pam' with: --disable-pam" "$LINENO" 5
4606
4612
        fi
4607
4613
        CFLAGS="$pam_save_CFLAGS"
4608
4614
       CPPFLAGS="$pam_save_CPPFLAGS"
4617
4623
  enableval=$enable_hipe; case "${enableval}" in
4618
4624
  yes) hipe=true ;;
4619
4625
  no)  hipe=false ;;
4620
 
  *) as_fn_error "bad value ${enableval} for --enable-hipe" "$LINENO" 5 ;;
 
4626
  *) as_fn_error $? "bad value ${enableval} for --enable-hipe" "$LINENO" 5 ;;
4621
4627
esac
4622
4628
else
4623
4629
  hipe=false
4630
4636
  enableval=$enable_roster_gateway_workaround; case "${enableval}" in
4631
4637
  yes) roster_gateway_workaround=true ;;
4632
4638
  no)  roster_gateway_workaround=false ;;
4633
 
  *) as_fn_error "bad value ${enableval} for --enable-roster-gateway-workaround" "$LINENO" 5 ;;
 
4639
  *) as_fn_error $? "bad value ${enableval} for --enable-roster-gateway-workaround" "$LINENO" 5 ;;
4634
4640
esac
4635
4641
else
4636
4642
  roster_gateway_workaround=false
4643
4649
  enableval=$enable_mssql; case "${enableval}" in
4644
4650
  yes) db_type=mssql ;;
4645
4651
  no)  db_type=generic ;;
4646
 
  *) as_fn_error "bad value ${enableval} for --enable-mssql" "$LINENO" 5 ;;
 
4652
  *) as_fn_error $? "bad value ${enableval} for --enable-mssql" "$LINENO" 5 ;;
4647
4653
esac
4648
4654
else
4649
4655
  db_type=generic
4656
4662
  enableval=$enable_transient_supervisors; case "${enableval}" in
4657
4663
  yes) transient_supervisors=true ;;
4658
4664
  no)  transient_supervisors=false ;;
4659
 
  *) as_fn_error "bad value ${enableval} for --enable-transient_supervisors" "$LINENO" 5 ;;
 
4665
  *) as_fn_error $? "bad value ${enableval} for --enable-transient_supervisors" "$LINENO" 5 ;;
4660
4666
esac
4661
4667
else
4662
4668
  transient_supervisors=true
4669
4675
  enableval=$enable_full_xml; case "${enableval}" in
4670
4676
  yes) full_xml=true ;;
4671
4677
  no)  full_xml=false ;;
4672
 
  *) as_fn_error "bad value ${enableval} for --enable-full-xml" "$LINENO" 5 ;;
 
4678
  *) as_fn_error $? "bad value ${enableval} for --enable-full-xml" "$LINENO" 5 ;;
4673
4679
esac
4674
4680
else
4675
4681
  full_xml=false
4682
4688
  enableval=$enable_nif; case "${enableval}" in
4683
4689
  yes) nif=true ;;
4684
4690
  no)  nif=false ;;
4685
 
  *) as_fn_error "bad value ${enableval} for --enable-nif" "$LINENO" 5 ;;
 
4691
  *) as_fn_error $? "bad value ${enableval} for --enable-nif" "$LINENO" 5 ;;
4686
4692
esac
4687
4693
else
4688
4694
  nif=false
4709
4715
        SSL_LIBS="-L$ssl_prefix/lib -lcrypto"
4710
4716
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_new in -lssl" >&5
4711
4717
$as_echo_n "checking for SSL_new in -lssl... " >&6; }
4712
 
if test "${ac_cv_lib_ssl_SSL_new+set}" = set; then :
 
4718
if ${ac_cv_lib_ssl_SSL_new+:} false; then :
4713
4719
  $as_echo_n "(cached) " >&6
4714
4720
else
4715
4721
  ac_check_lib_save_LIBS=$LIBS
4743
4749
fi
4744
4750
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_new" >&5
4745
4751
$as_echo "$ac_cv_lib_ssl_SSL_new" >&6; }
4746
 
if test "x$ac_cv_lib_ssl_SSL_new" = x""yes; then :
 
4752
if test "x$ac_cv_lib_ssl_SSL_new" = xyes; then :
4747
4753
   have_openssl=yes
4748
4754
else
4749
4755
   have_openssl=no
4755
4761
            for ac_header in openssl/ssl.h
4756
4762
do :
4757
4763
  ac_fn_c_check_header_mongrel "$LINENO" "openssl/ssl.h" "ac_cv_header_openssl_ssl_h" "$ac_includes_default"
4758
 
if test "x$ac_cv_header_openssl_ssl_h" = x""yes; then :
 
4764
if test "x$ac_cv_header_openssl_ssl_h" = xyes; then :
4759
4765
  cat >>confdefs.h <<_ACEOF
4760
4766
#define HAVE_OPENSSL_SSL_H 1
4761
4767
_ACEOF
4780
4786
        fi
4781
4787
    done
4782
4788
if test x${have_openssl} != xyes; then
4783
 
    as_fn_error "Could not find development files of OpenSSL library. Install them or disable \`tls' with: --disable-tls" "$LINENO" 5
 
4789
    as_fn_error $? "Could not find development files of OpenSSL library. Install them or disable \`tls' with: --disable-tls" "$LINENO" 5
4784
4790
fi
4785
4791
 
4786
4792
 
4801
4807
        done
4802
4808
fi
4803
4809
ac_fn_c_check_header_mongrel "$LINENO" "krb5.h" "ac_cv_header_krb5_h" "$ac_includes_default"
4804
 
if test "x$ac_cv_header_krb5_h" = x""yes; then :
 
4810
if test "x$ac_cv_header_krb5_h" = xyes; then :
4805
4811
 
4806
4812
fi
4807
4813
 
4824
4830
fi
4825
4831
 
4826
4832
ac_fn_c_check_header_mongrel "$LINENO" "openssl/md2.h" "ac_cv_header_openssl_md2_h" "$ac_includes_default"
4827
 
if test "x$ac_cv_header_openssl_md2_h" = x""yes; then :
 
4833
if test "x$ac_cv_header_openssl_md2_h" = xyes; then :
4828
4834
  md2=true
4829
4835
else
4830
4836
  md2=false
4835
4841
 
4836
4842
ac_aux_dir=
4837
4843
for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
4838
 
  for ac_t in install-sh install.sh shtool; do
4839
 
    if test -f "$ac_dir/$ac_t"; then
4840
 
      ac_aux_dir=$ac_dir
4841
 
      ac_install_sh="$ac_aux_dir/$ac_t -c"
4842
 
      break 2
4843
 
    fi
4844
 
  done
 
4844
  if test -f "$ac_dir/install-sh"; then
 
4845
    ac_aux_dir=$ac_dir
 
4846
    ac_install_sh="$ac_aux_dir/install-sh -c"
 
4847
    break
 
4848
  elif test -f "$ac_dir/install.sh"; then
 
4849
    ac_aux_dir=$ac_dir
 
4850
    ac_install_sh="$ac_aux_dir/install.sh -c"
 
4851
    break
 
4852
  elif test -f "$ac_dir/shtool"; then
 
4853
    ac_aux_dir=$ac_dir
 
4854
    ac_install_sh="$ac_aux_dir/shtool install -c"
 
4855
    break
 
4856
  fi
4845
4857
done
4846
4858
if test -z "$ac_aux_dir"; then
4847
 
  as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
 
4859
  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
4848
4860
fi
4849
4861
 
4850
4862
# These three variables are undocumented and unsupported,
4858
4870
 
4859
4871
# Make sure we can run config.sub.
4860
4872
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4861
 
  as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
 
4873
  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4862
4874
 
4863
4875
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4864
4876
$as_echo_n "checking build system type... " >&6; }
4865
 
if test "${ac_cv_build+set}" = set; then :
 
4877
if ${ac_cv_build+:} false; then :
4866
4878
  $as_echo_n "(cached) " >&6
4867
4879
else
4868
4880
  ac_build_alias=$build_alias
4869
4881
test "x$ac_build_alias" = x &&
4870
4882
  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4871
4883
test "x$ac_build_alias" = x &&
4872
 
  as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
 
4884
  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4873
4885
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4874
 
  as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
 
4886
  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4875
4887
 
4876
4888
fi
4877
4889
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4878
4890
$as_echo "$ac_cv_build" >&6; }
4879
4891
case $ac_cv_build in
4880
4892
*-*-*) ;;
4881
 
*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
 
4893
*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4882
4894
esac
4883
4895
build=$ac_cv_build
4884
4896
ac_save_IFS=$IFS; IFS='-'
4896
4908
 
4897
4909
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4898
4910
$as_echo_n "checking host system type... " >&6; }
4899
 
if test "${ac_cv_host+set}" = set; then :
 
4911
if ${ac_cv_host+:} false; then :
4900
4912
  $as_echo_n "(cached) " >&6
4901
4913
else
4902
4914
  if test "x$host_alias" = x; then
4903
4915
  ac_cv_host=$ac_cv_build
4904
4916
else
4905
4917
  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4906
 
    as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
 
4918
    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4907
4919
fi
4908
4920
 
4909
4921
fi
4911
4923
$as_echo "$ac_cv_host" >&6; }
4912
4924
case $ac_cv_host in
4913
4925
*-*-*) ;;
4914
 
*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
 
4926
*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4915
4927
esac
4916
4928
host=$ac_cv_host
4917
4929
ac_save_IFS=$IFS; IFS='-'
4929
4941
 
4930
4942
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
4931
4943
$as_echo_n "checking target system type... " >&6; }
4932
 
if test "${ac_cv_target+set}" = set; then :
 
4944
if ${ac_cv_target+:} false; then :
4933
4945
  $as_echo_n "(cached) " >&6
4934
4946
else
4935
4947
  if test "x$target_alias" = x; then
4936
4948
  ac_cv_target=$ac_cv_host
4937
4949
else
4938
4950
  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
4939
 
    as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
 
4951
    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
4940
4952
fi
4941
4953
 
4942
4954
fi
4944
4956
$as_echo "$ac_cv_target" >&6; }
4945
4957
case $ac_cv_target in
4946
4958
*-*-*) ;;
4947
 
*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
 
4959
*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
4948
4960
esac
4949
4961
target=$ac_cv_target
4950
4962
ac_save_IFS=$IFS; IFS='-'
4989
5001
set dummy ${ac_tool_prefix}erlc; ac_word=$2
4990
5002
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4991
5003
$as_echo_n "checking for $ac_word... " >&6; }
4992
 
if test "${ac_cv_path_ERLC+set}" = set; then :
 
5004
if ${ac_cv_path_ERLC+:} false; then :
4993
5005
  $as_echo_n "(cached) " >&6
4994
5006
else
4995
5007
  case $ERLC in
5032
5044
set dummy erlc; ac_word=$2
5033
5045
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5034
5046
$as_echo_n "checking for $ac_word... " >&6; }
5035
 
if test "${ac_cv_path_ac_pt_ERLC+set}" = set; then :
 
5047
if ${ac_cv_path_ac_pt_ERLC+:} false; then :
5036
5048
  $as_echo_n "(cached) " >&6
5037
5049
else
5038
5050
  case $ac_pt_ERLC in
5088
5100
if test "$cross_compiling" = yes; then :
5089
5101
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5090
5102
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5091
 
as_fn_error "cannot run test program while cross compiling
5092
 
See \`config.log' for more details." "$LINENO" 5; }
 
5103
as_fn_error $? "cannot run test program while cross compiling
 
5104
See \`config.log' for more details" "$LINENO" 5; }
5093
5105
else
5094
5106
  cat > conftest.$ac_ext <<_ACEOF
5095
5107
-module(conftest).
5188
5200
     :end' >>confcache
5189
5201
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
5190
5202
  if test -w "$cache_file"; then
5191
 
    test "x$cache_file" != "x/dev/null" &&
 
5203
    if test "x$cache_file" != "x/dev/null"; then
5192
5204
      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
5193
5205
$as_echo "$as_me: updating cache $cache_file" >&6;}
5194
 
    cat confcache >$cache_file
 
5206
      if test ! -f "$cache_file" || test -h "$cache_file"; then
 
5207
        cat confcache >"$cache_file"
 
5208
      else
 
5209
        case $cache_file in #(
 
5210
        */* | ?:*)
 
5211
          mv -f confcache "$cache_file"$$ &&
 
5212
          mv -f "$cache_file"$$ "$cache_file" ;; #(
 
5213
        *)
 
5214
          mv -f confcache "$cache_file" ;;
 
5215
        esac
 
5216
      fi
 
5217
    fi
5195
5218
  else
5196
5219
    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
5197
5220
$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
5243
5266
 
5244
5267
ac_libobjs=
5245
5268
ac_ltlibobjs=
 
5269
U=
5246
5270
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
5247
5271
  # 1. Remove the extension, and $U if already installed.
5248
5272
  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
5258
5282
 
5259
5283
 
5260
5284
 
5261
 
: ${CONFIG_STATUS=./config.status}
 
5285
: "${CONFIG_STATUS=./config.status}"
5262
5286
ac_write_fail=0
5263
5287
ac_clean_files_save=$ac_clean_files
5264
5288
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5359
5383
IFS=" ""        $as_nl"
5360
5384
 
5361
5385
# Find who we are.  Look in the path if we contain no directory separator.
 
5386
as_myself=
5362
5387
case $0 in #((
5363
5388
  *[\\/]* ) as_myself=$0 ;;
5364
5389
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5404
5429
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
5405
5430
 
5406
5431
 
5407
 
# as_fn_error ERROR [LINENO LOG_FD]
5408
 
# ---------------------------------
 
5432
# as_fn_error STATUS ERROR [LINENO LOG_FD]
 
5433
# ----------------------------------------
5409
5434
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
5410
5435
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
5411
 
# script with status $?, using 1 if that was 0.
 
5436
# script with STATUS, using 1 if that was 0.
5412
5437
as_fn_error ()
5413
5438
{
5414
 
  as_status=$?; test $as_status -eq 0 && as_status=1
5415
 
  if test "$3"; then
5416
 
    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
5417
 
    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
 
5439
  as_status=$1; test $as_status -eq 0 && as_status=1
 
5440
  if test "$4"; then
 
5441
    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
5442
    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
5418
5443
  fi
5419
 
  $as_echo "$as_me: error: $1" >&2
 
5444
  $as_echo "$as_me: error: $2" >&2
5420
5445
  as_fn_exit $as_status
5421
5446
} # as_fn_error
5422
5447
 
5612
5637
      test -d "$as_dir" && break
5613
5638
    done
5614
5639
    test -z "$as_dirs" || eval "mkdir $as_dirs"
5615
 
  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
 
5640
  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
5616
5641
 
5617
5642
 
5618
5643
} # as_fn_mkdir_p
5666
5691
# values after options handling.
5667
5692
ac_log="
5668
5693
This file was extended by ejabberd $as_me 2.1.x, which was
5669
 
generated by GNU Autoconf 2.65.  Invocation command line was
 
5694
generated by GNU Autoconf 2.68.  Invocation command line was
5670
5695
 
5671
5696
  CONFIG_FILES    = $CONFIG_FILES
5672
5697
  CONFIG_HEADERS  = $CONFIG_HEADERS
5719
5744
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
5720
5745
ac_cs_version="\\
5721
5746
ejabberd config.status 2.1.x
5722
 
configured by $0, generated by GNU Autoconf 2.65,
 
5747
configured by $0, generated by GNU Autoconf 2.68,
5723
5748
  with options \\"\$ac_cs_config\\"
5724
5749
 
5725
 
Copyright (C) 2009 Free Software Foundation, Inc.
 
5750
Copyright (C) 2010 Free Software Foundation, Inc.
5726
5751
This config.status script is free software; the Free Software Foundation
5727
5752
gives unlimited permission to copy, distribute and modify it."
5728
5753
 
5737
5762
while test $# != 0
5738
5763
do
5739
5764
  case $1 in
5740
 
  --*=*)
 
5765
  --*=?*)
5741
5766
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
5742
5767
    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
5743
5768
    ac_shift=:
5744
5769
    ;;
 
5770
  --*=)
 
5771
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
 
5772
    ac_optarg=
 
5773
    ac_shift=:
 
5774
    ;;
5745
5775
  *)
5746
5776
    ac_option=$1
5747
5777
    ac_optarg=$2
5763
5793
    $ac_shift
5764
5794
    case $ac_optarg in
5765
5795
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
 
5796
    '') as_fn_error $? "missing file argument" ;;
5766
5797
    esac
5767
5798
    as_fn_append CONFIG_FILES " '$ac_optarg'"
5768
5799
    ac_need_defaults=false;;
5773
5804
    ac_cs_silent=: ;;
5774
5805
 
5775
5806
  # This is an error.
5776
 
  -*) as_fn_error "unrecognized option: \`$1'
 
5807
  -*) as_fn_error $? "unrecognized option: \`$1'
5777
5808
Try \`$0 --help' for more information." ;;
5778
5809
 
5779
5810
  *) as_fn_append ac_config_targets " $1"
5836
5867
    "$make_odbc") CONFIG_FILES="$CONFIG_FILES $make_odbc" ;;
5837
5868
    "$make_ejabberd_zlib") CONFIG_FILES="$CONFIG_FILES $make_ejabberd_zlib" ;;
5838
5869
 
5839
 
  *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
 
5870
  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
5840
5871
  esac
5841
5872
done
5842
5873
 
5857
5888
# after its creation but before its name has been assigned to `$tmp'.
5858
5889
$debug ||
5859
5890
{
5860
 
  tmp=
 
5891
  tmp= ac_tmp=
5861
5892
  trap 'exit_status=$?
5862
 
  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
 
5893
  : "${ac_tmp:=$tmp}"
 
5894
  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
5863
5895
' 0
5864
5896
  trap 'as_fn_exit 1' 1 2 13 15
5865
5897
}
5867
5899
 
5868
5900
{
5869
5901
  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
5870
 
  test -n "$tmp" && test -d "$tmp"
 
5902
  test -d "$tmp"
5871
5903
}  ||
5872
5904
{
5873
5905
  tmp=./conf$$-$RANDOM
5874
5906
  (umask 077 && mkdir "$tmp")
5875
 
} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
 
5907
} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
 
5908
ac_tmp=$tmp
5876
5909
 
5877
5910
# Set up the scripts for CONFIG_FILES section.
5878
5911
# No need to generate them if there are no CONFIG_FILES.
5889
5922
fi
5890
5923
ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
5891
5924
if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
5892
 
  ac_cs_awk_cr='\r'
 
5925
  ac_cs_awk_cr='\\r'
5893
5926
else
5894
5927
  ac_cs_awk_cr=$ac_cr
5895
5928
fi
5896
5929
 
5897
 
echo 'BEGIN {' >"$tmp/subs1.awk" &&
 
5930
echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
5898
5931
_ACEOF
5899
5932
 
5900
5933
 
5903
5936
  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
5904
5937
  echo "_ACEOF"
5905
5938
} >conf$$subs.sh ||
5906
 
  as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
5907
 
ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
 
5939
  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
 
5940
ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
5908
5941
ac_delim='%!_!# '
5909
5942
for ac_last_try in false false false false false :; do
5910
5943
  . ./conf$$subs.sh ||
5911
 
    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
 
5944
    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5912
5945
 
5913
5946
  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
5914
5947
  if test $ac_delim_n = $ac_delim_num; then
5915
5948
    break
5916
5949
  elif $ac_last_try; then
5917
 
    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
 
5950
    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5918
5951
  else
5919
5952
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
5920
5953
  fi
5922
5955
rm -f conf$$subs.sh
5923
5956
 
5924
5957
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5925
 
cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
 
5958
cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
5926
5959
_ACEOF
5927
5960
sed -n '
5928
5961
h
5970
6003
rm -f conf$$subs.awk
5971
6004
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5972
6005
_ACAWK
5973
 
cat >>"\$tmp/subs1.awk" <<_ACAWK &&
 
6006
cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
5974
6007
  for (key in S) S_is_set[key] = 1
5975
6008
  FS = ""
5976
6009
 
6002
6035
  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
6003
6036
else
6004
6037
  cat
6005
 
fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
6006
 
  || as_fn_error "could not setup config files machinery" "$LINENO" 5
 
6038
fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
 
6039
  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
6007
6040
_ACEOF
6008
6041
 
6009
 
# VPATH may cause trouble with some makes, so we remove $(srcdir),
6010
 
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
 
6042
# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
 
6043
# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
6011
6044
# trailing colons and then remove the whole line if VPATH becomes empty
6012
6045
# (actually we leave an empty line to preserve line numbers).
6013
6046
if test "x$srcdir" = x.; then
6014
 
  ac_vpsub='/^[  ]*VPATH[        ]*=/{
6015
 
s/:*\$(srcdir):*/:/
6016
 
s/:*\${srcdir}:*/:/
6017
 
s/:*@srcdir@:*/:/
6018
 
s/^\([^=]*=[     ]*\):*/\1/
 
6047
  ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
 
6048
h
 
6049
s///
 
6050
s/^/:/
 
6051
s/[      ]*$/:/
 
6052
s/:\$(srcdir):/:/g
 
6053
s/:\${srcdir}:/:/g
 
6054
s/:@srcdir@:/:/g
 
6055
s/^:*//
6019
6056
s/:*$//
 
6057
x
 
6058
s/\(=[   ]*\).*/\1/
 
6059
G
 
6060
s/\n//
6020
6061
s/^[^=]*=[       ]*$//
6021
6062
}'
6022
6063
fi
6034
6075
  esac
6035
6076
  case $ac_mode$ac_tag in
6036
6077
  :[FHL]*:*);;
6037
 
  :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
 
6078
  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
6038
6079
  :[FH]-) ac_tag=-:-;;
6039
6080
  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
6040
6081
  esac
6053
6094
    for ac_f
6054
6095
    do
6055
6096
      case $ac_f in
6056
 
      -) ac_f="$tmp/stdin";;
 
6097
      -) ac_f="$ac_tmp/stdin";;
6057
6098
      *) # Look for the file first in the build tree, then in the source tree
6058
6099
         # (if the path is not absolute).  The absolute path cannot be DOS-style,
6059
6100
         # because $ac_f cannot contain `:'.
6062
6103
           [\\/$]*) false;;
6063
6104
           *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
6064
6105
           esac ||
6065
 
           as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
 
6106
           as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
6066
6107
      esac
6067
6108
      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
6068
6109
      as_fn_append ac_file_inputs " '$ac_f'"
6088
6129
    esac
6089
6130
 
6090
6131
    case $ac_tag in
6091
 
    *:-:* | *:-) cat >"$tmp/stdin" \
6092
 
      || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
 
6132
    *:-:* | *:-) cat >"$ac_tmp/stdin" \
 
6133
      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
6093
6134
    esac
6094
6135
    ;;
6095
6136
  esac
6214
6255
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
6215
6256
$ac_datarootdir_hack
6216
6257
"
6217
 
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
6218
 
  || as_fn_error "could not create $ac_file" "$LINENO" 5
 
6258
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
 
6259
  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6219
6260
 
6220
6261
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
6221
 
  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
6222
 
  { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
 
6262
  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
 
6263
  { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
 
6264
      "$ac_tmp/out"`; test -z "$ac_out"; } &&
6223
6265
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6224
 
which seems to be undefined.  Please make sure it is defined." >&5
 
6266
which seems to be undefined.  Please make sure it is defined" >&5
6225
6267
$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6226
 
which seems to be undefined.  Please make sure it is defined." >&2;}
 
6268
which seems to be undefined.  Please make sure it is defined" >&2;}
6227
6269
 
6228
 
  rm -f "$tmp/stdin"
 
6270
  rm -f "$ac_tmp/stdin"
6229
6271
  case $ac_file in
6230
 
  -) cat "$tmp/out" && rm -f "$tmp/out";;
6231
 
  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
 
6272
  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
 
6273
  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
6232
6274
  esac \
6233
 
  || as_fn_error "could not create $ac_file" "$LINENO" 5
 
6275
  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6234
6276
 ;;
6235
6277
 
6236
6278
 
6245
6287
ac_clean_files=$ac_clean_files_save
6246
6288
 
6247
6289
test $ac_write_fail = 0 ||
6248
 
  as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
 
6290
  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
6249
6291
 
6250
6292
 
6251
6293
# configure is writing to config.log, and then calls config.status.
6266
6308
  exec 5>>config.log
6267
6309
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6268
6310
  # would make configure fail if this is the last instruction.
6269
 
  $ac_cs_success || as_fn_exit $?
 
6311
  $ac_cs_success || as_fn_exit 1
6270
6312
fi
6271
6313
if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
6272
6314
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5