~ubuntu-branches/ubuntu/lucid/autoconf-archive/lucid

« back to all changes in this revision

Viewing changes to html/ac_func_memmove.html

  • Committer: Bazaar Package Importer
  • Author(s): Deng Xiyue
  • Date: 2009-05-12 17:30:18 UTC
  • mfrom: (1.1.9 upstream) (3.1.4 squeeze)
  • Revision ID: james.westby@ubuntu.com-20090512173018-s7y88nfoxpaauztk
Tags: 20090426-1
* New upstream release.
* Update Standard-Version to 3.8.1:
  + List original Debianizer.
  + Point to versioned license file.

Show diffs side-by-side

added added

removed removed

Lines of Context:
6
6
   Autoconf Macro: ac_func_memmove
7
7
  </title>
8
8
  <link rel="stylesheet" type="text/css" href="autoconf-archive.css">
 
9
  <meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
9
10
 </head>
10
11
 <body>
11
12
  <table summary="web navigation" style="width:100%;">
12
13
   <tbody>
13
14
    <tr>
14
 
     <td style="width:25%;" align="center" valign="top">
15
 
      <a href="http://autoconf-archive.cryp.to/ac_func_memmove.m4">Download M4
16
 
      Source</a>
 
15
     <td style="width:33%;" align="center" valign="top">
 
16
      <a href="macros-by-category.html">Macros by Category</a>
17
17
     </td>
18
 
     <td style="width:25%;" align="center" valign="top">
 
18
     <td style="width:33%;" align="center" valign="top">
19
19
      <a href=
20
 
      "http://git.cryp.to/autoconf-archive?a=history;f=ac_func_memmove.m4">Macro
 
20
      "http://git.cryp.to/autoconf-archive/history/master:/ac_func_memmove.m4">Revision
21
21
      History</a>
22
22
     </td>
23
 
     <td style="width:25%;" align="center" valign="top">
24
 
      <a href="macros-by-category.html">Category Index</a>
25
 
     </td>
26
 
     <td style="width:25%;" align="center" valign="top">
 
23
     <td style="width:33%;" align="center" valign="top">
27
24
      <form method="get" action="http://www.google.com/search">
28
25
       <div>
29
26
        <input name="sitesearch" value="autoconf-archive.cryp.to" type=
30
 
        "hidden"><a href="http://www.google.com/">Search</a>: <input name="q"
31
 
        size="10" maxlength="255" type="text">
 
27
        "hidden">Search: <input name="q" maxlength="255" type="text">
32
28
       </div>
33
29
      </form>
34
30
     </td>
40
36
   ac_func_memmove
41
37
  </h1>
42
38
  <h2>
43
 
   Synopsis
 
39
   SYNOPSIS
44
40
  </h2>
45
41
  <p class="indent" style="white-space:nowrap;">
46
42
   <code>AC_FUNC_MEMMOVE</code>
47
43
  </p>
48
44
  <h2>
49
 
   Description
 
45
   DESCRIPTION
50
46
  </h2>
51
47
  <div class="indent">
52
48
   <p>
55
51
   </p>
56
52
  </div>
57
53
  <h2>
58
 
   Author
59
 
  </h2>
60
 
  <p class="indent">
61
 
   R&uuml;diger Kuhlmann &lt;info@ruediger-kuhlmann.de&gt;
62
 
  </p>
63
 
  <h2>
64
 
   Last Modified
65
 
  </h2>
66
 
  <p class="indent">
67
 
   2008-04-12
68
 
  </p>
69
 
  <h2>
70
 
   M4 Source Code
71
 
  </h2>
72
 
  <div class="indent">
73
 
   <pre class="m4source">
74
 
AC_DEFUN([AC_FUNC_MEMMOVE],
75
 
[AC_CHECK_FUNCS(memmove)
76
 
AC_MSG_CHECKING(for working memmove)
77
 
AC_CACHE_VAL(ac_cv_have_working_memmove,
78
 
[AC_TRY_RUN(
79
 
[#include &lt;stdio.h&gt;
80
 
 
81
 
int main(void)
82
 
{
83
 
    char buf[10];
84
 
    strcpy (buf, "01234567");
85
 
    memmove (buf, buf + 2, 3);
86
 
    if (strcmp (buf, "23434567"))
87
 
        exit (1);
88
 
    strcpy (buf, "01234567");
89
 
    memmove (buf + 2, buf, 3);
90
 
    if (strcmp (buf, "01012567"))
91
 
        exit (1);
92
 
    exit (0);
93
 
}], ac_cv_have_working_memmove=yes, ac_cv_have_working_memmove=no, ac_cv_have_working_memmove=cross)])
94
 
AC_MSG_RESULT([$ac_cv_have_working_memmove])
95
 
if test x$ac_cv_have_working_memmove != "xyes"; then
96
 
  AC_LIBOBJ(memmove)
97
 
  AC_MSG_WARN([Replacing missing/broken memmove.])
98
 
  AC_DEFINE(PREFER_PORTABLE_MEMMOVE, 1, "enable replacement memmove if system memmove is broken or missing")
99
 
fi])
100
 
</pre>
101
 
  </div>
102
 
  <h2>
103
 
   License
104
 
  </h2>
105
 
  <div class="indent">
106
 
   <span style="white-space:nowrap;">Copyright &copy; 2008 R&uuml;diger
107
 
   Kuhlmann &lt;info@ruediger-kuhlmann.de&gt;</span>
 
54
   SOURCE CODE
 
55
  </h2>
 
56
  <p class="indent">
 
57
   <a href=
 
58
   "http://autoconf-archive.cryp.to/ac_func_memmove.m4">http://autoconf-archive.cryp.to/ac_func_memmove.m4</a>
 
59
  </p>
 
60
  <h2>
 
61
   LICENSE
 
62
  </h2>
 
63
  <div class="indent">
 
64
   <p style="white-space:nowrap;">
 
65
    Copyright &copy; 2008 R&uuml;diger Kuhlmann
 
66
    &lt;info@ruediger-kuhlmann.de&gt;
 
67
   </p>
108
68
   <p>
109
69
    Copying and distribution of this file, with or without modification, are
110
70
    permitted in any medium without royalty provided the copyright notice and